• Resolved australis41

    (@australis41)


    Good evening,

    The web site I am working on is here:

    https://www.mallacootahoney.com

    I am using the latest version of WP.

    My VPS had a problem, so I transferred all my WP sites from their live sites to a local install on my laptop. I did this by saving wp-contents and sql backup, etc. After fixing my VPS and rebooting, I am starting to upload or put back all live sites.

    I started with one – the site above.

    I installed a fresh WP, then transferred wp-content back and imported the sql file. ALl went well, except for a little permalink problem which I ironed out with the Override All setting my sites-available default and default-ssl files. Then activated a2enmode rewrite on the server (i have apache2).

    Ok, everything worked wonderfully, except when I try to access the blog page on https://www.mallacootahoney.com

    My wp installation is at https://www.mallacootahoney.com/blog and I changed the www link to be https://www.mallacootahoney.com inside WP settings. I transferred the index.php out of blog/ and into the root. So far so good.

    In my .htaccess file in the root is only the permalink info. NOthing else.

    I have been reading every post on this support forum and also off site courtesy of google. anything that brings up a hint of info about why /blog is being blocked.

    I added to my mallacootahoney.com file on apache under the sites-available directory the following code:

    <Directory />
    Options FollowSymLinks
    AllowOverride All
    </Directory>

    THis is within the Virtual Host comments. When I dont have this code you are able to access blog/ but you can see the entire wp installation directory, which isn’t good. When I have the above code, permission is forbidden.

    Now when I go into the dashboard and to the page edit of the actual page called blog with the slug also called blog, so it looks like https://www.mallacootahoney.com/blog, and I change the slug name from blog to news, for example, and save it, then the blog shows up as per normal and I can visit all blog posts.

    As an aside, in the settings in WP, the Blog page is set as the page where all posts show up.

    I understand that somehow there is a conflict between blog/ being recognised as both the WP installation directory and also the location of the web sites posts, so the actual blog. I know that I can solve this problem easily by changing the slug to anything other than blog.

    But I would like to know, before using this option, is there another option and what am I missing here. I would really appreciate help and asisstance, as I have spent days trying to fix this problem and I am a little at the end of my abilities here.

    Thank you in advance to anyone who can help me and shed light.

    Greetings,
    Jasmin

Viewing 7 replies - 1 through 7 (of 7 total)
  • Could be a folder permissions problem? Try right clicking on the folder in your FTP browser and check it’s permissions.

    Thread Starter australis41

    (@australis41)

    Hi Mike, Thanks for the tip. I tried that earlier too. I thought it may be a reason, but not sure what is correct. When I check the folder permissions for /blog/ it is 755. Is that right? Or should it be something else? Thanks again for taking the time. Greetings, Jasmin

    Ok – been thinking more about this issue.
    I think the problem is that you can’t have your BLOG address be /blog and a page be /blog at the same time.
    My suggestion would be to either move your entire install to the root, or change your install directory to something like /wp.

    Moving_WordPress

    Thread Starter australis41

    (@australis41)

    Hi Mike, I think you’re right. It is the easiest way. But I never had a problem with this before. So hence the reason why I can’t figure it out now. I was able to use blog for the wp install and also as the post page on all other sites before this happened. I really appreciate your help and suggestions. I wonder if anyone else has experienced the same problem and overcome it? If not, then I will just rename it. Greetings, Jasmin

    Try re-saving your Permalinks settings? That sometimes will fix URL issues for sites.

    Thread Starter australis41

    (@australis41)

    Hi Mike, thought you may be interested in the solution to this problem. After spending several hours playing around, deleting the installation and even the virtual host directory, etc., I finally found out what I did wrong and how to solve the problem.

    I can now use both blog/ as the post page and also as the wp install, as I did a while back.

    What I did wrong was to use sudo when creating the mallacootahoney.com directory and then I had to use sudo to install wp. That made the blog folder totally inaccessible. Not knowing a better fix or solution to this, all I did was go back to the Linode instructions and follow them to the letter.

    They don’t use sudo to make the www folder (mallacoota) which resides in the document root. Therfore the wp installation folder was not under sudo control.

    Now everything works again.

    Thanks for your help and suggestions.

    Greetings, Jasmin

    Thread Starter australis41

    (@australis41)

    This is now solved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permission denied when accessing /blog/’ is closed to new replies.