Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
What is the output of:
# rpm -qa | grep 'httpd\|php\|mysql'
You should have at least: mysql-server, php, httpd, php-mysql
If not:
# yum install mysql-server php httpd php-mysql
Then start(or restart) everything:
# /etc/init.d/mysqld restart
# /etc/init./httpd restart
Create a file 'test.php' with the following code:
Code:
<?php
phpinfo();
?>
And place it where Apache can see it (/var/www/html for example)
then load it (http://localhost/test.php for example).
This should show all your PHP setup/configuration.
In the httpd.conf file in /etc/apache/ remove the hash mark (#) from before mod-php. Also add to Directory Index: index.php Add .httpd-php .php, to Add Type Application.
In the Perfect server setup if you are using ispconfig you comment out the addtype and a couple of other bits and pieces to disable php. But I haven't been able to install ispconfig but I had commented out the bits and pieces. I have uncommented them and have had success.
It is point 13.1 and the file is /etc/httpd/conf.d/php.conf.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.