LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-01-2003, 07:50 AM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
Apache can't start


I just editted httpd.conf and prepared to run Apache 1.3.27 on my Slack 9. When I type: #httpd -f /etc/apache/httpd.conf, I got nothing. No error message, no successful starting message (if apache have one of these). With #ps -Af I can't see any httpd processes. I tried via /etc/rc.d/rc.httpd script.. #./rc.httpd start, but I got:
Code:
# ./rc.httpd start 
/usr/sbin/apachectl start: httpd could not be started
I cat`ed the script and saw that it uses something /usr/sbin/apachectl. I tried #/usr/sbin/apachectl start, and got the same 'httpd could not be started' output. Oh, and I chmod'ed rc.httpd to 755.
I searched this forum and found that I could use http -e DEBUG.. but when I try to use it I got the 'invalid option' output.. i.e. http -h screen.
Where can be the mistake?

Last edited by ivanatora; 10-01-2003 at 07:52 AM.
 
Old 10-01-2003, 08:55 AM   #2
WiZaC
Member
 
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD
Posts: 110

Rep: Reputation: 15
Hmm sounds like there is some errors in your confirguration file, in apache, and if you cant find the file, then try deinstall, and make a new install of apache
Have you changed something in the config file, in apache?

WiZaC
 
Old 10-01-2003, 09:05 AM   #3
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 31
Nothing, but changing the Server Name to my IP.
 
Old 10-01-2003, 09:21 AM   #4
WiZaC
Member
 
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD
Posts: 110

Rep: Reputation: 15
try reinstall apache http://httpd.apache.org/docs/install.html .. or following a better manual
 
Old 10-01-2003, 09:51 AM   #5
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 31
I don't want to reinstall. I want to FIND the reason. The slackware with the apache is installed before two weeks. Where can be the reason about that wierd thing?

Last edited by ivanatora; 10-01-2003 at 09:55 AM.
 
Old 10-02-2003, 09:28 AM   #6
Hex29A
LQ Newbie
 
Registered: Sep 2003
Posts: 14

Rep: Reputation: 0
I had some trouble with my Proftpd, it complained about it couldnīt match my hostname or something..I also had trouble with apache..it gave the same message "couldnt be started" or something...I found out that my hostname and the settings in "hosts" wherenīt the same...maybe check that..?
 
Old 10-02-2003, 09:51 AM   #7
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 31
I removed the Apache package using the pkgtool. Then downloaded Apache2's source and compile it in other directory. Now it works, but I'm worried about other thing. Do I have to remove installed php and Mysql packages and reinstall them considering to the new apache directory?
 
Old 10-02-2003, 12:54 PM   #8
WiZaC
Member
 
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD
Posts: 110

Rep: Reputation: 15
I will make a new install of php/mysql:
php: http://dk.php.net/manual/en/install.unix.php
mysql: http://www.mysql.com/doc/en/Quick_install.html

WiZaC
 
Old 10-02-2003, 01:23 PM   #9
simplico
Member
 
Registered: Jul 2003
Location: Orlando, FL
Distribution: mandrake 10
Posts: 62

Rep: Reputation: 15
yeah, as far as i know, you have to reconfigure php and mysql with the new apache2. otherwise, ur apache will not know you have php since u haven't loaded the php module into the httpd conf file. and u didn't necessarily have to deinstall ur first apache. u could have set the listen command to something like 8080, and then see if that works?!?!?
 
Old 10-03-2003, 03:38 AM   #10
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 31
Is reconfigure=reinstall?? A hope no.. Where are config files which I have to edit? I have php.ini (if I need it for that purporse) but it's in the old apache config dir in /etc/apache.. I don't know nothing about MySQL configuring..
 
Old 10-03-2003, 08:19 AM   #11
simplico
Member
 
Registered: Jul 2003
Location: Orlando, FL
Distribution: mandrake 10
Posts: 62

Rep: Reputation: 15
it's not all as bad as it seems. i guess u can try to add this: as root, type updatedb, and then type locate*php*.so. it should give u the address of the php module. then open httpd.conf and insert
LoadModule php4_module /path/to/mod_php4.so

or, u could use this wonderful, simple tutorial guide!! shows u about php and mysql...
http://us2.php.net/manual/en/install.apache2.php
 
Old 10-03-2003, 10:19 AM   #12
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 31
Code:
# locate *php*.so
/opt/kde/lib/kde3/libkdevphpsupport.so
/usr/lib/php/extensions/mysql.so
/usr/libexec/libphp4.so
Will I have to reinstall PHP in that case..? What about MySQL?
 
Old 10-03-2003, 12:59 PM   #13
simplico
Member
 
Registered: Jul 2003
Location: Orlando, FL
Distribution: mandrake 10
Posts: 62

Rep: Reputation: 15
open up httpd.conf for apache and add:
LoadModule php4_module /usr/libexec/libphp4.so

in the appropriate section and see if php works. I have never used mysql even though I did install it with php. so i dont know what to do with mysql.so. hope this helps. it should though.
 
  


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
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 10:51 AM
apache can't start akbar_nasr Linux - Software 2 07-13-2004 04:29 PM
can't get SSLl working on Apache. Apache won't start bentman78 Linux - Software 1 08-10-2003 07:17 PM
Apache won't start FNC Linux - Software 9 06-25-2003 03:50 AM
apache won't start at all... ctzimmerman Linux - Networking 3 06-01-2001 10:04 AM


All times are GMT -5. The time now is 02:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration