You are not logged in.

#1 2014-07-12 22:46:25

backes
Member
Registered: 2014-07-12
Posts: 9

Apache won't allow PHP

Hello, I'm new to the linux world. I installed Arch Linux on my Raspberry Pi and want to use this as a home git and webserver. So far so good.
I installed LAMP and started the services, everything worked fine. I could access my empty webspace from other devices in my network. But when I follow this tutorial: https://wiki.archlinux.de/title/Apache_und_PHP to add those two lines to my httpd.conf in order to activate php5, I can't start the httpd service. Without the php5 support, I can start the httpd service, but it won't parse php.

[lyinch@piserver conf]$ sudo systemctl start httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[lyinch@piserver conf]$ systemctl status httpd.service -l
* httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Wed 1969-12-31 18:17:19 MST; 17s ago
  Process: 1319 ExecStop=/usr/bin/apachectl graceful-stop (code=exited, status=1/FAILURE)
  Process: 1669 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 1152 (code=exited, status=0/SUCCESS)

Offline

#2 2014-07-13 00:24:51

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Apache won't allow PHP

1. This forum does not support Arch on ARM project
2. Use at least official wiki, in particular this page https://wiki.archlinux.org/index.php/LAMP#PHP
3. Check systemd journal as suggested in your message
4. Check Apache log for more information https://wiki.archlinux.org/index.php/LA … leshooting


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2014-07-16 12:07:06

sugartest
Member
Registered: 2014-07-09
Posts: 38

Re: Apache won't allow PHP

anatolik wrote:

1. This forum does not support Arch on ARM project
2. Use at least official wiki, in particular this page https://wiki.archlinux.org/index.php/LAMP#PHP
3. Check systemd journal as suggested in your message
4. Check Apache log for more information https://wiki.archlinux.org/index.php/LA … leshooting

Right, you should always look at the official resources, other ones might not be as reliable as the previously quoted wiki (official one). Non-official ones should not be used because some content might be outdated or not updated yet, resultingt in some issues of yours, this should be more helpful I think, as of what I saw of the page you looked at (Deutsche wiki) didn't even mention SSL support which is nowadays quite important.

You'll find everything you need in the three links now you've got wink

See ya!


An Arch Linux enthousiast and a Linux fan in general, mostly interrested in command line use, security issues, code learning and networks.

Offline

Board footer

Powered by FluxBB