Jump to content

2 installation issues regarding permissions


Recommended Posts

Hello.

I'm desperately trying to install Prestashop but I'm running into two problems during setup.

1. At Step 2 I get only one error, which is at "Allowed to create new files and folders". I've read all topics regarding this problem but found no solution. All directories have been chmod'ed to 777 without any results. My web host assures me that PHP scripts can write and create files. I've run a script to check if that is true and the result was positive.
I was able to circumvent the problem by edditing the ConfigurationTest.php file and changing the lines:

static function        test_system($funcs)
   {
       foreach ($funcs AS $func)
           if (!function_exists($func))
               return false;
       return true;
   }



to

    static function        test_system($funcs)
   {
       foreach ($funcs AS $func)
           if (!function_exists($func))
               return true;
       return true;
   }



This "hack" allows me to continue the installation to Spet 3 where the second problem appears.

2. When i click the Next button to advance to Step 4, i get the error that "Can't write settings file, please create a file named settings.inc.php in config directory." I created the file manually ad chmod'ed it to 777. It still won't write the data. I noticed that, once i press the Next button and it should save the configuration, the settings.inc.php files' permissions ar set to 644 and the can't write error appears once again. What's up with that?

Hope to get a solution.
Thanks.

Link to comment
Share on other sites

Whatever your host is saying, it is still a rights issue.

I have an host who has 755 on dirs and 644 on files and no problems with the install-script.
It could be that the user you check the rights on is NOT the same user that installs PS.
Sometimes this problem happens and is known as php-safe-mode, talk to your hoster.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...