When you install Prestashop, and follow the instructions, it’s possible that you run into a ‘500 error’ when you want to access the back-end.
When I ran into this problem, I searched for a fix. Here’s a real simple solution that worked for me.
This tutorial assumes that you:
- Removed the /install folder
- Renamed the /admin folder to something else. In this tutorial, let’s pretend we renamed it to /backend.
All you need now, is a FTP Client and a Text editor.
Open your site in your FTP client
![media_1358877283507.png](https://i0.wp.com/poweruserguide.com/wp-content/uploads/2013/01/media_1358877283507.png?resize=540%2C378&ssl=1)
Open your website in your FTP client, and go to the former ‘admin’ folder.
- Find the following file: login.php
- Right click the file, and choose “Edit”
Edit the file in your editor (Not really)
![media_1358877447814.png](https://i0.wp.com/poweruserguide.com/wp-content/uploads/2013/01/media_1358877447814.png?resize=540%2C434&ssl=1)
The file will be opened in your default editor (in my case, Gedit). Now, to edit the file.
To “Fix” the problem, do the following:
- Click anywhere in the file (I suggest the end)
- Hit the spacebar, but immediately delete that extra space.
- Save the file.
Upload the ‘Changed’ file
![media_1358877585175.png](https://i0.wp.com/poweruserguide.com/wp-content/uploads/2013/01/media_1358877585175.png?resize=480%2C187&ssl=1)
Filezilla (or your FTP client) will ask if you want to re-upload the file. Click yes, and the file will be uploaded.
Now, try logging in at your back-end again. There’s a big chance that it’ll work now!
If this tutorial was helpful for you, feel free to share it or leave a comment. Prestashop tutorials are new to me, but I’m looking forward to writing more of them!
You can also download this tutorial as a PDF.
You are the best! It worked perfectly!