dauwdruppels
dauwdruppels

Reputation: 23

Installing Wordpress on Windows 8 using XAMPP but PHP not running

I'm Windows 8 user who wants to install Wordpress.

I'm using XAMPP and have checked that my XAMPP is working. I also have created a database on MySql and set up the wp-config.php with the database details I have created before. But every time I click the wp-admin/install.php, I get this error :

Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.

I'm using mySQL database, and database name is wordpress.
This is my config :

// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'wordpress');

/** MySQL database username */ define('DB_USER', 'root');

/** MySQL database password */ define('DB_PASSWORD', '');

/** MySQL hostname */ define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */ define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', '');

I still get the error, need some help.

Upvotes: 1

Views: 6267

Answers (3)

Mark
Mark

Reputation: 3118

I had this problem also. I followed everything in the directions to a "tee." But at the very end, I went to the wordpress/wp-admin/install.php file and opened it; that is where I got the "Error: PHP is not running" message.

But then I went and entered the path

http://localhost/wordpress/wp-admin/install.php 

in my browswer's address bar and it worked! Silly of me not to do that at first, but hopefully this answer will help some of you out there.

Upvotes: 0

Mr. Radical
Mr. Radical

Reputation: 1855

Use XAMPP controle panel to start Apache (PHP) and MySQL. Every time when you shutdown windows Apache and MySQL will be shutdown as well. If you haven't setup Apache (PHP) and MySQL as a service you need to manually start apache(PHP) and MySQL via the controle panel. C:\xampp\xampp-control.exe if you use the default directory. Make sure to run the programm as admin.

Upvotes: 1

gezimi005
gezimi005

Reputation: 381

Go and check C:\xampp\apache\conf\httpd.conf if php module is loaded or if this line exist Include "conf/extra/httpd-xampp.conf". If not then add this line: Include "conf/extra/httpd-xampp.conf", but before go and check if this file exists. If this file doesn't exists then add this line to httpd.conf: LoadModule php5_module "C:/xampp/php/php5apache2_2.dll"

Open CMD and exec this command:

c:\xampp\apache_start.bat

Output of this command will show error, why the apache doesn't start, if it doesn't start.

Upvotes: 4

Related Questions