moebiaes
Forum Replies Created
-
Forum: Localhost Installs
In reply to: can’t resolve domain name on local serverOkay, I’m going to try to be more thorough.
In /etc/apache2 there’s a file called ‘apache2.conf’. You have to edit it so that, around line 160-170, where your directories are, the path in which you installed wordpress shall display “AllowOverride all” instead of “AllowOverride none”. It will allow Apache to rewrite the indexes in the .htaccess file and permit the redirection. So if it’s off by default there’s no use in changing the URLs, Apache just won’t redirect correctly.
Search for these lines :
<Directory /> Options FollowSymLinks AllowOverride None Require all denied </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <Directory /var/www/> Options Indexes FollowSymLinks <strong>AllowOverride all</strong> Require all granted </Directory> #<Directory /srv/> # Options Indexes FollowSymLinks # AllowOverride None # Require all granted #</Directory>
and switch the “allow override” section of your installation folder accordingly from “None” to “All”.
Note that in my default config file for Apache2, the /srv/ directory is disabled by default (see the sharp signs) so if you made your wordpress install there, you’ll have to activate this section and enable “AllowOverride” in it. Simply remove the sharp signs!
I hope I’ve been understandable, I’m no native english speaker! Good luck with that!
Now my problem is that my entire site is online except the home page, that seems to still be redirected to my local IP but I don’t exactly know where.
- This reply was modified 2 years, 4 months ago by moebiaes.
Forum: Localhost Installs
In reply to: can’t resolve domain name on local serverThank you for your reply! I solved the problem in the mean time : for those who’d stumble upon the same block, the default settings of Apache didn’t allow Override in the folders I’ve installed my WP to. This is now fixed and the website is up and working!
- This reply was modified 2 years, 4 months ago by moebiaes.