 |
Your forum announcement here! |
|
 |

21-12-2007, 09:08
|
 |
Junior Member
|
|
Join Date: Dec 2007
Posts: 16
|
|
Default server name
Hi,
I have a new dedicated Linux server (Centos 5). All setup and running fine. I have some php scripts running under crontab for various processes I need to monitor on our sites.
The php scripts produce output which as expected I receive in an email from root on the server which works fine.
BUT - the email 'from' address is root@is-3310.example.com.
1. How do I change the server's name from is-3310 (if possible/not important as is)?
2. How do I change the server's default domain from example.com to mydomin.com?
I have looked at php.ini, httpd.conf and at sendmail's configuration but cannot find example.com to change.
I don't need support to 'do' anything! I would like to know 'how to' so that I can learn a bit more as I do it.
Thank you for any help or pointers.
__________________
$wisdom = array('knowledge', 'patience', 'experience', 'compassion', 'sympathy', 'humour', 'courage', 'tolerance', 'humility', 'Linux');
|

21-12-2007, 09:53
|
 |
Junior Member
|
|
Join Date: Dec 2007
Posts: 16
|
|
Found it!
If you need to change the hostname see the post in tutorials. I would post the url but i haven't made 5 posts yet so vbulletin won't let me. 
__________________
$wisdom = array('knowledge', 'patience', 'experience', 'compassion', 'sympathy', 'humour', 'courage', 'tolerance', 'humility', 'Linux');
|

21-12-2007, 11:49
|
 |
System Administrator.
|
|
Join Date: Apr 2007
Posts: 55
|
|
Hello,
If you want to change your server hostname you have to make changes in following file.
1) /etc/hosts
your server IP address serverfullname (like server.domainname ) shortname (server)
for example
91.186.30.32 server.eukhost.com servr
2) /etc/sysconfig/network
HOSTNAME=server.domainname
3) run following command on ssh shell to set hostname
hostname server.domainname
|

21-12-2007, 12:08
|
 |
Junior Member
|
|
Join Date: Dec 2007
Posts: 16
|
|
Thanks AlexP,
I have set it up and it is working properly.
A quick question (please don't change anything yet as it seems to be running fine).
When I get these emails as expected, the first line says:
X-Powered-By: PHP/4.4.7
However, my phpinfo.php page shows my php version to be:
PHP Version 5.2.5
Is the server running both versions or is that a configuration setting?
Thanks again for all your work in setting up the server!
__________________
$wisdom = array('knowledge', 'patience', 'experience', 'compassion', 'sympathy', 'humour', 'courage', 'tolerance', 'humility', 'Linux');
|

21-12-2007, 12:16
|
 |
System Administrator.
|
|
Join Date: Apr 2007
Posts: 55
|
|
Yes, It is possible can you please send email to dedicated@eukhost.com with server details so I can look into it.
|

21-12-2007, 12:37
|
 |
Junior Member
|
|
Join Date: Dec 2007
Posts: 16
|
|
Yes I can but I am already worried that something will 'go wrong'. It took almost 2 days of emails, chat and compiling etc to get everything working up to now and to get all the modules for php/apache installed and compiled.
I know it was a complex job, I have installed php/apache myself a couple of times and these things take time especially when there are a lot of modules and configurations to take into account.
However, I have a great fear that if you do change anything we will be back to the start again and the sites (that are working) are supposed to go live tonight.
Is it a big job? A small job? Do you need to recompile anything? I am getting scared here! 
__________________
$wisdom = array('knowledge', 'patience', 'experience', 'compassion', 'sympathy', 'humour', 'courage', 'tolerance', 'humility', 'Linux');
|

21-12-2007, 13:02
|
 |
System Administrator.
|
|
Join Date: Apr 2007
Posts: 55
|
|
No it is not that complicated, We have to recompile apache + php , Can you please provide me php info URL so I will check it.
|

21-12-2007, 13:18
|
 |
Junior Member
|
|
Join Date: Dec 2007
Posts: 16
|
|
OK, I have emailed you the details.
Good luck!
__________________
$wisdom = array('knowledge', 'patience', 'experience', 'compassion', 'sympathy', 'humour', 'courage', 'tolerance', 'humility', 'Linux');
|

21-12-2007, 14:23
|
 |
System Administrator.
|
|
Join Date: Apr 2007
Posts: 55
|
|
Thanks , I will reply to your ticket.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 09:58.
|
|
|