You are not logged in.

#1 2014-11-19 08:54:21

trvs
Member
Registered: 2014-11-19
Posts: 4

Failed to start Apache Web Server

I'm trying to get Wordpress installed via the Wordpress Wiki and with Apache and php-fm/mod_proxy_fcgi .

I installed Wordpress through pacman to "/usr/share/webapps/wordpress/"

When I try to run "systemctl start httpd" I get an error. Running "systemctl status httpd.service -l" outputs:

httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: failed (Result: exit-code) since Wed 2014-11-19 03:48:11 EST; 26s ago
Process: 12633 ExecStop=/usr/bin/apachectl graceful-stop (code=exited, status=1/FAILURE)
Process: 13162 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 12463 (code=exited, status=0/SUCCESS)

systemd[1]: Starting Apache Web Server...
apachectl[13162]: AH00526: Syntax error on line 6 of /etc/httpd/conf/extra/httpd-wordpress.conf:
apachectl[13162]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
systemd[1]: httpd.service: control process exited, code=exited status=1
systemd[1]: Failed to start Apache Web Server.
systemd[1]: Unit httpd.service entered failed state.
systemd[1]: httpd.service failed.

"/etc/httpd/conf/extra/httpd-wordpress.conf" contains:

Alias /testing "/usr/share/webapps/wordpress"
<Directory "/usr/share/webapps/wordpress">
        AllowOverride All
        Options FollowSymlinks
        Require all granted
        php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:$"
</Directory>

Any suggestions would be greatly appreciated.

Offline

#2 2014-11-19 11:27:58

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: Failed to start Apache Web Server

Why wordpress?

Anyway if you really want to run php crap then I suggest nginx + php-fpm


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2014-11-19 11:28:07

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Failed to start Apache Web Server

You may have globally disabled "open_basedir" elsewhere in your server/php config wink

Offline

#4 2014-11-19 13:01:20

trvs
Member
Registered: 2014-11-19
Posts: 4

Re: Failed to start Apache Web Server

Why not WordPress? Just curious. I don't have experience with any of the big 3. Is there something inherently wrong with PHP? Again, not a lot of background in it, so if something else is better, then I may look into that instead.

On mobile right now but I'll be logging back onto my laptop here in a few hours hopefully. Thanks for the feedback both of you.

Offline

#5 2014-11-19 13:43:14

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

Re: Failed to start Apache Web Server

OT from thread:

PHP is not exactly the "best" language to use, but it's not as evil as many people would make others think it is.

But using WordPress is just asking for trouble. It's very prone to (or seems to me to be from my 10 years of having to do "web stuff" to make a living) attack/hacking/used in hacking. If all you want is a simple website, but you want a CMS, there are hundreds. I personally use an obscure, slightly confusing one called CMS Made Simple.

Back on topic, satanselbow has a definite starting place for you to look at.

Last edited by mrunion (2014-11-19 13:44:05)


Matt

"It is very difficult to educate the educated."

Offline

#6 2014-11-19 16:57:29

dawja
Member
From: New England
Registered: 2014-09-20
Posts: 30

Re: Failed to start Apache Web Server

Can you temporarily dissable wordpress on your server and see if you still have an apache problem?

ON THE SIDE ISSUE: It seems ppl are getting sick of wordpress as am I. Ive heard it called 'PHP Speghetti'. (Time consuming, for simple tasks, security target because of databases.) There is also jekyll if all you want is a static blog, among others.

Offline

#7 2014-11-19 22:03:12

trvs
Member
Registered: 2014-11-19
Posts: 4

Re: Failed to start Apache Web Server

I'm wondering if it might have something to do with this file in my "/etc/php/php.ini" file. I read

If your DocumentRoot is not /srv/http, add it to open_basedir in /etc/php/php.ini

from the LAMP wiki & misunderstood where my DocumentRoot was.

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/

If I comment out

Include conf/extra/httpd-wordpress.conf

from /etc/httpd/conf/httpd.conf then I can start httpd successfully.

Last edited by trvs (2014-11-19 23:27:34)

Offline

#8 2014-11-19 22:17:32

Name Taken
Banned
Registered: 2014-04-09
Posts: 113

Re: Failed to start Apache Web Server

I recommend using preconfigured Docker images.

Offline

#9 2014-11-20 00:18:30

trvs
Member
Registered: 2014-11-19
Posts: 4

Re: Failed to start Apache Web Server

I'm not familiar with Docker. I did a little research, but I'm not sure how I would go about using it.

Offline

#10 2014-11-20 00:42:26

Name Taken
Banned
Registered: 2014-04-09
Posts: 113

Re: Failed to start Apache Web Server

trvs wrote:

I'm not familiar with Docker. I did a little research, but I'm not sure how I would go about using it.

There are many video tutorials on how to run Wordpress in Docker using this image - https://registry.hub.docker.com/_/wordpress/

Offline

Board footer

Powered by FluxBB