Ok, I’m at the end of my rope, google for a few hours now so I’m giving up and asking for help.
I’ve been trying to get just my first site with Local on my Ubuntu distro (Ubuntu 18.04.3 LTS), to launch in my browser. I keep getting blocked by the Apache2 Ubuntu Default Page (image attached).
Things I’ve tried:
- deleting the 000-default.conf and restarting apache2 but this didn’t work
- After that I renewed the default files and edited to try and get the site’s folder treated as a virtual host by apache2 (even though I have to run
service apache2 stopjust so local can start the site - otherwise apache is hogging port 80). I had to add conf files in sites-available and conf-available for fictionaluniversity.conf (my practice/test site)
sites-available file was edited from a copy of the 000-default.conf as such:
DocumentRoot "/home/dani/Local Sites/fictionaluniversity"
conf-available file is just:
Then another apache2 restart, restart the site and again
service apache2 stop
And this is after digging through a whole bunch of stuff I barely understand on about 20 different sites. What’s confusing is this does not happen when I try to access the admin cp - I can login to the admin cp, and even view a test php file with some simple text that I threw into fictionaluniversity/app/public. I just can’t visit the site’s main page itself.
it shows in the address bar, even, as fictionaluniversity.local/ … I don’t know. It’s been a few hours and I’ve lost steam on trying to figure this out. I feel like I’m wading through stuff that’s way over my head right now when I’m just trying to figure out WP development, you know? I will say that some old threads here got me through a couple of the first hurdles like dealing with the router error (apache! shakes fist)
Any help is appreciated. Hope someone can wade through my frenzied brain dump here…