You are not logged in.

#1 2008-09-15 14:56:17

JoshuaK
Member
From: Ohio, USA
Registered: 2008-09-13
Posts: 66
Website

/etc/rc.d/httpd start NOT WORKING :(

See,

[root@joshua-archlinux ~]# pacman -S apache                                     
resolving dependencies...                                                       
looking for inter-conflicts...                                                  

Targets (1): apache-2.2.9-4  

Total Download Size:    1.10 MB
Total Installed Size:   3.23 MB

Proceed with installation? [Y/n] 
:: Retrieving packages from extra...
 apache-2.2.9-4-x86_64   1131.5K  462.4K/s 00:00:02 [#####################] 100%
checking package integrity...                                                   
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) installing apache                             [#####################] 100%

Then,

[root@joshua-archlinux ~]# /etc/rc.d/httpd restart                              
:: Stopping HTTP Daemon                                                  [FAIL] 
:: Starting HTTP Daemon                                                  [FAIL]

My bad, it never was started in the first place smile

[root@joshua-archlinux ~]# /etc/rc.d/httpd start                              
:: Starting HTTP Daemon                                                  [FAIL]

As you saw, it was a fresh install, nothing extra installed/changed. Also, Webmin (localhost:10000) does not see Apache at all. In fact, Apche Webserver is under Unused Modules. Hmph, please help a Arch Linux newbie smile


Meh has new account! This one left behind for history's sake...

Offline

#2 2008-09-15 15:07:57

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: /etc/rc.d/httpd start NOT WORKING :(

Check your logs: /var/log/httpd/error_log.

(My guess is that you're running something else on port 80; see if `netstat -tnap | grep 80` shows anything)

Last edited by foutrelis (2008-09-15 15:08:33)

Offline

#3 2008-09-15 16:12:28

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: /etc/rc.d/httpd start NOT WORKING :(

My guess: you didn't configure anything, so obviously it borks?

Manually running the actual program the daemon script calls always helps too, it's more verbose than the rc scripts, they mostly only return success/fail.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2008-09-15 16:50:26

JoshuaK
Member
From: Ohio, USA
Registered: 2008-09-13
Posts: 66
Website

Re: /etc/rc.d/httpd start NOT WORKING :(

thanx guys... ill try this stuff smile

EDIT:

[root@joshua-archlinux ~]# tail -f /var/log/httpd/error_log
tail: cannot open `/var/log/httpd/error_log' for reading: No such file or directory
tail: no files remaining
[root@joshua-archlinux ~]# less /var/log/httpd/error_log
/var/log/httpd/error_log: No such file or directory
[root@joshua-archlinux ~]# netstat -tnap | grep 80
tcp        0      0 0.0.0.0:8010            0.0.0.0:*               LISTEN21277/kopete
tcp        0      0 192.168.1.180:41814     66.163.181.185:5050     ESTABLISHED21277/kopete
tcp        0      0 192.168.1.180:36009     209.85.163.125:5223     ESTABLISHED21277/kopete
tcp        0      0 192.168.1.180:42848     74.125.65.167:80        ESTABLISHED20722/kdeinit4: kio
tcp        0      0 192.168.1.180:58104     72.14.207.127:80        ESTABLISHED20727/kdeinit4: kio

EDIT 2#: Well, something works.... I didnt change anything, just let it sit for a while (after a pacman -Syu which did not update apache or any of its deps, as httpd was just installed bout 10EST) and now

[root@joshua-archlinux ~]# /etc/rc.d/httpd start
:: Starting HTTP Daemon                                                  [DONE]
[root@joshua-archlinux ~]# ps aux | grep httpd
root     21229  0.1  0.4 187688  4244 ?        Ss   12:54   0:00 /usr/sbin/httpd -k start
http     21231  0.0  0.2 187736  2600 ?        S    12:54   0:00 /usr/sbin/httpd -k start
http     21232  0.0  0.2 187688  2568 ?        S    12:54   0:00 /usr/sbin/httpd -k start
http     21233  0.0  0.2 187688  2568 ?        S    12:54   0:00 /usr/sbin/httpd -k start
http     21234  0.0  0.2 187688  2568 ?        S    12:54   0:00 /usr/sbin/httpd -k start
http     21236  0.0  0.2 187688  2568 ?        S    12:54   0:00 /usr/sbin/httpd -k start
http     21237  0.0  0.2 187688  2568 ?        S    12:54   0:00 /usr/sbin/httpd -k start
root     21421  0.0  0.0   6096   672 pts/2    R+   12:56   0:00 grep httpd

Well... something works i guess... navigating to http://localhost in konqueror displays

Index of /
Name Last modified Size Description
--------------------------------------------------------------------------------------------------
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8h DAV/2 Server at localhost Port 80

Now i will (and know how, or at least i did in (K)Ubuntu, set it to port 8080 on my roouter so it is accesable to the world, as 80 is taken by another server in the house (my dad's) cool

Last edited by JoshuaK (2008-09-15 16:59:35)


Meh has new account! This one left behind for history's sake...

Offline

#5 2009-09-24 14:03:30

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: /etc/rc.d/httpd start NOT WORKING :(

What version of PHP are you running?

Birger smile

Last edited by MindTooth (2009-09-24 14:03:36)

Offline

#6 2009-09-24 14:18:37

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: /etc/rc.d/httpd start NOT WORKING :(

I had similar problem after php 5.3 update. Solution was to install php-apache.

Offline

#7 2009-09-24 17:33:08

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

Re: /etc/rc.d/httpd start NOT WORKING :(

Xabre wrote:

I had similar problem after php 5.3 update. Solution was to install php-apache.

Thanks!  Thats what I needed.

Any other quirks I need to be aware of regarding this package change?


ARCH x86_64 ZEN

Offline

#8 2009-09-24 18:52:04

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: /etc/rc.d/httpd start NOT WORKING :(

There is a news post on archlinux.org about things you may need to do.


Matt

"It is very difficult to educate the educated."

Offline

Board footer

Powered by FluxBB