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|
|G||Adding new php on dedicated server through WHM or other method?||Web Servers and Applications||3|
|A||How to use php curl with account's dedicated ip? (not use main shared ip)||Web Servers and Applications||1|
|D||Tons of PHP/Apache processes from one user on dedicated server||Web Servers and Applications||23|
|B||forcing php script to run with dedicated IP||Web Servers and Applications||1|
|L||Dedicated php.ini file for each account||Web Servers and Applications||3|
|Adding new php on dedicated server through WHM or other method?|
|How to use php curl with account's dedicated ip? (not use main shared ip)|
|Tons of PHP/Apache processes from one user on dedicated server|
|forcing php script to run with dedicated IP|
|Dedicated php.ini file for each account|