Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 30th October 2006, 03:03
Jcorrea920 Jcorrea920 is offline
Join Date: Feb 2006
Posts: 82
Thanks: 4
Thanked 1 Time in 1 Post
Exclamation php files don't work on Apache 2.2.3

I am testing a ISPConfig 2.2.7 system on Fedora Core 6 VM downloaded from the LAMP on FC6 tutorial. My idea is to import into a VMWare Server and use in production. The funniest thing happened when I restored the current websites from the production server a VM running FC4 ISPConfig 2.2.7 Mysql 4.1.20, PHP 5.0.1, Apache 2.0.54 into the dev server to test and now PHP doesn't work on the Vhosts. It is odd because phpinfo.php works just fine but any other php file only gives 500 Internal Server error. If I try to access a directory that does not have a index.php file I get a 403 Forbidden error. I have attached phpinfo.php from the VM image.

VM FC6 image
Mysql 5.0.22
Php 5.1.6
Apache 2.2.3

From /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf:

ServerName www.correaconsulting.com:80
ServerAdmin webmaster@correaconsulting.com
DocumentRoot /var/www/web3/web
ServerAlias correaconsulting.com pop.correaconsulting.com smtp.correaconsulting.com
DirectoryIndex index.php
ScriptAlias  /cgi-bin/ /var/www/web3/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web3/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
<Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
<Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
<Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web3/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
any suggestions?

Thanks in advanced
Attached Files
File Type: zip phpinfo.zip (9.2 KB, 278 views)
Reply With Quote
Sponsored Links
Old 30th October 2006, 10:44
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts

Please have a look in the apache error log which is inside the logs directory of the website where you called the PHP script.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 1st November 2006, 03:39
Jcorrea920 Jcorrea920 is offline
Join Date: Feb 2006
Posts: 82
Thanks: 4
Thanked 1 Time in 1 Post
Thumbs up Solved!!

Okay before everyone just starts laughing I am running Jetbox CMS on this development server and it has similar setting in the .htaccess to Drupal. That said .htaccess Options are apparently not allowed. Not sure if its Apache, php5.1, or MySql 5, but this is the error that I got:

[Sun Oct 29 16:21:12 2006] [alert] [client 10.xx.;) .194] 

htaccess: Options not allowed here
So to fix the issue:

old code of .htaccess:

Options -Indexes
Options +FollowSymLinks
changed for PHP5.1:

# Options -Indexes
# Options +FollowSymLinks
Thank you Till for pointing me in the right direction.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 10:29
Slightly Confused (DNS & Server Help) JohnnyBGoode Installation/Configuration 26 14th August 2007 10:54
VirtualHosts marra87 General 9 12th September 2006 05:09
php script injections Grizzly General 21 18th July 2006 09:55
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58

All times are GMT +2. The time now is 02:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.