Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

chern123's avatar

Having a problem setting up WP alongside Laravel Project

I have a server running on Digital Ocean, all handled by Forge...

Followed this guide to install WP:

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04

However, when I tried to go to the last step (accessing my site to complete the wordpress installation) it seems that laravel takes over the routing, and gives me the standard

Sorry, the page you are looking for could not be found.

Any ideas how to resolve this? I feel stupid for not using the Forge built in functionality to install WP automatically...

0 likes
2 replies
BENderIsGr8te's avatar
Level 6

In Forge, if you Edit your Server and look at your Active Sites what does it show for your domain and directory? Typically if Forge sets up a server it sets the "default" site to just point to the Laravel Public Folder. You would need to point that directory do the root of your WP install.

UPDATE

If you are setting up a second site on a server, you would just need to insure that it's root is set to point to the root of your WP install. By default when you add a site to your Forge server it creates a directory in the home directory. For example, if you add mysite.com in Forge, it would create the following path

/users/forge/mysite.com/

And your code would go under mysite.com. However if you are following your tutorial and placing it in /var/www/html then you would simply need to edit the document room (via Forge) to point to where you want it to point to. However, for better management I would simply move your Wordpress Install to the directory forge created.

1 like
chern123's avatar

I should have closed this post -- I realized that shortly after posting... Thanks for the answer, though. It was indeed pointing to 'default' which didn't really do much good :P

1 like

Please or to participate in this conversation.