Cannot access my website on Linux server
Hi folks..
this is my first posting and it's regarding the legacy system which I inherited in my new office. I have not worked on Linux before and am at a total loss as to what to do. From the vague notes scribbled by my predecessor, everytime the server restarts, I am supposed to: 1. Run Apache 2. Run MYSQL (in the above sequence) I follow the instructions and get "httpd started" when I run apache. The problem is when I try to run MYSQL. After typing the command "./safe_mysqld" it just says it's starting the MySQL DB.. and it hangs there, i.e. no further movement, updates, etc. and my site is still down? Need help desperately. Working in Singapore so the time zone here is GMT +8. Appreciate all the help I can get. Thanks so much!! |
Some basic information such as distribution and version, and version of MySQL would help. Also, what do you mean your site is still down? Can you not access the site at all? Once httpd (Apache) is running, the site should be accessible, although if MySQL isn't working, stuff that relies on it will be broken. Probably MySQL has actually started (don't think it backgrounds itself automatically so it's taken over your terminal). You can verify this by logging on on another terminal and checking the output of "ps aux" for MySQL processes. There should also be a mysqld.log (usually in /var/lib/mysql on Red Hat systems IIRC) that can be consulted.
You may have a connection problem to the site. Have you tried viewing it from the server machine itself? |
welcome to LQ!!!
=) it's weird that your predecessor didn't have those two daemons set to run automatically on startup... anyhow, when you say that your "site is still down", what exactly do you mean?? like, is there absoloutely nothing when you enter the URL, or are the pages actually loading but without the data from the base?? or is there an error page?? etc... |
Quote:
Quote:
Quote:
Quote:
So sorry. But I am totally inexperienced and have been thrust this system without any prior training/instruction. :( |
Quote:
I also dunno how to set them to run automatically on startup :confused: ... My site URL is http://www.primary-learning.com and it is still inaccessible, i.e. no content is loaded. No error pages, nothing. ZIP, NADA.. :( |
there's no reply from the website... you need to find out why there isn't any access to the site before assuming it's a database issue... according to my nmap, there isn't even a daemon listening on your TCP port 80:
Code:
bash-3.00$ nmap -p 80 -P0 primary-learning.com |
do some basic tests... do an "ifconfig" to verify that the network interfaces are up and running... then see if you can ping the local IPs, and then see if you are able to ping an internet IP from the server...
is the server behind a firewall?? |
Quote:
Sorry to trouble.. |
Quote:
ping is the same as the win32 ping, i.e. ping <IP address> And yes, it's behind a firewall.. |
without the dot and the slash...
Code:
ifconfig what kinda firewall?? are you sure the firewall isn't blocking the access?? |
Quote:
But is there any way to check? thanks so much for all ur help! appreciate it! |
keep in mind that the firewall's administrator will need to do port-forwarding on the firewall for machines on the internet to be able to reach your server if it's sitting behind the firewall...
i assume he's already doing this if the server was working before... right?? did you confirm that the network card is up and you can ping the local IP, the firewall, and an Internet address (for example google.com) from the server?? |
this is what I get when i run ifconfig:
eth0 Link encap:Ethernet HWaddr 00:30:48:11:0D:CE inet addr:203.125.225.133 Bcast:203.125.225.143 Mask:225.225.225.240 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:69943 errors:0 dropped:0 overruns:0 frame:0 TX packets:32554 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 texqueuelen:0 RX bytes:7402881 (7.0Mb) TX bytes:1367268 (1.3Mb) Interrupt:9 Base address:0x6000 lo Link encap:Local loopback inet addr:127.0.0.1 Mask:225.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:19590 errors:0 dropped:0 overruns:0 frame:0 TX packets:19590 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 texqueuelen:0 RX bytes:1415141 (1.3Mb) TX bytes:1415141 (1.3Mb) |
Quote:
Code:
bash-3.00$ ping -c 3 primary-learning.com Code:
bash-3.00$ ping -c 3 203.125.225.133 Code:
bash-3.00$ ping -c 3 google.com Code:
iptables -L Code:
iptables -t nat -L judging by the: Quote:
|
I can't ping out.. seems like the network is an issue then?
|
All times are GMT -5. The time now is 08:00 AM. |