Jump to content

SOLVED! VPS permission


Recommended Posts

Hi,

 

I switch to VPS with my store, but we have problem writing on root directory. sitemap generation is not working and if I want to upgrade do new version of Prestashop it's impossible, because I can't write to root directory.

 

here is how the permissions are set

 

-rw-r--r-- 1 figurams figurams 1503 Feb 18 2013 404.php
-rw-r--r-- 1 figurams figurams 1371 Feb 18 2013 addresses.php
-rw-r--r-- 1 figurams figurams 1369 Feb 18 2013 address.php
drwxr-xr-x 9 figurams figurams 4096 Jan 20 19:26 admin1975/
-rw-r--r-- 1 figurams figurams 473 Feb 18 2013 analyticstracking.php
-rw-r--r-- 1 figurams figurams 1372 Feb 18 2013 attachment.php
-rw-r--r-- 1 figurams figurams 1376 Feb 18 2013 authentication.php
-rw-r--r-- 1 figurams figurams 1372 Feb 18 2013 best-sales.php
-rw-r--r-- 1 figurams figurams 55389 Feb 18 2013 bridge.php
drwxr-xr-x 6 figurams figurams 4096 Mar 2 2013 cache/
-rw-r--r-- 1 figurams figurams 1366 Feb 18 2013 cart.php
-rw-r--r-- 1 figurams figurams 1370 Feb 18 2013 category.php

 

Does anybody have the clue why is that?

 

Here is message when I want regenerate Google sitemap.

An error occured while trying to check your file permissions. Please adjust your permissions to allow PrestaShop to write a file in your root directory.

 

Best regards,

 

Martin

Edited by malcek (see edit history)
Link to comment
Share on other sites

you need to change the owner of all root folders and files to match your domain name (without www).  Your shop files should not be owned by root.  This typcially happens when a 'webmaster' creates the shop folder manually instead of using cpanel/plesk etc.

Link to comment
Share on other sites

Thanks El patron

 

this means that I should install prestashop with Cpanel - Softaculous?

 

I manualy prepare all things on local server and after that I upload via FTP client to the live server.

 

Best regards

 

Martin

Link to comment
Share on other sites

Hi Martin,

 

it really does not have much to do with ps installation, you need to create the domain space with correct owner.

 

For example if I use putty to access vps as sudo and create a folder (for website), then the owner will be  'root'.  This will lead to loads of issues when ps (or any other website) needs to update files in it's space.

 

What happens when we create web space with cpanel/plesk is that it cpanel/plesk (for example) assign the owner of the 'domain' you created.

Link to comment
Share on other sites

Thanks El Patron

 

your guidens and other posts help my hosting compnies reslove this matter.

 

Now I have only one problem with migration from shared plans to VPS and that's Layered module. It won't start to show and it is having very strange behaviour. When it is enabled you can't listing on category view to page 2 or any page above. Only first category page (12 product). After disable page starts to work normaly. When I want to edit in BO saved filter, listening of attributes is in constant refresh. Picture attadhed

 

 

 

post-33924-0-01873000-1391185308_thumb.jpg

Link to comment
Share on other sites

Thanks El Patron

 

your guidens and other posts help my hosting compnies reslove this matter.

 

Now I have only one problem with migration from shared plans to VPS and that's Layered module. It won't start to show and it is having very strange behaviour. When it is enabled you can't listing on category view to page 2 or any page above. Only first category page (12 product). After disable page starts to work normaly. When I want to edit in BO saved filter, listening of attributes is in constant refresh. Picture attadhed

 

Howdy!..that is great news that can now move forward with your  business.

 

To get better help on new question, I suggest re posting your question in the 1.5 section.  There are many people with this sort of experience.

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...