Viewing 5 replies - 1 through 5 (of 5 total)
  • i am using v2.9.2 on debian linux.

    .htaccess is owned by root with permissions set to 666. it is being written to okay. perhaps you permissions are off?

    Thread Starter bungeebones

    (@bungeebones)

    Hi,

    I’m using 2.92 on a Linux box.

    I’m not sure what you mean when you say the htaccess is “owned by root”. I have mine in the root folder, is that the same?

    And I’ve tried all the different permission changes all the way to 777 with no change. I just went back to the server control panel to make sure (I had changed the permissions with my editor0 and yes, 777.

    I go into the wp-admin and select different permalink settings there expecting a change or writing in the .htaccess file but there are none.
    I tried changing the file, creating a new blank one but nothing ever happens.

    I had installed a plugin called “AskApache RewriteRules Viewer”. It has a report line for “use mod -rewrite permalinks” but that always comes back as false no matter what I select. I can’t vouch for the plugin, only that nothing is being written to htaccess

    There aren’t any errors being reported in the wp-admin change permalinks page either

    hi,

    the linux file specification features both ownership and permissions. if you enter “ls -la” on a command line and press Enter you will see a list of the files in the current directory in long format (-l) including the hidden files (-a). the owner of the files is listed after the permission vecotor (rxwr…)

    after typing “ls -la” status of .htaccess on my system looks like this…
    -rw-rw-rw- 1 root root 36 2010-02-20 15:19 .htaccess

    … i have permission on .htaccess set to 666.

    changing ownership of a file is done with a command line like “chown root:<user>” to change it back one would type “chown <user>:root”.

    requirements for setting allowing .htaccess to be updated automatically are here http://codex.wordpress.org/Using_Permalinks

    Thread Starter bungeebones

    (@bungeebones)

    Apparently the server was blocking it. The material you pinted me to had the fix. Thanks! The strange part, though, is that WordPress wouldn’t tell me it was blocked?

    # Server Blockage: Your host might have blocked the SERVER_SOFTWARE variable and this will cause WordPress’ .htaccess generation to fail. If you are sure that your server is running Apache, you can force WordPress to believe that your server is running Apache by changing your wp-includes/vars.php file. Follow the steps below to implement these changes.

    * Open the wp-includes/vars.php file using the built in file editor in your WordPress Admin panel. To navigate to this panel, login to WordPress, click on “Manage”, then on “Files”, scroll to the bottom and type in wp-includes/vars.php into the text box under the “Other Files” title.
    Look for

    $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’) ? 1 : 0;

    and replace it with

    // $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’) ? 1 : 0;

    * Add a new line under

    // $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’) ? 1 : 0;

    and type in

    $is_apache = 1;

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permalinks don’t seem to write to htaccess’ is closed to new replies.