Hello fellow ispconfigers, I seem to have a problem: PHP scripts will get executed in the main (../web) directory , but not in a subdirectory. PHP and PHP safe mode are activated. To test this I made an index.php ind ../web , and the same file in ../web/Webseiten Then I called them directly from Firefox. The one in ../web behaves as wanted, the one in ../web/Webseiten does not execute the php part. Why ? Addendum: in the error log I see [Thu Dec 11 12:04:15 2008] [warn] Cannot get media type from 'x-mapp-php5', only if the index_.php file is called from the ../web/Webseite directory. TIA Peter PS: index.php: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Hallo-Welt-Beispiel</title> </head> <body> <p>html-test</p> <?php echo "php-test!"; ?> </body> </html>
OK. Getting there. I see the customer had an .hhtaccess file which had ############################################### RewriteEngine On RewriteBase / RewriteRule ^([0-9]*)-([0-9]*)- index.php?article_id=$1&clang=$2&%{QUERY_STRING} RewriteRule ^([0-9]*)- index.php?article_id=$1&%{QUERY_STRING} # Alle PHP-Skripte mit PHP5 ausf▒hren: AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php ############################################### in it. Strange. PHP5 is installed (says phpinfo(); ) Seems to be a provider specific statement to switch the 1&1 server to PHP5 CU Peter
PHP is managed by ISPConfig. You will have to remove the lines: AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php from the .htaccess file as these settings are not allowed for .htaccess files in ISPConfig for security reasons and they are not nescessary.