Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dlanced

    (@dlanced)

    I’m actually serving multiple sites from that server. But there was no Directory listing within this site’s VirtualHost. So I added the Directory listing within my site’s VirtualHost as follows:

    <VirtualHost *:80>
    ServerName bootstrap-it.com
    DocumentRoot /var/www/html/bootstrapit
    <Directory /var/www/html/bootstrapit>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>
    ServerAlias http://www.bootstrap-it.com
    </VirtualHost>

    For some reason, the .htaccess was emptied out so I rebuilt it as follows:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    My site is accessible, but still won’t find pages with Permalinks set to Post Names. I did try adding Option Indexes to .htaccess, but that prevented even the home page from loading.

    Thread Starter dlanced

    (@dlanced)

    “sudo a2enmod rewrite” does indeed return “Module rewrite is already enabled”. and “AllowOverride All” is set for my virtual host directive (and for the /var/www directive, too – I assume that’s not a conflict). I’ve restarted Apache a number of times through the afternoon and evening. Unfortunately, I’m still having the same trouble when I set Permalinks to Post Name.
    By the way, I’ve seen references in other forum threads to possible conflicts with the theme you use. So just to be clear, I’m using the Twenty Seventeen theme.
    Thanks!

    • This reply was modified 7 years, 1 month ago by dlanced.
    Thread Starter dlanced

    (@dlanced)

    Hi Chirag,
    That is useful. I now believe that part of the problem was that WP didn’t have write permissions to the uploads directory, so the resized images weren’t being created in the first place.
    I think I understand it better and have it under control now.
    Thanks!

    Thread Starter dlanced

    (@dlanced)

    I tried editing the name to only wordpress-ubuntu.jpg and that worked perfectly

    Thanks. But I don’t want to have to manually edit the filename for each image I use for every post I’m ever going to publish. Is there any way to stop WP from changing the name in the first place?
    I’m not using Jetpack Photon…

    Thread Starter dlanced

    (@dlanced)

    No. It was dumber than that: I hadn’t even created a page with the [pdb_record] shortcode yet!
    Everything’s working fine now. Thanks so much!

Viewing 5 replies - 1 through 5 (of 5 total)