Jonathan
Nov 28 2001, 02:50 PM
I've tried changing the hostname of my server from plesk.rackshack.net using the hostname command but I restart Plesk, the mysql server fails to restart.
How do you change the hostname of the server so that Plesk still works????
The reason I want to change the hostname of the server is because the FTP server shows plesk.rackshack.net when you log in.
Thanks in advance.
winston
Nov 28 2001, 03:51 PM
The first thing I did on my server was remove Plesk (it unfortunately installs its own versions of a lot of things that I'd rather have standard, and I'd rather use vsftpd as my FTP daemon too), so I don't know whether this will help you. But this is what I did on my server:
Log on as root and edit the file /etc/sysconfig/network.
Change the hostname there.
Type "reboot" to reboot the server.
dabystru
Nov 30 2001, 08:27 AM
What I did and it worked with Plesk, I just used /sbin/linuxconf to change server's name. Go to 'client tasks', then 'host name and IP network devices', then 'host name + domain' and type your desired host name there. Then reboot with /sbin/reboot.
mmoncur
Nov 30 2001, 08:43 AM
Is linuxconf installed on these boxes? I can't find it in /sbin or anywhere else.
Jonathan
Nov 30 2001, 09:01 AM
Thanks, that worked a treat for me.
dabystru
Nov 30 2001, 09:31 AM
QUOTE
Originally posted by mmoncur
Is linuxconf installed on these boxes?
Usually, yes, try
locate *bin*linuxconf to find it. If it is not installed, you can install it by executing as root:
CODE
rpm -U [url]ftp://ftp.redhat.com/pub/redhat/linux/7.1/en/os/i386/RedHat/RPMS/linuxconf-1.24r2-10.i386.rpm[/url]
Note that Red Hat's server is very slow these days (10 KB/s and below), you may wait quite a while while this 6.5 MB RPM is downloading.
Added later: you can also download linuxconf from my server on RackShack network, this should be really fast when downloading to another RackShack server:
customer.saburovo.com/linuxconf-1.24r2-10.i386.rpm
Jonathan
Nov 30 2001, 09:36 AM
Actually one thing.... after changing the hostname on my box Apache started to fail to load. I had to edit /etc/hosts and edit the line that still said plesk.rackshack.net, restarted Plesk and everything worked fine.
dabystru
Nov 30 2001, 10:02 AM
QUOTE
Originally posted by Jonathan
I had to edit /etc/hosts and edit the line that still said plesk.rackshack.net, restarted Plesk and everything worked fine.
Hmm... Everything works fine in my case with /etc/hosts having
plesk.rackshack.net and hostname being
customer10.saburovo.com. Probably some DNS problem did not allow Apache to resolve hostname. But thank you for suggestion, changing /etc/hosts does not hurt.
afriq
Dec 1 2001, 01:23 AM
I did the following (which required no reboot):
- used linuxconfig (it is installed by default) to change the host and domain
- restarted psa
- change the host and domain name in the Plesk interface (in my case, it was during the 1st login into Plesk)
afriq
Dec 1 2001, 02:22 AM
Mart
Dec 2 2001, 08:30 AM
Don't want to sound stupid, but:
I run /sbin/linuxconf make the changes, then how the heck do you click Apply? I'm using SSH and I can't figure it out. I've tried everything :/
dabystru
Dec 2 2001, 10:35 AM
QUOTE
Originally posted by Mart
how the heck do you click Apply? I'm using SSH and I can't figure it out
Did you try
key? Use it to go to apply, then press enter
Mart
Dec 2 2001, 12:27 PM
Yup
What SSH client are you guys using? Maybe I'm using one that doesn't support the commands for the accept button...
dabystru
Dec 2 2001, 01:31 PM
QUOTE
Originally posted by Mart
What SSH client are you guys using?
I use PuTTY:
www.chiark.greenend.org.uk/~sgtatham/putty/. Everything works fine with
.
Synozeer
Feb 16 2002, 05:17 PM
When I try telnetting (haven't installed SSH yet) and I run the linuxconf, all the formatting is messed up. Half of it looks like ANSI, but it's everywhere, making it impossible for me to use the commands correctly. Anyone know what screen display I need to be using, or anything else that might be causing this problem?
Thanks,
Adam
AutoSear
Feb 17 2002, 02:47 AM
Synozeer,
Try downloading PuTTY from dabystru's link. You can telnet from PuTTY and the linuxconf interface should work better for you.
Also, get on the ball with the SSH install
Best,
Auto
Synozeer
Feb 17 2002, 08:47 AM
Yup, Putty did the trick, thanks.
I went in and made the changes to /sbin/linuxconf and then /usr/hosts, restarted, but when I log in, ProFTP still says it's plesk.rackshack.net. Typing hostname also shows plesk.rackshack.net.
One things strange. Every time I go to exit out of linuxconf I get this:
QUOTE
x x The following command told me something had to be done x x
x x /etc/rc3.d/S14nfslock probe x x
x x Executing: /etc/rc3.d/S14nfslock restart x x
x x Configuration file /etc/sysconfig/network have changed for service xinetx x
x x Executing: /etc/rc3.d/S56xinetd restart x x
x x Service lpd is not running x x
x x Executing: /etc/rc3.d/S60lpd start x x
x x Service gpm is not running x x
x x Executing: /etc/rc3.d/S85gpm start x x
x x Service xfs is not running
I've hit yes to do what it wants to, but it doesn't seem to make a difference.
Any ideas?
Thanks.
Adam
Synozeer
Feb 17 2002, 08:42 PM
Okay, got it to work. Appears I had to actually reset the entire machine via the reboot button on Plesk rather than rebooting it from the command line.
Thanks again for all your help!
Adam
Jonathan
Sep 19 2002, 03:17 AM
I'm assuming you have run reconfigurator.sh for Plesk ???
NightHawk
Sep 19 2002, 02:24 PM
You could just do it this way .. (I myself don't trust linuxconf and prefer to do things by hand)...
#############To Change Server Name###########
#change the name in /etc/hosts/##################
vi /etc/hosts
#change it in network##########################
vi /etc/sysconfig/network
#set the hostname############################
hostname
www.domian.com
#plesk reconfigurator###########################
. /usr/local/psa/bin/reconfigurator.sh
##############done########################
perk
Sep 25 2002, 07:14 AM
Remaining processes:
PID TTY STAT TIME COMMAND
7820 ? S 0:03 /usr/local/psa/mysql/libexec/mysqld --basedir=/usr/local/psa/mysql --datadir=/usr/local/psa/mysql/var --u
7822 ? S 0:02 /usr/local/psa/mysql/libexec/mysqld --basedir=/usr/local/psa/mysql --datadir=/usr/local/psa/mysql/var --u
7823 ? S 0:01 /usr/local/psa/mysql/libexec/mysqld --basedir=/usr/local/psa/mysql --datadir=/usr/local/psa/mysql/var --u
psa: admin server has been stopped
psa: Apache server has been stopped
psa: Courier-IMAP server has been stopped
psa: failed to stop stunnel daemon -- may be it's not running?
Trying to start MySQL server...
ERROR while trying to start MySQL server
Check the error reason, fix and try again
Aborting...
..ok, I just rebooted from the command line and all looks good.
NightHawk
Sep 25 2002, 08:55 AM
QUOTE
Originally posted by perk
Remaining processes:
PID TTY STAT TIME COMMAND
7820 ? S 0:03 /usr/local/psa/mysql/libexec/mysqld --basedir=/usr/local/psa/mysql --datadir=/usr/local/psa/mysql/var --u
7822 ? S 0:02 /usr/local/psa/mysql/libexec/mysqld --basedir=/usr/local/psa/mysql --datadir=/usr/local/psa/mysql/var --u
7823 ? S 0:01 /usr/local/psa/mysql/libexec/mysqld --basedir=/usr/local/psa/mysql --datadir=/usr/local/psa/mysql/var --u
psa: admin server has been stopped
psa: Apache server has been stopped
psa: Courier-IMAP server has been stopped
psa: failed to stop stunnel daemon -- may be it's not running?
Trying to start MySQL server...
ERROR while trying to start MySQL server
Check the error reason, fix and try again
Aborting...
..ok, I just rebooted from the command line and all looks good.
Yes, that happens sometimes with the plesk reconfigurator....not 100% sure why...but a reboot almost always fixes it...
jaroma
Feb 12 2003, 04:59 AM
QUOTE
Originally posted by NightHawk
You could just do it this way .. (I myself don't trust linuxconf and prefer to do things by hand)...
#############To Change Server Name###########
#change the name in /etc/hosts/##################
vi /etc/hosts
#change it in network##########################
vi /etc/sysconfig/network
#set the hostname############################
hostname www.domian.com
#plesk reconfigurator###########################
. /usr/local/psa/bin/reconfigurator.sh
##############done########################
Hi nighthawk,
when i log in as admin at root and try to do the above i get:
cannot open file for writing permmission denied
Why is this?
Also the next step you said security, would you write a detailed step by step firewall, i have seen a good one on ip tables.
I was just about to copy and paste the scipt, when someone said if its not done correctly i will lock myself out of the server?
Thanks
NightHawk
Feb 12 2003, 10:44 AM
QUOTE
Originally posted by jaroma
Hi nighthawk,
when i log in as admin at root and try to do the above i get:
cannot open file for writing permmission denied
Why is this?
Also the next step you said security, would you write a detailed step by step firewall, i have seen a good one on ip tables.
I was just about to copy and paste the scipt, when someone said if its not done correctly i will lock myself out of the server?
Thanks
you need login as admin ..then su - to get to root. Once you are root you will be able to edit those files . (btw.I just updated my original post...(cant' believe I was using pico back then).
but anyway...setting your hostname will not lock you out of your box.... messing up your iptables ruleset..that can.
There are a few step by step firewalls out there...but I would recommend writing your own...so that it is correct for your needs...
start by reading this::
http://www.linuxsecurity.com/docs/PDF/Secu...Edition-1_3.pdf
when you get done with reading that...you will understand alot of the basics....dont' do everything it says...it is not a step by step follow me kind of article....as there really can't be one for security...as every box is different....you have to pick and choose the ones that are right for you.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.