can't build suphp to mod_php

hostck

New member
Joined
Jun 10, 2013
Messages
9
Hi everyone

when i do follow this the guide to change from mod_php to suphp :

cd /usr/local/directadmin/custombuild/
./build clean
./build update
./build set php5_cgi yes
./build set php5_cli no
./build all d
./build rewrite_confs

but after build have finished that i check : php -v, it still shows :PHP 5.3.20 (cli)

i can't know how to correct it

morever, i did this guide : http://forum.directadmin.com/showthread.php?t=29483

but can't use VirtualHost templates for Custom HTTPD Configurations on my hosting server


i need help from you

Thanks alot
 
[..]but after build have finished that i check : php -v, it still shows :PHP 5.3.20 (cli)[..]

I think that is normal and correct, because DirectAdmin control panel itself need to run php in cli. Please upload a phpinfo page and check if it is cli or cgi, it likely is correct cgi that is used in websites.
 
Thanks ditto,

but when i change from mod_php to supph, i did this guide : http://forum.directadmin.com/showthread.php?t=29483

but can't use VirtualHost templates for Custom HTTPD Configurations on my hosting server, for some secure reasons, i need all :

AllowOverride AuthConfig FileInfo Indexes Limit

Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
Options -ExecCGI

to httpd.conf file of all users on my hosting server but i don't know how to do that,

i need help
 
Hi

i did everything as you show before, but when i copy VirtualHost template to custom, the
Custom HTTPD Configurations file on Directadmin for users still same old:


# Auto generated apache config file by DirectAdmin version 1.43.0
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3

<VirtualHost abc.com:80 >


ServerName www.abc.com
ServerAlias www.abc.com abc.com
ServerAdmin [email protected]
DocumentRoot /home/abc/domains/abc.com/public_html
ScriptAlias /cgi-bin/ /home/abc/domains/abc.com/public_html/cgi-bin/

UseCanonicalName OFF

<IfModule !mod_ruid2.c>
SuexecUserGroup abc abc
</IfModule>

CustomLog /var/log/httpd/domains/abc.com.bytes bytes
CustomLog /var/log/httpd/domains/abc.com.log combined
ErrorLog /var/log/httpd/domains/abc.com.error.log

<Directory /home/abc/domains/abc.com/public_html>

suPHP_Engine ON
suPHP_UserGroup abc abc

</Directory>

</VirtualHost>

<VirtualHost 210.211.102.8:443 >

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key


ServerName www.abc.com
ServerAlias www.abc.com abc.com
ServerAdmin [email protected]
DocumentRoot /home/abc/domains/abc.com/private_html
ScriptAlias /cgi-bin/ /home/abc/domains/abc.com/public_html/cgi-bin/

UseCanonicalName OFF

<IfModule !mod_ruid2.c>
SuexecUserGroup abc abc
</IfModule>


CustomLog /var/log/httpd/domains/abc.com.bytes bytes
CustomLog /var/log/httpd/domains/abc.com.log combined
ErrorLog /var/log/httpd/domains/abc.com.error.log
<Directory /home/abc/domains/abc.com/private_html>

suPHP_Engine ON
suPHP_UserGroup abc abc

</Directory>
</VirtualHost>
 
can anyone help me ?

this is custom templates:

cd /usr/local/directadmin/data/templates/custom
ls -la

-rw-r--r-- 1 root root 1390 Jun 11 03:52 virtual_host2.conf
-rw-r--r-- 1 root root 1498 Jun 11 03:53 virtual_host2_secure.conf
-rw-r--r-- 1 root root 1553 Jun 11 03:54 virtual_host2_secure_sub.conf
-rw-r--r-- 1 root root 1445 Jun 11 03:53 virtual_host2_sub.conf
 
Back
Top