Apache will not load

TheVisitors

Verified User
Joined
Mar 21, 2012
Messages
41
Location
Its my world, you all just live here
Starting httpd: AH00526: Syntax error on line 89 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'FastCgiExternalServer', perhaps misspelled or defined by a module not included in the server configuration
 
figured maybe I needed to run

./build php n

That's only made the error bigger

[Sat Feb 16 02:39:08.386975 2013] [proxy:warn] [pid 3356:tid 140135159817984] AH01146: Ignoring parameter 'timeout=300' for worker 'fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fwebapps.sock/var/www/html/squirrelmail/$1' because of worker sharing
AH00526: Syntax error on line 89 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'FastCgiExternalServer', perhaps misspelled or defined by a module not included in the server configuration
 
figured maybe I needed to run

./build php n

That's only made the error bigger

[Sat Feb 16 02:39:08.386975 2013] [proxy:warn] [pid 3356:tid 140135159817984] AH01146: Ignoring parameter 'timeout=300' for worker 'fcgi://socket=%2fusr%2flocal%2fphp54%2fsockets%2fwebapps.sock/var/www/html/squirrelmail/$1' because of worker sharing
AH00526: Syntax error on line 89 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'FastCgiExternalServer', perhaps misspelled or defined by a module not included in the server configuration

./build apache

same error.
 
You seem to be having a bunchof problems with this server. Have you tried rebuilding it yet? If not, then we need more information; possibly attach your CustomBuild options.conf file.

Jeff
 
The solution is pretty simple ...

cd /usr/local/directadmin/custombuild
./build mod_fastcgi
 
I have the same problem and ./build mod_fastcgi is not solution for me :/

Any ideas?
 
Update DA to the latest pre-release, update CustomBuild and run rewrite_confs. You seem to be using a very old version of CB or DA, or there are custom templates created on the system.
 
There is no FastCgiExternalServer in virtual_host2*.conf templates. Please check:
Code:
grep FastCgiExternalServer /usr/local/directadmin/data/templates/virtual_host2*.conf

And:
Code:
grep FastCgiExternalServer /usr/local/directadmin/data/templates/custom/virtual_host2*.conf

Also, post the output of:
Code:
/usr/local/directadmin/directadmin o

Compile time of DA 1.43.0 RC1 is "Feb 17 2013".

It's likely that your /usr/local/directadmin/data/templates/custom directory has custom templates inside.
 
Same problem

I ran into the same problem, when I tried to update to PHP 5.3.22 and PHP 5.4.22. I could revert the previous state of the machine and did the following:
  1. ./build rewrite_confs: no problem
  2. ./build update: fetched new custombuild and new PHP's
  3. ./build rewrite_confs: error FastCgiExternalServer

Complete error:
Code:
bash-3.2# ./build rewrite_confs
Using 31.3.97.110 for your server IP
Gracefully shutting down php-fpm54:  done
Starting php-fpm54:  done
Restarting apache.
Stopping httpd:                                            [  OK  ]
Starting httpd: AH00526: Syntax error on line 94 of /usr/local/directadmin/data/users/abchost/httpd.conf:
Invalid command 'FastCgiExternalServer', perhaps misspelled or defined by a module not included in the server configuration

bash-3.2# service httpd status
httpd is stopped
#

Please note that this happened without rebuilding anything at all!

My options.conf:
Code:
#PHP settings.
#Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4, no. php1/php2_mode: mod_php, php-fpm or suphp)
php1_release=5.3
php2_release=5.4
php1_mode=mod_php
php2_mode=php-fpm
php_ini=no
#Possible values - production or development
php_ini_type=production
ioncube=no
zend=no

#Possible values - 5.1, 5.5
mysql=5.5
mysql_inst=yes
mysql_backup=no
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Possible value: 2.4
apache_ver=2.4
mod_ruid2=no
secure_htaccess=no
harden-symlinks-patch=yes
#

No custom templates:
Code:
-bash-3.2# ls -la /usr/local/directadmin/data/templates/custom
total 8
drwx--x--x 2 diradmin diradmin 4096 Jan 22 13:55 .
drwx--x--x 8 diradmin diradmin 4096 Feb 24 14:13 ..

I could solve the situation by copying the build script from my production server:
Code:
bash-3.2# ls -la build
-rwxr-xr-x 1 root root 310041 Feb 15 00:23 build

BTW: ./build all failed, complaining about not being able to compile MOD_RUID2
 
There is no FastCgiExternalServer in virtual_host2*.conf templates.
There is:
Code:
bash-3.2# ls -la build
-rwxr-xr-x 1 root root 310041 Feb 24 02:50 build
bash-3.2# grep FastCgiExternalServer /usr/local/directadmin/data/templates/virtual_host2*.conf
/usr/local/directadmin/data/templates/virtual_host2.conf:       FastCgiExternalServer |REALDOCROOT|/index.php -socket /usr/local/php|PHP1_RELEASE|/sockets/|USER|.sock -pass-header Authorization
/usr/local/directadmin/data/templates/virtual_host2.conf:       FastCgiExternalServer |REALDOCROOT|/index.php|PHP2_RELEASE| -socket /usr/local/php|PHP2_RELEASE|/sockets/|USER|.sock -pass-header Authorization
/usr/local/directadmin/data/templates/virtual_host2_secure.conf:        FastCgiExternalServer |REALDOCROOT|/index.php -socket /usr/local/php|PHP1_RELEASE|/sockets/|USER|.sock -pass-header Authorization
/usr/local/directadmin/data/templates/virtual_host2_secure.conf:        FastCgiExternalServer |REALDOCROOT|/index.php|PHP2_RELEASE| -socket /usr/local/php|PHP2_RELEASE|/sockets/|USER|.sock -pass-header Authorization
/usr/local/directadmin/data/templates/virtual_host2_secure_sub.conf:    FastCgiExternalServer |REALDOCROOT|/|SUB|/index.php -socket /usr/local/php|PHP1_RELEASE|/sockets/|USER|.sock -pass-header Authorization
/usr/local/directadmin/data/templates/virtual_host2_secure_sub.conf:    FastCgiExternalServer |REALDOCROOT|/|SUB|/index.php|PHP2_RELEASE| -socket /usr/local/php|PHP2_RELEASE|/sockets/|USER|.sock -pass-header Authorization
/usr/local/directadmin/data/templates/virtual_host2_sub.conf:   FastCgiExternalServer |REALDOCROOT|/|SUB|/index.php -socket /usr/local/php|PHP1_RELEASE|/sockets/|USER|.sock -pass-header Authorization
/usr/local/directadmin/data/templates/virtual_host2_sub.conf:   FastCgiExternalServer |REALDOCROOT|/|SUB|/index.php|PHP2_RELEASE| -socket /usr/local/php|PHP2_RELEASE|/sockets/|USER|.sock -pass-header Authorization
bash-3.2# ls -la  /usr/local/directadmin/data/templates/virtual_host2*.conf
-rw-r--r-- 1 diradmin diradmin 2288 Dec  1 07:07 /usr/local/directadmin/data/templates/virtual_host2.conf
-rw-r--r-- 1 diradmin diradmin 2397 Dec  1 07:07 /usr/local/directadmin/data/templates/virtual_host2_secure.conf
-rw-r--r-- 1 diradmin diradmin 2477 Dec  1 07:07 /usr/local/directadmin/data/templates/virtual_host2_secure_sub.conf
-rw-r--r-- 1 diradmin diradmin 2367 Dec  1 07:07 /usr/local/directadmin/data/templates/virtual_host2_sub.conf
bash-3.2# grep FastCgiExternalServer /usr/local/directadmin/data/templates/custom/virtual_host2*.conf
grep: /usr/local/directadmin/data/templates/custom/virtual_host2*.conf: No such file or directory
bash-3.2# /usr/local/directadmin/directadmin o
Compiled on 'CentOS 5.0 64-bit'
Compile time: Nov 28 2012 at 02:11:53
Compiled with IPv6
bash-3.2#
 
About /build all, it ended like this:
Code:
MD5 Checksum on mod_ruid2-0.9.7.tar.bz2 passed.
You cannot install mod_ruid2, because you do not have it set in options.conf file.
bash-3.2#
Then I changed mod_ruid2 to yes in options.conf:
Code:
bash-3.2# nano options.conf
bash-3.2# ./build all
apache webserver is not compatible with php-fpm or php-fastcgi PHP mode with mod_ruid2 enabled.
bash-3.2#
 
I did a completely fresh install of Custombuild 2.0. It failed once again:
Code:
bash-3.2# ./build rewrite_confs
Using 31.3.97.110 for your server IP
Gracefully shutting down php-fpm54:  done
Starting php-fpm54:  done
Restarting apache.
Stopping httpd:                                            [  OK  ]
Starting httpd: AH00526: Syntax error on line 94 of /usr/local/directadmin/data/users/abchost/httpd.conf:
Invalid command 'FastCgiExternalServer', perhaps misspelled or defined by a module not included in the server configuration
bash-3.2#
Then I copied the build script from my production server to the server with the troubles:
Code:
bash-3.2# ls -la build*
-rwxr-xr-x 1 root root 310041 Feb 24 17:24 build
-rwxr-xr-x 1 root root 313291 Feb 24 17:23 build.bad

bash-3.2# ./build rewrite_confs
Using 31.3.97.110 for your server IP
Gracefully shutting down php-fpm54:  done
Starting php-fpm54:  done
Gracefully shutting down php-fpm54:  done
Starting php-fpm54:  done
Restarting apache.
Stopping httpd:                                            [  OK  ]
Starting httpd:

bash-3.2# service httpd status
httpd (pid  17846) is running...
bash-3.2#
It is clear: the culprit is the new build script.
 
There is:
Code:
bash-3.2# /usr/local/directadmin/directadmin o
Compiled on 'CentOS 5.0 64-bit'
Compile time: Nov 28 2012 at 02:11:53
Compiled with IPv6

CB 2.0 is only compatible with DA 1.43 RC1 and later.
 
Really strange. When I started with CB 2.0 and DA 1.42.1 it worked fine. No wonder some users get into trouble. BTW, a quote from the CB 2.0 FAQ:
Code:
Please note that you need DirectAdmin version 1.42.2 at least (you can use current pre-release binaries too) to run CustomBuild 2.0.
And another note: DA 1.42.1 tells me
Code:
Update not necessary

Details

You already have the most recent version of the program
And if I do a manual update cf http://help.directadmin.com/item.php?id=29 I still get:
Code:
-bash-3.2# ../directadmin o
Compiled on 'CentOS 5.0 64-bit'
Compile time: Dec  4 2012 at 00:13:47
Compiled with IPv6
Do I really have to toggle with different versions of the build script to continue with CB 2.0?
 
Last edited:
Really strange. When I started with CB 2.0 and DA 1.42.1 it worked fine. No wonder some users get into trouble. BTW, a quote from the CB 2.0 FAQ:
Code:
Please note that you need DirectAdmin version 1.42.2 at least (you can use current pre-release binaries too) to run CustomBuild 2.0.
And another note: DA 1.42.1 tells me
Code:
Update not necessary

Details

You already have the most recent version of the program
And if I do a manual update cf http://help.directadmin.com/item.php?id=29 I still get:
Code:
-bash-3.2# ../directadmin o
Compiled on 'CentOS 5.0 64-bit'
Compile time: Dec  4 2012 at 00:13:47
Compiled with IPv6
Do I really have to toggle with different versions of the build script to continue with CB 2.0?
It worked fine, because you had correct templates for the settings you used. Yes, it is said in CustomBuild FAQ that you need DA 1.42.2 (this version was skipped and 1.43 RC1 released) or the latest pre-release, so it's normal that you get in trouble with an incompatible version of DA. Please check http://help.directadmin.com/item.php?id=408. Thank you.
 
It worked fine, because you had correct templates for the settings you used. Yes, it is said in CustomBuild FAQ that you need DA 1.42.2 (this version was skipped and 1.43 RC1 released) or the latest pre-release, so it's normal that you get in trouble with an incompatible version of DA. Please check http://help.directadmin.com/item.php?id=408. Thank you.
With my licenses I cannot upgrade any further than 1.42.1. I have got three internal licenses (from 2 different server providers): http://www.directadmin.com/internal.html

So what do I do now?
 
You should mail DirectAdmin support for a link to pre-release binaries for your system. Without running DA 1.43 RC1 I would not recommend running CustomBuild 2.0.
 
Back
Top