Question

setting up wordpress in freebsd 10.1 with apache24, php56 and mysql56

Posted March 27, 2015 3.3k views
MySQL Apache PHP WordPress FreeBSD

Hi:

I have followed the instructions for your freebsd tutorials. I have set up apache24, and I can see the “It works” page. I am trying to set up wordpress. I have follwed this tutorial:

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-apache-on-freebsd-10-1

When I go to the site to setup wordpress, I get a blank page, and this error message in httpd-error.log:

Fatal error: require(): Failed opening required ‘xxx/wp-includes/load.php’ (include_path=’.:/usr/local/share/pear’) in xxx/wp-settings.php on line 21

My complete installation is from ports.

Thanks

PD: I did delete the “it works” file

3 comments
  • Hi! The first thing I would check are the file permissions on wp-includes/load.php Does the www user have access to it?

  • I ended up rebuilding php56. I think the issue was the links to modules and dependencies. I then also rebuild apache24 and it worked. Now I am having a different problem.

    I upgraded to apache 2.4.12 release, and now I get the 403 forbidden error, you don’t have permission to access /

    ???

  • Thanks for your reply:

    yes.
    It has to do with apache itself. It is attempting to server from ServerRoot, rather than from DocumentRoot.
    I figured it out by temporarily changing this:

    <Directory />
    AllowOverride none
    Require all denied
    </Directory>

    to this:

    <Directory />
    AllowOverride none
    Require all granted
    </Directory>

    and adding the it works index.html file to it. then I went to the browser and entered:

    http://www.mysite.com/
    http://www.mysite.com/index.html

    and of course “It worked”

    I have gone over this over and over and can’t figure it out. Why is apache ignoring my main server configuration?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

This question was answered by @gutiersa:

Thanks for your reply:

yes.
It has to do with apache itself. It is attempting to server from ServerRoot, rather than from DocumentRoot.
I figured it out by temporarily changing this:

<Directory />
AllowOverride none
Require all denied
</Directory>

to this:

<Directory />
AllowOverride none
Require all granted
</Directory>

and adding the it works index.html file to it. then I went to the browser and entered:

http://www.mysite.com/
http://www.mysite.com/index.html

and of course “It worked”

I have gone over this over and over and can’t figure it out. Why is apache ignoring my main server configuration?

View the original comment

Submit an Answer