I upgrade my system to ISPConfig 2.22.2 and ran in to this error
Code:
root@server1:~# /etc/init.d/apache2 restart
* Restarting web server apache2 Syntax error on line 48 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
[fail]
root@server1:~# vi /etc/apache2/vhosts/Vhosts_ispconfig.conf
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
#estarting web server apache2 Syntax error on line 48 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
[fail]
* Restarting web server apache2 Syntax error on line 48 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
[fail]
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
suPHP does not support the php_value/php_admin_value directive known by mod_php to parse configuration options to scripts for certain virtual hosts or directories. You will have to either make the changes to your php.ini or have a individual php.ini for that web with the php options needed.
ok I decided to do an update and upgrade and this is the result
Code:
Setting up mysql-server-5.0 (5.0.45-1ubuntu3.3) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
Setting up mysql-server (5.0.45-1ubuntu3.3) ...
Setting up mysql-client (5.0.45-1ubuntu3.3) ...
Setting up libbz2-1.0 (1.0.4-0ubuntu2.1) ...
Setting up bzip2 (1.0.4-0ubuntu2.1) ...
Setting up python2.5 (2.5.1-5ubuntu5.1) ...
Setting up libkrb53 (1.6.dfsg.1-7ubuntu0.1) ...
Setting up libvolume-id0 (113-0ubuntu17) ...
Setting up volumeid (113-0ubuntu17) ...
update-initramfs: deferring update (trigger activated)
Setting up udev (113-0ubuntu17) ...
update-initramfs: deferring update (trigger activated)
Setting up libisc32 (1:9.4.1-P1-3ubuntu1) ...
Setting up libdns32 (1:9.4.1-P1-3ubuntu1) ...
Setting up libisccc30 (1:9.4.1-P1-3ubuntu1) ...
Setting up libisccfg30 (1:9.4.1-P1-3ubuntu1) ...
Setting up libbind9-30 (1:9.4.1-P1-3ubuntu1) ...
Setting up liblwres30 (1:9.4.1-P1-3ubuntu1) ...
Setting up bind9 (1:9.4.1-P1-3ubuntu1) ...
Installing new version of config file /etc/bind/db.root ...
* Starting domain name service... bind [ OK ]
Setting up bind9-host (1:9.4.1-P1-3ubuntu1) ...
Setting up dnsutils (1:9.4.1-P1-3ubuntu1) ...
Setting up openssh-client (1:4.6p1-5ubuntu0.2) ...
Setting up openssh-server (1:4.6p1-5ubuntu0.2) ...
* Restarting OpenBSD Secure Shell server sshd [ OK ]
Setting up rsync (2.6.9-5ubuntu1.1) ...
Setting up libpcre3 (7.4-0ubuntu0.7.10.2) ...
Setting up libpq5 (8.2.7-0ubuntu0.7.10) ...
Setting up apache2-utils (2.2.4-3ubuntu0.1) ...
Setting up apache2.2-common (2.2.4-3ubuntu0.1) ...
Setting up apache2-mpm-prefork (2.2.4-3ubuntu0.1) ...
* Starting web server apache2 apache2: Syntax error on line 345 of /etc/apache2/apache2.conf: Syntax error on line 259 of /etc/apache2/vhosts/Vhosts_ispconfig.conf: /etc/apache2/vhosts/Vhosts_ispconfig.conf:274: <Files> was not closed.\n/etc/apache2/vhosts/Vhosts_ispconfig.conf:259: <VirtualHost> was not closed.
[fail]
invoke-rc.d: initscript apache2, action "start" failed.
Setting up apache2 (2.2.4-3ubuntu0.1) ...
Setting up apache2-doc (2.2.4-3ubuntu0.1) ...
apache2: Syntax error on line 345 of /etc/apache2/apache2.conf: Syntax error on line 259 of /etc/apache2/vhosts/Vhosts_ispconfig.conf: /etc/apache2/vhosts/Vhosts_ispconfig.conf:274: <Files> was not closed.\n/etc/apache2/vhosts/Vhosts_ispconfig.conf:259: <VirtualHost> was not closed.
...fail!
invoke-rc.d: initscript apache2, action "reload" failed.
never got to finish the install because the apache2 could not restart. But here are the result
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
So I guess you never finsihed the suphp install? looks like all you did when you fist posted was the first 2 steps right?
Code:
a2dismod php5
/etc/init.d/apache2 restart
then you got the errors for php_admin_flag correct, if correct thats because you disabled php in order to finish the install of suphp.
please post the contents of /etc/apache2/vhosts/Vhosts_ispconfig.conf
Recent comments
1 day 9 hours ago
1 day 18 hours ago
1 day 21 hours ago
1 day 22 hours ago
2 days 12 min ago
2 days 1 hour ago
2 days 3 hours ago
2 days 4 hours ago
2 days 20 hours ago
2 days 21 hours ago