Prestashop: Correct File Permissions

April 3, 2018 Tags Programming, Fixes, Prestashop

I noticed, after uploading Prestashop to my webserver and extracting the files, I was getting 500 Internal Server errors. After a bit of testing I figured out the file permissions from having extracted the files were actually incorrect. Directories need to be set at 755 while files should be set at 644.

To save time, I SSH'd into the server and ran these commands after navigating to the public_html folder (or www folder):

chown www-data:www-data  -R *
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

That should assign the correct user to the files, and permissions as well.

Prestashop: Open the Sample CSV Import Files in Excel

April 3, 2018 Tags Programming, Fixes, Prestashop
prestashop-open-the-sample-csv-import-files-in-excel

I was having trouble opening the sample CSV files that Prestashop provides for doing mass object importing, turns out it was simply because the sample files are separated by semicolon instead of by comma. The very easy fix is to open the CSV file in a text-editor and adding the following line to the beginning of the file:

sep=;

Doing this tells Excel that you want to use the semicolon caharacter as seperator.