Problem after update directadmin

dvizhok

Verified User
Joined
Jun 10, 2008
Messages
20
Hello.

I have problem with apache after update directadmin.

Invalid command 'FastCgiExternalServer', perhaps misspelled or defined by a module not included in the server configuration
Is when restarting apache, panel version
1.42.0
 
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/datataskq d30
 
This command will create generic configurations. It will probably write over any customizations which were created in place (in the files themselves) instead of through DirectAdmin customized templates. Be careful you have copies of your customized configurations.

Jeff
 
When I change the server the user, it appears the following configuration
<IfModule mod_fastcgi.c>
FastCgiExternalServer /home/user/public_html/index.php -socket /usr/local/php52/sockets/user.sock -pass-header Authorization
Alias /fastcgiphp52user /home/user/public_html/index.php
<Location "/fastcgiphp52user">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</Location>
</IfModule>

<FilesMatch \.php$>
SetHandler php52-fcgi
</FilesMatch>
<Location "/fastcgiphp">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</Location>
Action php52-fcgi /fastcgiphp
FastCgiExternalServer /home/user/domains/***/private_html/index.php -socket /usr/local/php52/sockets/user.sock -pass-header Authorization
Alias /fastcgiphp /home/user/domains/***/private_html/index.php
How to make sure that these lines are not added and still not break anything?
 
It should never say php52 as php 5.2 is obsolete and insecure. You probably have some custom configs in /usr/local/directadmin/data/templates/custom
 
Hello,

To clarify, the command:
Code:
./build rewrite_confs
will copy all data from whichever Apache config setup you're using, usually:
Code:
/usr/local/directadmin/custombuild/configure/ap2/conf
over to the used path
Code:
/etc/httpd/conf
Where there are a few exceptions.. like if the custom folder is used, then they're copied afterwards, overwriting the defaults.
This command also runs the action=rewrite&value=httpd and action=rewrite&value=ips, so you don't need to run the independently.
If you're missing your shared server cert/key files (eg: /etc/httpd/conf/ssl.crt/server.crt and ssl.key/server.key), it will add them for you with a generic "localhost" value.
The httpd-phpmodules.conf, httpd-php-handlers.conf and few other files have some per-setup tweaks, but nothing major.

As mentioned above, if you want any customizations to these files, see this guide:
http://help.directadmin.com/item.php?id=351

Also the file:
Code:
/etc/httpd/conf/extra/httpd-includes.conf
is never touched by DA (unless it doesn't exist, then it's created as an empty file)
So if you have extra bits you want to add to Apache.. you can safely add them there.. and they won't get lost.

John
 
Back
Top