WordPress
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 Had installed php by
PHP
#cd /opt/apps/apache/src
#gzip -d /opt/apps/softwares/php-5.2.13.tar.gz
#tar -xvf /opt/apps/softwares/php-5.2.13.tar
#./configure --with-apxs2=/usr/sbin/apxs --with-config-file-
path=/etc/httpd/conf/php.conf --with-zlib --with-
mysqli=/usr/bin/mysql_config
#make
#make install
[root@localhost ~]# ps uax | grep php
root 16177 0.0 0.0 3920 696 pts/5 S+ 16:15 0:00 grep php
php is listening but still im getting the following eror
im configuring wordpress
#yum install mysql-server httpd nano php php-mysql
# chkconfig httpd on
# chkconfig mysqld on
# service mysqld start
# service httpd start
Create the Database
# mysqladmin create wordpress
# mysql
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'please+use+a+strong+password';
mysql> FLUSH PRIVILEGES;
mysql> quit
Download and Install WordPress
# cd /var/www/
# mkdir wordpress
# cd wordpress
# curl -O
http://wordpress.org/latest.tar.gz
# tar xvfz latest.tar.gz
# rm latest.tar.gz
# mv wordpress/ public
# mkdir logs public/wp-content/uploads public/wp-content/cache
# chown apache:apache logs public/wp-content/uploads public/wp-content/cache
# cd public/
Configure WordPress
Create the WordPress config file outside web root:
# mv wp-config-sample.php ../wp-config.php
# curl
https://api.wordpress.org/secret-key/1.1/salt/
Copy the output to your clipboard before editing wp-config.php.
# nano ../wp-config.php
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'enter+the+strong+password+you+defined');
define('DB_HOST', 'localhost');
…
define('AUTH_KEY', 'pasted from clipboard');
define('SECURE_AUTH_KEY', 'pasted from clipboard');
define('LOGGED_IN_KEY', 'pasted from clipboard');
define('NONCE_KEY', 'pasted from clipboard');
define('AUTH_SALT', 'pasted from clipboard');
define('SECURE_AUTH_SALT', 'pasted from clipboard');
define('LOGGED_IN_SALT', 'pasted from clipboard');
define('NONCE_SALT', 'pasted from clipboard');
Configure Apache
# nano /etc/httpd/conf.d/wordpress.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin
webmaster@dummy-host.example.com
DocumentRoot /var/www/wordpress/public
ServerName dummy-host.example.com
ErrorLog /var/www/wordpress/logs/error_log
CustomLog /var/www/wordpress/logs/access_log common
<Directory /var/www/wordpress/public/wp-content>
Options FollowSymLinks # for pretty permalink support
RemoveHandler .php
RemoveType text/html .php
</Directory>
</VirtualHost>