URN Logo
UNIX Resources » Linux » Linux Forum » Linux Web Servers » Page.8 » Only A Ghost Of Apache ...
The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
Only A Ghost Of Apache ...
Subject: Only A Ghost Of Apache ...
Author: gihrig    Posted: 2004-10-12 18:27:16    Length: 2,795 byte(s)
[Original] [Print] [Top]
Only a ghost of Apache ...

I set up RH9 and MySQL according to the instructions at http://www.brtnet.org/linux/lamp.htm.

When I execute "apachectl start" the message "command not found" is returned even though the file exists and is flagged executable.



P-2 400 256 Meg RAM
hda = 10 Gig EIDE with Windows 2k installed
hdb = 12 Gig EIDE with Red Hat 9 (shrike) Kernel 2.4.20-6
Each drive is dedicated to its OS with partitions created by each OS's install program, GRUB boot loader on hda handles dual boot.

I am able to connect to MySQL on this machine, from another machine on my network, so I believe that Linux and MySQL are installed and working correctly.

Continuing on to the installation of Apache, everything seems to go without error and the installation completes with the framed screen indicating that the Apache installation completed successfully.

However, Apache does not load.  When I attempt to load "apachectl start" I get an error "command not found".  Here is a screen summary detailing the error and what I have done to trouble shoot so far:

[root@server bin]# pwd
[root@server bin]# ls -F
ab*      apxs*      dbmanage*   htpasswd*   logresolve*
apachectl*   checkgid*   htdigest*   httpd*      rotatelogs*
[root@server bin]# apachectl start
-bash: apachectl: command not found
[root@server bin]# cp apachectl apachectl.bak
[root@server bin]# cd ..
[root@server apache]# ls -l
total 40
drwxr-xr-x   2 root   root   4096 Oct 12 15:11 bin

 - apachectl exists, it can be read (copied)
 - It is flagged as executable (the '*' after the filename shows this)
 - The bin directory is flagged executable and owned by user root.
 - Attempting to execute apachectl produces a "command not found" error.
 - No apache log files are created.
 I have gone through the installation very carefully twice with the same result both times.  The fact that MySQL has been successfully tested from another machine on my LAN seems to indicate that have followed those instructions correctly, I am at a loss ..
 Any suggestions would be greatly appreciated.
 -Regards Glen
[Original] [Print] [Top]
Subject: Only A Ghost Of Apache ...
Author: the_unforgiven    Posted: 2004-10-13 01:08:11    Length: 616 byte(s)
[Original] [Print] [Top]
Try this:
[root@server...]#/usr/local/apache/bin/apachectl start

The problem is by default the current directory will never (and should never) be added to the path. So, you can either explicitly call the binary - giving its full path or use ./apachectl from /usr/local/apache/bin.

Also, AFAIK, even /usr/local/apache/bin is not there in the PATH.
But, it should have a symlink from /usr/sbin/apachectl
[span style='font-size:12pt;line-height:100%']The Unforgiven
So I dub thee unforgiven[/span]
Linux User #358564
[Original] [Print] [Top]
Subject: Only A Ghost Of Apache ...
Author: gihrig    Posted: 2004-10-14 22:32:04    Length: 1,171 byte(s)
[Original] [Print] [Top]

Hey thanks, you Made My Day!

I am very familliar with MS-DOS (dates me I know) where the current directory is implicitly inculded in the path.  I of course assumed it was so in Linux.

As for the symlink, yes, I had one but it also produced a 'command not found' error.

On closer investigation, ls -F showed the symlink in flashing white text on a red background, surely not a good thing...  On further poking around I discovered this means the symlink points nowhere as in a type-o or a deleted destination file.

So, you can chalk it all up to noob ignorence and sloppy typing  

Anyway, your tip about the nature of the linux path was invaluable in getting me un-stuck.

Thanks a bunch for your help!

[Original] [Print] [Top]
Subject: Only A Ghost Of Apache ...
Author: the_unforgiven    Posted: 2004-10-15 00:07:12    Length: 1,238 byte(s)
[Original] [Print] [Top]
That's what we're here for  - helping you out
Everybody is a noob somewhere sometime (including me )..

Just make sure that you have patience and don't panic with problesm.
Problems are bound to occur - no s/w is perfect.

Also, it's good to know that you're familiar with command-line and don't get scared by the looks of it (many people hate command-line; believe me..)
Command-line gets the work done very very fast.

Also, keep habit of reading manual pages - they're the best immediate help you can get. If you have any problems with any command, just give man <command> to get the manual page. To learn about man itself, try man man
[span style='font-size:12pt;line-height:100%']The Unforgiven
So I dub thee unforgiven[/span]
Linux User #358564
[Original] [Print] [Top]
« Previous thread
Error 404 Object Not Found
Linux Web Servers
Page. 8
Next thread »
Web Server With Suse Help

Copyright © 2018 UNIX Resources Network, All Rights Reserved.    About URN | Privacy & Legal | Help | Contact us