You are not logged in.

#1 2008-04-27 15:17:41

jealma
Member
From: The Netherlands
Registered: 2008-01-03
Posts: 71

Apache acts weird

I currently run Debian on a server of mine and ArchLinux + KDEmod on my workstations and laptop. I planned to switch the server to ArchLinux too, but in a test-environment I'm running in all sorts of trouble. I installed Arch64, then pacman -S apache php mysql, then started mysql and secured it (/usr/bin/mysql_secure_installation), then disabled unique_id_module in /etc/httpd/conf/httpd.conf and started httpd (/etc/rc.d/httpd start). The first time, httpd starts fine, but doing a few restarts (/etc/rc.d/httpd restart) makes it fail. It sais "done" when stopping, but "fail" when starting again. Waiting a bit and then trying again helps.

Next I configured apache to allow php, by uncommenting the php module in /etc/httpd/conf/httpd.conf. Then I created an info.php file in /home/httpd/html/info.php with a simple phpinfo()-function to see whether PHP functions. When I then browse to http://servername, I see the default page. Browsing to http://servername/info.php makes it wait a very long time. Killing the httpd-process manually lets phpinfo pop up on my browser before httpd quits.

The log-files in /var/log/httpd and /home/httpd/logs leave me in the dark as to what is happening. Lots of messages about suEXEC, session cache not being configured, generating secret for digest authentication and other bullshit that shouldn't be appearing. Other logfiles in /var/log, like messages, daemon.log and syslog don't give a clue either.

Suspecting a corrupt system or problems with Arch64, I installed the "normal" Arch i686 on another partition on the same computer, then followed the exact steps in the LAMP guide on ArchWiki (http://wiki.archlinux.org/index.php/LAMP), but to no avail. The EXACT same symptoms keep popping up. After searching some bit, I tried adding "httpd: ALL" to /etc/hosts.allow, but that didn't work either. It seems strange to me that I can reach the initial apache test page, while no httpd: ALL existed in hosts.allow and in hosts.deny there was an "ALL: ALL: DENY" present. Does anyone have a clue as to what is going on here? I'm beginning to get serious doubts about putting Arch on my server.

Offline

#2 2008-04-27 15:40:22

Insane-Boy
Member
Registered: 2006-02-27
Posts: 239

Re: Apache acts weird

I've got the same problem.I think apache isn't included in the php configuration..

Offline

#3 2008-04-30 10:21:47

Insane-Boy
Member
Registered: 2006-02-27
Posts: 239

Re: Apache acts weird

Yes i was right you just have to recompile it and include apache 2.x support and it's gonna work.I'm wondering why this article hasn't been withdrawn yet as it doesn't present correct information?Any developer/Tu's opinion?

Offline

#4 2008-05-05 13:58:59

jealma
Member
From: The Netherlands
Registered: 2008-01-03
Posts: 71

Re: Apache acts weird

How do I recompile PHP to include Apache support? I've synced my ABS-tree and copied the PHP directory from /var/abs/extra/php to /var/abs/local/php-test.
What must I change in the PKGBUILD to include Apache2-support?

Offline

Board footer

Powered by FluxBB