I installed FC4 as a server to install ISPconfig on. So far ISPconfig is OK, but the php on the server itself does not work. it keeps showing the code. How do I fix PHP? I believe it is PHP5, may be wrong.
You haven't added the correct extension to Apache possibly? Hence it doesn't recognise it as a php format and parse it correctly, and instead outputs the code straight to screen. Update : MIME type needs to be handled and the directory needs to know that it can use index.php files. Look for the following sections : <IfDefine HAVE_PHP> LoadModule php_module modules/mod_php.so </IfDefine> <IfDefine HAVE_PHP3> LoadModule php3_module modules/libphp3.so </IfDefine> <IfDefine HAVE_PHP4> LoadModule php4_module modules/libphp4.so <IfDefine HAVE_PHP> AddModule mod_php.c </IfDefine> <IfDefine HAVE_PHP3> AddModule mod_php3.c </IfDefine> <IfDefine HAVE_PHP4> AddModule mod_php4.c <IfModule mod_dir.c> DirectoryIndex at_domains_index.html index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi index.cfm </IfModule> You also must make sure you have the following : <IfModule mod_php4.c> AddType application/x-httpd-php .php .php4 .php3 .phtml AddType application/x-httpd-php-source .phps </IfModule> <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps </IfModule> <IfModule mod_php.c> AddType application/x-httpd-php .phtml </IfModule> And you will also require something like this in your vhosts section : <Directory "/home/httpd/vhosts"> AllowOverride All Options SymLinksIfOwnerMatch Order allow,deny Allow from all php_admin_flag engine off </Directory> ________ BONG
Did you create a web site in ISPConfig? Did you enable PHP for that web site? In which directory did you place your PHP script? If you put it in /var/www/html, it cannot work because PHP is disabled globally and enabled by ISPconfig on a per-site basis.
In response to this, can you enable it globally even though you disabled that when you installed ISPconfig?
This probably goes right along with one of my other questions you answered. Since it's set to enable PHP individually, even if I check the box, it isn't set. But, I'll worry about that once I get my webpages to show up in their correct home directory.