Hello,
/home/username/public_html/php.ini not taking any effect for any user in the server. Server running wuth PHPsuexec enabled. Where I would have to check?
Apache/2.2.9
PHP 5.2.6
Thanks
Hello,
/home/username/public_html/php.ini not taking any effect for any user in the server. Server running wuth PHPsuexec enabled. Where I would have to check?
Apache/2.2.9
PHP 5.2.6
Thanks
Hi,
PHPSuExec was removed from the newest EasyApache, have you updated your cPanel so you have the latest files? In place of PHPSuExec, you should use suPHP, with this you can specify a custom php.ini file. There is a nice writeup on how to do this here: http://www.watters.ws/wiki/index.php...ile_with_suPHP
Hello,
Thank you for this. After making codes in .htaccess and php.ini files in the particular user I am getting 500 Internal Server Error. cPanel is updated.
Thank you,
Have a read through the thread at:
http://forums.cpanel.net/showthread.php?t=76084
this deals specifically with register_globals, but the same concept applies here.
Hello,
I have gone through that thread and just need to set Include I think. I have also did as per your post in the same thread but still no luck. Can you please help to where I set Include in httpd.conf and what I need to add in it. I have created an include file manually ../usr/local/apache/conf/userdata/username/addon.domain.com/test.conf
This is VirtualHost entry in httpd.conf I have
<VirtualHost server IP:80>
ServerName addon.domain.com
ServerAlias addondomainname www.addondomainname
ServerAlias www.addon.domain.com
DocumentRoot /home/username/public_html/addondomain.com
ServerAdmin webmaster@addon.domain.com
## User username # Needed for Cpanel::ApacheConf
UseCanonicalName off
<IfModule mod_suphp.c>
suPHP_UserGroup username username
</IfModule>
<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/username:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
php5_admin_value open_basedir "/home/username:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule !concurrent_php.c>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/username:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/username:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/home/username:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
</IfModule>
<IfModule !mod_disable_suexec.c>
SuexecUserGroup username username
</IfModule>
CustomLog /usr/local/apache/domlogs/addon.domain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
CustomLog /usr/local/apache/domlogs/addon.domain.com combined
ScriptAlias /cgi-bin/ /home/username/public_html/addon.domain.com/cgi-bin/
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/username/addon.domain.com/*.conf"
</VirtualHost>
Thanks in advance,
I tried with this also as per your post ...at here
What is the contents of /usr/local/apache/conf/userdata/username/addon.domain.com/test.conf?
Did you run:
/scripts/ensure_vhost_includes --user=username
as well?
Contents of /usr/local/apache/conf/userdata/username/addon.domain.com/test.conf :
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username/php
</IfModule>
Yes I did run /scripts/ensure_vhost_includes --user=username and there was no output for this.
Oh, I see the problem.
The filename/path has to be:
/usr/local/apache/conf/userdata/std/2/username/addon.domain.com/test.conf
you're missing some of that
Sorry it didn't work, I think I have to recompile apache with mod_suphp
Try out this if its php5.
mv /usr/local/cpanel/cgi-sys/php5 /usr/local/cpanel/cgi-sys/php5.bin
create a file /usr/local/cpanel/cgi-sys/php5 and add the following:
#!/bin/bash
# This will fake the name & path and hide the /usr/local/cpanel/cgi-sys/php5 path!
export SCRIPT_NAME=$REQUEST_URI
export SCRIPT_FILENAME=$PATH_TRANSLATED
export PWD=$DOCUMENT_ROOT
if [ -f "$DOCUMENT_ROOT/php.ini" ]; then
exec /usr/local/cpanel/cgi-sys/php5.bin -c $DOCUMENT_ROOT
else
exec /usr/local/cpanel/cgi-sys/php5.bin
fi
Change the permission:
chown root:wheel /usr/local/cpanel/cgi-sys/php5*;
chmod 755 /usr/local/cpanel/cgi-sys/php5*;
It worked for me![]()