unable to start web services.

Discuss general troubleshooting concerns.

Moderators: scrumpy, Dave, leihog

unable to start web services.

Postby usalabs on Fri Oct 12, 2007 3:22 am

After creating a virtual host, and clicking an 'Restart apache service' button, it looks like it started, but when I check the services, it shows the web service as stopped but enabled at boot time, I even clicked on 'Stopped', but there don't sem to be any window that pops up to show any errors during the start sequence, but instead, the services only show as 'Stopped'

ADDENDUM

I found out why I couldn't start the sevices, for some reason, the webtools interface does not create the httpd.conf file.

I found this out by creating a virtual host, then clicking on 'Restart Apache Web Server Service' button, then logging into the server terminal as root, then navigating to /etc/init.d then typing httpd -t the error that came up is:-

httpd: Could not open configuration file /httpd.conf: No such file or directory
usalabs
 
Posts: 30
Joined: Fri Oct 12, 2007 3:12 am

RE: unable to start web services.

Postby wkeys on Fri Oct 12, 2007 1:11 pm

hi

I found out why I couldn't start the sevices, for some reason, the webtools interface does not create the httpd.conf file.


The httpd.conf is part of the apache package which installs should be installed in

Code: Select all
# ls /etc/httpd/conf/httpd.conf



Please type the below command and post the output.

Code: Select all
# /etc/init.d/httpd restart


~bill
wkeys
 
Posts: 283
Joined: Thu Feb 01, 2007 5:43 pm

RE: unable to start web services.

Postby usalabs on Fri Oct 12, 2007 2:03 pm

ok, first item.
Code: Select all
# ls /etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd.conf


This shows the conf file exists.

Second item.
Code: Select all
# /etc/init.d/httpd restart
[    FAILED   ]  Apache Web Server
[ STARTING ]  httpd: apr_sockaddr_info_get() failed for budgetbusinessdomains.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName


I have the DNS master zone as budgetbusinessdomains.com and setup the A records to point to the web server's IP address, and I set up an MX record for the mail server, therefore I don't think it's a DNS issue, it maybe a program flaw.

I can successfully ping the server's IP address from another computer on my network, and I can successfully use nslookup on the other computer using the command below, and it shows the correct A and MX records.
Code: Select all
nslookup
> server [engarde server ip]
> set type=A
> budgetbusinessdomains.com

server = [local server ip]
address = [local server ip]

> set type=MX
> budgetbusinessdomains.com

             primary name server = [local server ip address]
             responsible mail addr = [my email addres]
             ................
             ................
             ................

This would mean the records in DNS are correctly setup, so the only conclusion to the web server problem is a programming error.
usalabs
 
Posts: 30
Joined: Fri Oct 12, 2007 3:12 am

RE: unable to start web services.

Postby wkeys on Fri Oct 12, 2007 2:30 pm

hi

Please post the output of the below command.

Code: Select all
  # hostname


Your hostname and virtual domain of your website should be the same name.

~bill
wkeys
 
Posts: 283
Joined: Thu Feb 01, 2007 5:43 pm

RE: unable to start web services.

Postby usalabs on Fri Oct 12, 2007 3:05 pm

Code: Select all
#hostname
budgetbusinesdomains.com

I did find out the 'Default Address (A) record' didn't have the servers ip address in it, so I entered the address, then executed:-
Code: Select all
# /etc/init.d/httpd start

This worked, but now nslookup can't find the domain, it now shows:-

*** Can't find server name for address [Local IP]: Non-existent domain
Default Server: [ISP]
Address: [ISP DNS]

ADDENDUM
I found the problem, it was because of the network settings only had my ISP DNS, I had to add the IP for the local DNS at the top.
usalabs
 
Posts: 30
Joined: Fri Oct 12, 2007 3:12 am


Return to General Troubleshooting

Who is online

Users browsing this forum: No registered users and 3 guests

cron