cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.my_backup
<VirtualHost 188.8.131.52> ServerName www.domain.com ServerAlias domain.com ServerAdmin [email protected] DocumentRoot /home/userdom/public_html BytesLog domlogs/domain.com-bytes_log User userdom Group userdom <IfModule mod_userdir.c> Userdir disabled Userdir enabled userdom </IfModule> <IfModule mod_php5.c> php_admin_value open_basedir "/home/userdom:/usr/lib/php:/usr/local/lib/php:/tmp" </IfModule> CustomLog /usr/local/apache/domlogs/domain.com combined ScriptAlias /cgi-bin/ /home/userdom/public_html/cgi-bin/ </VirtualHost>
php_admin_flag safe_mode On
cat /usr/local/apache/conf/httpd.conf.my_backup > /usr/local/apache/conf/httpd.conf
That's is the best thing you should do, don't touch on files when you are not sure of what you are doing.Hey. I do have root access. I might pay some people in the datecentre to do it. I have done basic file editing and moving files in ssl but i am not comftable in editing the apache settings.
Can't you just put that in a .htaccess file, that should work?
This specific option can't be put on the .htaccess file because is only changeable at PHP_INI_SYSTEM level, which means "Entry can be set in php.ini or httpd.conf"No. It depends upon the Options and Overrides allowed.
Not on servers with CPanel, at least not that I know.Before i had my own server i had a reseller account on webhosting company. What they did is that they had a php folder in every accounts root. What i mean by that is as they can go up. So they see the folder www,mail,public_html etc
Couldn't you just put a folder called php in the root then put the file in?
|Thread starter||Similar threads||Forum||Replies||Date|
|A||dedicated server spiking||General Discussion||2|
|Z||One domain used in two hostnames for two dedicated servers||General Discussion||3|
|I||Dedicated IP's missing from cPanel||General Discussion||6|
|L||Dedicated php.ini file for each account||General Discussion||3|
|N||phpsuexec on dedicated server. Any advantages?||General Discussion||19|