PrestaShop Installation Error:  HTTP 500 – error – Oops! An Error Occurred – The server returned a “500 Internal Server Error”.

While installing PrestaShop I encountered following error:

  1. Create file parameters
  2. Create database tables
  3. Create default store and languages

An error occurred during installation…

You can use the links on the left column to go back to the previous steps, or restart the installation process by clicking here.

  1. 1: HTTP 500 – error –

    Oops! An Error OccurredThe server returned a “500 Internal Server Error”.
    Something is broken. Please let us know what you were doing when this error occurred.
    We will fix it as soon as possible. Sorry for any inconvenience caused.

Debugging – Step 1

This is my first time ever to install PrestaShop and being a php script I thought it would be easy sailing but no, like rest of every other fucking php script it also ended up in being PITA.

The first debugging point, obviously, was to check if my web host satisfied all the requirements for PrestaShop. Luckily there is an script to check that,

https://github.com/PrestaShop/php-ps-info

There were few issues with the host which I resolved to get 100% satisfaction.

General information & PHP/MySQL Version

#RequiredRecommendedCurrent
Web serverApache
PHP TypeCGI with Apache Worker or another webserver
PHP Version7.18.18.4.8
MySQLi Extension5.58.0mysqlnd 8.4.8
Internet connectivity (Prestashop)NoYesYes

PHP Configuration

#RequiredRecommendedCurrent
allow_url_fopenYesYesYes
expose_phpNoNoNo
file_uploadsYesYesYes
register_argc_argvNoNoYes
short_open_tagNoNoYes
max_input_vars100050005000
memory_limit64M256M256M
post_max_size16M128M128M
upload_max_filesize4M128M128M
set_time_limitYesYesYes

PHP Extensions

#RequiredRecommendedCurrent
BCMath Arbitrary Precision MathematicsNoYesYes
Client URL Library (Curl)YesYesYes
Image Processing and GDYesYesYes
Image Processing (ImageMagick)NoYesYes
Human Language and Character Encoding Support (Iconv)YesYesYes
Internationalization Functions (Intl)YesYesYes
MemcacheNoNoNo
MemcachedNoYesYes
Multibyte String (Mbstring)YesYesYes
OpenSSLYesYesYes
File Information (Fileinfo)YesYesYes
JavaScript Object Notation (Json)YesYesYes
PDO and MySQL FunctionsYesYesYes
SimpleXMLYesYesYes
PHP-DOM and PHP-XMLYesYesYes
ZipYesYesYes

Directories

#Is Writable
var/cacheYes
var/logsYes
imgYes
mailsYes
modulesYes
translationsYes
uploadYes
downloadYes
overrideYes
app/configYes
app/Resources/translationsYes

It still didn’t fix the issue.

Debugging – Step 2

Googling and Ai-ing didn’t help. Now one has any fucking clue how to fix this issue and there are very few, not more than 2 or 3, posts regarding this issue, all of them talk of bullshit like check the file/directory permissions, .htaccess etc. Upon checking and verifying I didn’t find any issue with file/directory permissions so anyone saying there are file/directory permissions is totally crap.

Debugging – Step 3

In the file config/defines.inc.php change debug to true

if (!defined('_PS_MODE_DEV_')) {
define('_PS_MODE_DEV_', true);
}

It didn’t help as it didn’t display any additional info.

Debugging – Step 4 – Install using different browsers, Google Chrome (no extensions) etc

This is perhaps the biggest bullshit I’ve come across where some idiots say that they have been able to install successfully by using Google Chrome (no extensions), Google Chrome Incognito mode or different browser.

For me it didn’t work.

Debugging – Step 5 – Upload files via cPanel File Explorer

Few other suggested to upload files using cPanel File explorer instead of FileZilla, there may be some truth to this solution as FileZilla may fuck up with file permissions but we have to upload only two files index.php and zipped install files.

Tried this solution as well, didn’t work.

Debugging – Step 6 – Change index.php and install/index.php permissions

Change these two file permissions to 755.

Change install directory permission to 755.

Didn’t work.

The Solution

After wasting almost full day I finally found solution which fixed above problem.

The solution is to select USA as country from the country drop down during installation. I was selecting UK that is why it gave error. After installation you can change country back to the UK.

For some fucked up reason selecting any other country than USA is giving trouble during installation.

Comments

7 responses to “PrestaShop Installation Error:  HTTP 500 – error – Oops! An Error Occurred – The server returned a “500 Internal Server Error”.”

  1. Tim Avatar
    Tim

    Hi, I’m also facing exact same error. I followed all of the steps you have mentioned but still didn’t fix the issue. I’m stuck at installation. What to do next?

    1. Ajay Avatar

      Ask those fucking idiots who built this shitty software, may be they will be able to help.

      Take my advice and don’t proceed with PrestaShop. This eCommerce script it totally fucked up. It is total waste of time.

  2. Pablo Avatar
    Pablo

    I’m stuck at first step during installation. It gives HTTP 500 – error. What to do?

    1. Ajay Avatar

      Dump PrestaShop and find some other eCommerce system.

      1. Pablo Avatar
        Pablo

        Which other Ecommerce software do you recommend?

        1. Ajay Avatar

          There are none. I’ve tried all of them, all of them suck. Build your own or hire someone to build for you. Don’t ask me where to hire developers 😉

  3. Miles Avatar
    Miles

    This country selection issue has been in PrestaShop since donkey ages. Why don’t they fix it?

Leave a Reply

Your email address will not be published. Required fields are marked *

Hi,

I’m Ajay

I write about tech stuff, mostly tech problems and solutions.

All Categories

Social me

Mastodon

Latest comments

  1. Hi Ajay, Love your theme, can you export it and email to me please?