Jump to content

test install on MAMP


Recommended Posts

Just installed 1.5.3.1 on a MAMP installation (on Mac) to test out Prestashop.

 

Install appeared to go OK, database etables created and populated, got green ticks and success at every step and the final 'where do you want to go next'

 

Well, the shop is there......but the admin isn't! It asked me to rename the admin folder, so I did so. But the admin URL doesn't get anything, just completely blank page.

 

The MAMP server is running PHP 5.4.4

 

What next? any ideas?...

 

HJ

Link to comment
Share on other sites

PHP error log, she say:

 

[01-Feb-2013 14:40:44 UTC] PHP Warning:  require(/Applications/MAMP/htdocs/prestashop/admin/functions.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31
[01-Feb-2013 14:40:44 UTC] PHP Fatal error:  require(): Failed opening required '/Applications/MAMP/htdocs/prestashop/admin/functions.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31
[01-Feb-2013 14:41:06 UTC] PHP Warning:  require(/Applications/MAMP/htdocs/prestashop/admin/functions.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31
[01-Feb-2013 14:41:06 UTC] PHP Fatal error:  require(): Failed opening required '/Applications/MAMP/htdocs/prestashop/admin/functions.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31
[01-Feb-2013 14:42:00 UTC] PHP Warning:  require(/Applications/MAMP/htdocs/prestashop/admin/functions.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31
[01-Feb-2013 14:42:00 UTC] PHP Fatal error:  require(): Failed opening required '/Applications/MAMP/htdocs/prestashop/admin/functions.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/prestashop/admin/index.php on line 31

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

Well yes, the installation told me to rename my admin directory......so I did. I renamed it /nimda - but it won't open it.

 

Strikes me it's ignoring any renaming and just trying to find /admin.....which it obviously can't after I've renamed it!

Link to comment
Share on other sites

hjay, I have no idea what is wrong, I don't use your server. But after a search on the Internet, I found this.

 

Goto:

Applications/MAMP/conf/apache/

 

Find this code:

 

<Directory />

Options Indexes FollowSymLinks

AllowOverride All

</Directory>

 

Change to this:

 

<Directory />

Options Indexes FollowSymLinks

AllowOverride None

</Directory>

 

This is probably a waste of your time, but I would try it. If it dosen't work, please change back.

Link to comment
Share on other sites

Hi Bill, thanks for dipping into this!

 

The Apache <Directory> setting is already set to 'AllowOverrideNone' by default.

 

No, there is no default .htaccess file in the Prestashop directory, nor in /htdocs

Link to comment
Share on other sites

Another thing to try, check to see if these are on, if not turn them on to check for errors.

 

 

prestashop/config/defines.inc.php

 

 

define('_PS_MODE_DEV_', false);

 

And also check

Apps/MAMP/conf/php5x/php.ini and set

 

display_startup_errors on

 

However, if you find this PHP setting is already on, turn it off as it can sometimes cause problems.

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

  • 4 weeks later...

Sorry, been away for a while........ but hey, a reboot got it working :)

 

My problem now is in trying to add a 'combination' for a product. It says to choose attributes and values (also in the generator), but no attributes or values are shown or available from any drop down (or in the generator).

 

Basically I have a need to display a product which has five different sizes, each size with a different base price, and with quantity discounts on the base prices.

 

Possible?

Link to comment
Share on other sites

Before you can generate combination you need to create attributes and values.

Under catalog you will find attributes and values, just create attribute like 'size' and than create has many values as needed to that attribute (small, medium, xl.....).

After you created those values and attributes you will be able to choose them when you generate combination

Link to comment
Share on other sites

Thanks for that, yaniv14. OK, I see what to do, there.

 

But here's an additional question......

 

How do I apply quantity discounts for each of those attribute values? Because each item size (attribute value) has a different price, it will also have different quantity discount values.

 

eg.

 

Widget 1

Size 55mm: 1-5 Price: 20.00 6-10 Price: 18.00 11+ Price: 15.00

Size 80mm: 1-5 Price: 25.00 6-10 Price: 23.00 11+ Price: 21.00

 

You see what I mean?

Link to comment
Share on other sites

×
×
  • Create New...