Forum Moderators: phranque

Message Too Old, No Replies

Permission on Apache

Dealing with permission issues -

         

mcneely

2:53 am on Sep 29, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Okay guys, if I've got this in the wrong forum, feel free to jump up and down and holler a lot --

I've been tunnelling in and out of servers for clients since about 2002 -- Sometimes there are issues, sometimes not.

Today's task involved loading to the root thus rewriting/replacing original files and folders for an upgrade related to Wordpress.

The box is Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.4.36.
I made sure all was well with regard to set permissions on the box and started my loads.

It's a no-go --

I'm logging into the domain with admin credentials -- I can SSH without a problem, and I can ftp, move files and folders around without a problem too -- Trouble is that when I go to load the files, I'm being told that permission is/was denied. Files and folders on my local machine are set with the same permissions you would find on the server --

This has got to be something simple - at least I think so, because I've been doing this stuff for a long time.

Any thoughts?

not2easy

4:09 am on Sep 29, 2015 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It sounds like a problem that occurs commonly when moving WP installs to a new host. The wp-config.php needs to be updated to reflect the new settings. You need to have set up a MySql database, user and password, then edit the wp-config.php file to use those settings. The settings used on your local machine won't work by just moving the files.

If you've done that and installed the .sql file it should work, but check to see that the WP snippet is showing in the root htaccess file.

mcneely

5:29 am on Sep 29, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It's a standard plain-jane WP install ..

htaccess is this --

# 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

I've been floating these things back and forth from local to server for years without a problem - Usually the problems with permissions existed on the server. Sometimes things would be so messed up that I'd run find2perl just to be sure permissions meshed.

This guys WP build has a place in it that expects to get a hosting acct user and password (ftp style) in order to load everything from WP Server directly -- It doesn't work. So in cases like these, I go in hot and overwrite the old files with the new via ftp. Hit refresh and the upgrade prompt for WP pops up and I go from there.

mcneely

6:30 am on Sep 29, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I think that since this is a dedicated box with a name different than the actual domain I'm working with that I may have to just go clear to the top.
I load stuff like that on mine - Go through the NS and load to various hosted names. I kind of suspected I might have to do that anyway when I confirmed the security exception just to log in to this particular domain ... I'm thinking he's trying to do the SSL for this domain by using the SSL for the box. I sort of suspected that when the WP build wouldn't write for the update (names aren't matching up)

I've done work for this guy before a few years ago (always gave me logins to blank folders when I needed the root kind of stuff).. He's a great guy and all, but I think he worries a bit too much.

I think that tonight I'll pull backups and shoot him an email and tell him that he needs to load the files himself -- After which I'll then go in and do what I need to do.