Question

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

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

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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