Jump to content

[Help] Cannot Install The Prestashop 1.6.1.3 On Localhost Xampp On Mac


Recommended Posts

 I downloaded the latest version 1.6.1.3 of PrestaShop, then put it in the htdocs.

 

3mobuj8g6fm78d9zg.jpg

 

wym222k3y8souj4zg.jpg

Then I get the url localhost/prestashop. It shows the install folder: http://localhost/prestashop/install.

But the installation doesn't appear as the installation guide of prestashop.com.

 

txbas3aqaoln19bzg.jpg

 

When I try to access the wordpress: localhost/wordpress. It shows the installation normally.

 

What's wrong with my steps?

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

PROBLEM SOLVED

OMG, after an hour traveling around the forum, I finally find the reasons and the solution of my problem.

 

1. Find this file: $_PATH\config\defines.inc.php

Open this defines.inc.php file, modify line 29:

from

define('_PS_MODE_DEV_', false);

to

define('_PS_MODE_DEV_', true);

 

c3ppc4vnn4535yizg.jpg

 

It will show the problem on the webpage. In my situation, The webpage is blank, actually It has error as follow:

 

rgdckdg2n96rgpmzg.jpg

 

2. Find this file: $_PATH\classes\PrestaShopAutoload.php

Open the PrestaShopAutoload.php file, modify line 168 (in my situation):

from:

Tools::error_log('Cannot write temporary file '.$filename_tmp);

to:

//Tools::error_log('Cannot write temporary file '.$filename_tmp);

 

jo03tses4s40lktzg.jpg

 

Then, the installation now shows itself normally.

 

ua0aqwp9dbbcn2tzg.jpg

 

 

 

I don't know what happen to this problem, maybe PrestaShop should fix this problem.

  • Like 1
Link to comment
Share on other sites

Recursive write permissions for Apache user

uVhuq.jpg

Solution for that problem when installing the PrestaShop:

 

 

1. You need to know what user/groups using in apache server:

Open Terminal

User:

APACHE_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {if ($1) print $1}')

 

echo $APACHE_USER

 

It shows the apache user: for example: admin

Group:

$ APACHE_GROUP=$(ps axho group,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {if ($1) print $1}')

 

$ echo $APACHE_GROUP

 

It shows the apache group: for example: admin

 

2. Access to your prestashop project, for example:

 

$ cd /Applications/XAMPP/xamppfiles/htdocs/prestashop/

 

$ sudo chown -R admin:admin *

 

Now the problem is solved.

 

You can now continuing your installation.

Link to comment
Share on other sites

  • 1 year later...

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