PHP 5 will not work in Centos 6 for me

Posted by LaserBeak on Server Fault See other posts from Server Fault or by LaserBeak
Published on 2011-11-27T11:39:58Z Indexed on 2012/06/21 9:18 UTC
Read the original article Hit count: 243

Filed under:
|
|
|
|

Just created a new install of Centos 6.0 64-bit on a virtual machine and running on Vmware workstation 8, windows host.

yum install php
service httpd restart

And when trying to run a html file from the var\www\html dir which just has <?php phpinfo(); ?> in it or pointing browser to localhost. Nothing comes up.

Also opened up httpd.conf and added:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Tried reinstalling, installing php-common, then php etc. to no avail. Otherwise going for the typical LAMP.

installed:

php.x86_64              5.3.2-6.el6_0.1 @updates                                
php-cli.x86_64          5.3.2-6.el6_0.1 @updates                                
php-common.x86_64       5.3.2-6.el6_0.1 @updates 

Yet to update to Centos 6.1

PHP5 is probably comes installed by default with Centos and I maybe stuffed it up by running yum install php?

© Server Fault or respective owner

Related posts about linux

Related posts about apache2