crivens
12-01-2002, 05:43 AM
Hi i was wondering if you guys could help me out?. I want to change my hostname. But i am unsure how to do this and if i do this do i need to update anything else like my php.ini or anything else?. Also i have ensim installed and want to turn safe mode off in my php.ini but it says its off already any ideas?
Thanx in advance :)
i am a
12-01-2002, 07:24 AM
i'm not positive about any dependencies regarding ensim, but you can typically just edit the /etc/hosts file, and the /etc/sysconfig/network
and then reboot your computer to get the changes going...
safe_mode is probably turned off by default but within an apache vhost you can enable it on a 'per site basis'
u might want to checkout httpd.conf
example:
<VirtualHost 111.111.111.111:80>
ServerAdmin webmaster@1111.com
DocumentRoot /home/users/1111
ServerName 1111.info
CustomLog /logs/1111_access combined
<Directory /home/users/1111>
Options Includes Indexes
php_admin_value safe_mode 1
php_admin_value open_basedir "/home/users/1111"
</Directory>
</VirtualHost>
Poster1
12-07-2002, 12:20 AM
Hi,
How can i edit httpd.conf ? where to fine it .. ? how to download it then upload ?
i am a
12-07-2002, 01:33 AM
typically httpd.conf is in /etc/httpd/conf, but it depends on your control panel i suppose (i don't know if ensim places it somewhere else?) make sure you make a backup of the file just in case. note you'll also need to restart apache after making changes to the file...
/sbin/service httpd restart
or perhaps
/etc/httpd/bin/apachectl graceful
Poster1
12-07-2002, 01:36 AM
Thanks you " i am a " for replying ..
my controlpanel is cPanel & WHM .. So, How to do it ?
dbbrock1
12-07-2002, 04:32 PM
You have a server and you don't have any idea on how to do simple tasks like finding files? Maybe you should check out redhat.com to learn linux. Apache docs can be found at apache.org.
Good luck!
eddie
12-07-2002, 04:46 PM
dbbrock1,
if is such a simple task instead of writting those 2 lines why don't you just, write the steps how to do it.
:cool:
locate httpd.conf
Cpanel/WHM - /usr/local/apache/conf/httpd.conf
find / -name httpd.conf will work.
as for the hostname, you dont have to reboot, just use the command
hostname <newname>
and change /etc/sysconfig/network manualy