Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I start apache

Status
Not open for further replies.

jdeane

IS-IT--Management
Sep 21, 2001
229
0
0
GB
How do I start Apache, the instructions I had were to use the 'apachectl start' however this returns

[root@clkweb01 bin]# pwd
/usr/local/apache2/bin
[root@clkweb01 bin]# apachectl start
bash: apachectl: command not found
[root@clkweb01 bin]# ll
total 1864
-rwxr-xr-x 1 root root 104972 Mar 12 21:10 ab
-rwxr-xr-x 1 root root 7706 Mar 16 04:14 apachectl

I have also tried 'httpd start' this also generated errors

[root@clkweb01 root]# httpd start
Syntax error on line 60 of /etc/httpd/conf/httpd.conf:
Cannot load /home/ into server: /home/
Any ideas?

Jonathan
 
Firstly, you either need to type "./apachectl start" (to tell the shell the file in the local directory and not to search in the environment path) when you are in the /usr/local/apache2/bin/ directory, or alternatively run it with the full path: "/usr/local/apache2/bin/apachectl start"

A few questions:
What distribution and version?
Did you install the httpd server at OS installation time or as an rpm later on?
Did you install Apache afterwards from a tarball?

Your problems seems like you may have done that, the http rpm installs in different directories than the tarball.

IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
Thanks that worked.

Running RedHat 7.2 which was installed using the Dell server quick start, I then enabled telnet which at that point a guy in the U.S. came on and set the whole box up.

Thanks

Jonathan
 
1.) Turn telnet off as quickly as possible.
2.) Configure and use ssh.

3.) Have you checked httpd.conf? You mentioned a syntax error in your first post.

>[root@clkweb01 root]# httpd start
>Syntax error on line 60 of /etc/httpd/conf/httpd.conf:
>Cannot load /home/ into >server: /home/
Do you have a module named mod_vhost_alias.so ?
Is apache configured to load modules from /home/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top