Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: transferred site, not connecting to admin or DB

    Quote Originally Posted by frank18 View Post
    Ofc, permissions should be changed to 777 before editing these files and back to 400 or 444 after the edit is done.
    Apologies if this appears pedantic, but there is never ever a reason why .php files need a permission of 777. (folders are another matter).
    Although in *most* cases the 777 permissions won't cause any problems, with *some* servers it will cause a 'server 500' error.

    664 is generally all that is needed. In *very rare* cases, 666 will be required. 777 introduces a security risk, which thankfully is something that ZenCart checks for in regards to the configure.php files. Alas, it doesn't check for other files with unneeded write permissions, and less experienced developers seem to have a nasty habit of using/suggesting 777 whenever there is some kind of problem reading or writing a file. Bad news. Bad advice.

    Cheers
    RodG

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: transferred site, not connecting to admin or DB

    Quote Originally Posted by RodG View Post
    Apologies if this appears pedantic,....
    Pedantic and totally off-topic Rod

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: transferred site, not connecting to admin or DB

    Quote Originally Posted by frank18 View Post
    Pedantic and totally off-topic Rod
    I should have placed more emphasis on the word *appears*.

    I wasn't being pedantic at all. I was providing *good* and *accurate* advice in regards to php files permissions.

    As for off topic. I find that highly questionable. I gave the same correct advice in my 1st post, and you took it upon yourself to contradict this advice with the *foolish* suggestion of "permissions should be changed to 777".

    I can only assume that it *appears* pedantic to you because you are one of those that don't understand the risks of 777 file permissions (and seem to be quite happy about that).

    I may not be able to convince you the error of your ways, but that doesn't mean I can't and shouldn't try to help prevent others from making the same mistake.

    EOT.

    RodG


 

 

Similar Threads

  1. v153 Transferred database to new site, forgot to upload address_book table.
    By joecooper in forum General Questions
    Replies: 2
    Last Post: 3 Jun 2015, 09:26 AM
  2. Admin Login Not Connecting
    By txscooterd in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 18 Nov 2010, 07:25 AM
  3. Transferred Site to new host
    By cactusranger71 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 18 Dec 2009, 01:14 AM
  4. Waiting for my site to be transferred can I start working on my cart now?
    By Hansen Enterprises in forum General Questions
    Replies: 5
    Last Post: 21 Jul 2008, 10:22 PM
  5. Can not access transferred site
    By cnsystems in forum General Questions
    Replies: 1
    Last Post: 15 Feb 2007, 11:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg