View Single Post
  #3  
Old 18th February 2008, 15:55
VinceDee VinceDee is offline
Junior Member
 
Join Date: Feb 2006
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanks for the link, Till. It was valuable in that it not only showed me how to do httpd -t but I also figured out a way to copy and paste my conf files.

I renamed my latest Vhosts_ispconfig.conf_17-02-08_09-11-38 into Vhosts_ispconfig.conf using the linked method and then ran httpd -t (I hope that's what I was supposed to do. Please tell me if I did that wrong). It returned the following message:

Code:
Syntax error on line 47 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
Line 47 is the "SetInputFilter PHP" part of:
Code:
<Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
Here is the entire Vhosts_ispconfig.conf file:
Code:
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.100:80
<VirtualHost 192.168.0.100:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.vincedee.com:80
######################################
#
#
<VirtualHost 192.168.0.100:80>
ServerName www.vincedee.com:80
ServerAdmin webmaster@vincedee.com
DocumentRoot /var/www/web1/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 $
ScriptAlias  /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web1/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
<Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web1/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/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
</VirtualHost>
#
#
#
Can you tell me what is wrong? Also, as I said before, the www.vincedee.com website isn't supposed to exist anymore...I deleted it from within ispconfig but it's folder is still on the server and as you can see the reference to it is still in the Vhosts_ispconfig.conf file.

Thank you
Reply With Quote