LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2005, 07:39 PM   #1
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Rep: Reputation: 15
apachectl start not working


I have my own dedicated server, and I'm currently doing everything below as root.

When I try to start apache via apachectl start, I get a message back saying that it couldn't be started:

Quote:
/usr/sbin/apachectl restart: httpd could not be started
If I view /var/log/apache/error.log, I see the following:

Quote:
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/20020429/gd.so' - /usr/lib/php4/20020429/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Jan 18 20:58:57 2005] [alert] mod_unique_id: unable to gethostbyname("vds.cparker15.com")
I've set the hostname of my machine to "vds.cparker15.com" via the hostname command, and I only have the IP address of the machine defined in /etc/apache/httpd.conf.

Here are the relevant directives that may affect the system:

Code:
### Section 1
ServerName localhost
Listen 1.2.3.4:80
BindAddress *

### Section 2
Port 80
User www-data
Group www-data
ServerName 1.2.3.4
DocumentRoot /var/www
Of course, I have my actual address in there, and not 1.2.3.4.

Any ideas how to fix this problem? I'm assuming the gd.so PHP Warning is what's preventing apache from running properly.

In case you couldn't tell by the User and Group, I'm running on a freshly set up Debian machine.

TIA!
 
Old 01-20-2005, 11:13 AM   #2
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
Anybody have any ideas...? I still have this problem, and it's a big show-stopper.

Thanks.
 
Old 01-20-2005, 08:15 PM   #3
cparker15
Member
 
Registered: Jan 2003
Location: Malden, MA
Distribution: Debian, FreeBSD, gNewSense, Ubuntu, Ututo
Posts: 73

Original Poster
Rep: Reputation: 15
Fixed the immediate problem.

Apparently, my hostname needs to be a FQDN. I just made up "vds.cparker15.com". That doesn't have any DNS entries. I changed my hostname to "cparker15.com" and now apache starts without any problems.

I do still get entries in the error.log file:

Quote:
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/20020429/gd.so' - /usr/lib/php4/20020429/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Jan 20 21:52:22 2005] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic
[Thu Jan 20 21:52:22 2005] [notice] Apache configured -- resuming normal operations
[Thu Jan 20 21:52:22 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Thu Jan 20 21:52:22 2005] [notice] Accept mutex: sysvsem (Default: sysvsem)
Any idea what to do about these?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very confusing:httpd or apachectl start? backpacker Linux - Software 2 06-23-2005 07:12 AM
apachectl start error emsky Linux - Newbie 1 04-04-2004 12:16 AM
suddenly apachectl (2.0.47) wont start latino Linux - Networking 3 08-28-2003 07:50 AM
apachectl sopiaz57 Linux - Software 5 04-11-2003 06:11 PM
apachectl configtest ... blah punt Linux - Software 7 07-18-2001 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration