How To Set Up A Wordpress Website


WordPress is most powerfull CMS system, which is so easy to install. Wordpress setup is very simple process and complete Wordpress setup wizard in few steps with less than five mintues. Online Web host companies provide one click Wordpress setup tools like as Fantastico which automatically setup WordPress on your web hosting. even so if you wish to put in WordPress yourself, the next guide will help.

Wordpress setup Hosting Requirements

MYSQL 5.0 Database or greater
PHP Language ver 7.2 or greater
Server Type
  • WAMP (Windows)
  • XAMP (Multi-platform)
  • LAMP (Linux)
  • MAMP (Macintosh)
Browser −Internet Explorer 8+, Google chrome, Firefox, Safari, Opera

Download Wordpress And setup

To Install wordpress visit wordpress website or click here and download latest version from there.

Create Wordpress Database

When Very first time setup WordPress for that require MySQL database. Create MYSQL database with username and password. Automatically wordpress setup provide username as "root" and password as "root" or you are able to set according to your choice.

Wordpress Setup Startup Wizard

It's quite simple to set up WordPress into your system. Below describe how to set up WordPress locally in your system.
  • The Wordpress setup you Obtain from wordpress website is extratct in folder. Transfer the wordpress files folder from produced folder to web server folder in the event that you mount online primarily standard folder is PUBLIC_HTML or you can copy wordpress files folder to localhost folder WWW.
  • In browser open your WordPress local path, next we will faced with screen of the WordPress installer. Default path is localhost/< Your_wordpress_folder >.
  • Wordpress installtion wizard language choose
  • Choose your language for the WordPress and press continue button.
  • Next wizard screen show your wordpress database criteria which require for WordPress setup. Click Let's Go button to continue
  • create database for wordpress setup wizard
  • Now Here we reach the situation where fill wordpress database detail. Fill wordpress database information according to below screen and then click on Submit button.
  • wordpress setup wizard form
    When you fill wordpress database information, it check all information provided is correct then show you next screen.
  • Click on Run The Install button.
  • wordpress setup wizard run setup
  • We will see welcome screen where provide admin level information which is shown in below screen. After Fillup admin information Click on Install Wordpress button.
  • wordpress setup wizard add admin information
  • When Wordpress setup wizard completed successful, a screen showing up filled data as given below. Click Log In button to go to admin login form.
  • wordpress setup wizard admin information
  • Now Finally we reached login page of wordpress. Where we provide login credential to enter wordpress admin panel area.
  • wordpress setup wizard admin Login
Finally You have done! You have complete your wordpress setup wizard for Website! Enjoy ;)

Title

Share:

Find IP Address in PHP


Find IP Address in PHP

Here now learn the script of to find ip address in php of visitor which visit on website.

To store Visitor ip addres in PHP has syntax :-

1
$_SERVER[‘REMOTE_ADDR’]     // return visitor ip address
When a ip address has been received then now need text file to enter in it by using the
 syntax fwrite() function

$myipaddress = $_SERVER['REMOTE_ADDR']."\r\n";
In above codes first declare a variable which can pick IP address of  Visitor. One thing remember if you are testing or working on localhost server then naturally it return Local IP 127.0.0.1
First, we will use a variable to store the ip address. If you are working on a localhost environment, it will return 127.0.0.1
1
$myipaddress = $_SERVER['REMOTE_ADDR']."\r\n";
Now time to store visitor IP address in file using the PHP functions fopen() and fwrite(). 
Use below codes for that :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// store visitor ip address
$myipaddress = $_SERVER['REMOTE_ADDR']."\r\n";

// Log file name which store all ip address
$ipfile = 'logdata.txt';

// store visitor data by opening log file
$ipfp = fopen($ipfile, 'a');

fwrite($ipfp, $myipaddress);

fclose($ipfp);
These codes produce the output like as below in our log file:

127.0.0.1
127.0.0.1
127.0.0.1
127.0.0.1
We can also approve more this script with help of to enter other PHP funcations like as browser information and visitor’s visited page.
For that we need miner changes in our pre-written PHP script codes.
Use below codes for that :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
// store visitor ip address
$myipaddress = $_SERVER['REMOTE_ADDR']."\r\n";

// visited page name
$page = $_SERVER['SCRIPT_NAME'];

// browser detail
$brow = $_SERVER['HTTP_USER_AGENT'];

// Log file name which store all ip address
$ipfile = 'logdata.txt';

// store visitor data by opening log file
$ipfp = fopen($ipfile, 'a');

fwrite($ipfp, $myipaddress);

fclose($ipfp);
These codes produce the output like as below in our log file:

127.0.0.1 - /product.html Mozilla 19.0 (Windows NT)
127.0.0.1 - /product.html Mozilla 19.0 (Windows NT)
127.0.0.1 - /product.html Mozilla 19.0 (Windows NT)
127.0.0.1 - /product.html Mozilla 19.0 (Windows NT)
Enjoy :) you have done!
Share: