suPhp.conf file empty?

kevster

Verified User
Joined
Jun 26, 2008
Messages
96
Is this correct that this is empty in

/etc/httpd/conf/extra/httpd-suphp.conf

Thanks,
Kevin.
 
Just rebuild suphp and check the file again,

There should be some configuration text, but not so much, some lines

cd /usr/local/directadmin/custombuild
./build suphp
 
Hi.

I have rebuilt the file just there and still nothing is in the suphp.conf file.

Any other way I can put the configuration in
 
Try "./build rewrite_confs". Make sure php-cgi is selected in the options.conf file.
 
After i done the above it now shows

[root@i custombuild]# ./build rewrite_confs
Using 94.23.243.176 for your server IP
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
Restarting apache.
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 30 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
 
Line 30 is below

<Directory /home/admin/domains/testdomain.com/public_html>
Options +Includes -Indexes

LINE 30 php_admin_flag engine ON
<IfModule !mod_php6.c>
php_admin_flag safe_mode OFF
</IfModule>
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'


php_admin_value open_basedir /home/admin/:/tmp:/var/tmp:/usr/local/lib/php/


</Directory>
 
"./build php n" will fix your problems if you have no custom templates :)
 
Just now I had to change it back to cli and not cgi as everytime its on cgi it does that internal server error page
 
So check the apache error log. You probably have permissions wrong.
 
Back
Top