Internal server error" notification

rimas06

Member
XNullUser
Joined
Feb 22, 2022
Messages
195
Reaction score
4
Points
18
NullCash
2
I'm running 1.7.5.0, and almost every time I clear my cache from BO, or save a translation from BO, I get "Internal server error" notification and after that the site (BO and FO) is completely dead. Immediate error 500 on every page load.
I've checked my server logs and it was full of fatal errors: "Failed opening required ....../var/cache/prod/appParameters.php"
I've noticed that file has permissions set to 0. When I chmod it do e.g. 644, the site works fine again as long as I'm not saving translations, clearing cache (and probably doing some other tasks as well in BO).
I've tried chmoding the entire PrestaShop directory recursively to 755, but no luck. What might be the issue?
Thank you.
 

tali656

Well-known member
Master
Diamond
Elite
Joined
Dec 28, 2018
Messages
452
Reaction score
1,063
Points
93
NullCash
2,045
It is really hard to know without site in front...
 

freiserk

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
Jan 24, 2019
Messages
3,497
Reaction score
6,557
Points
113
NullCash
33,251
I'm running 1.7.5.0, and almost every time I clear my cache from BO, or save a translation from BO, I get "Internal server error" notification and after that the site (BO and FO) is completely dead. Immediate error 500 on every page load.
I've checked my server logs and it was full of fatal errors: "Failed opening required ....../var/cache/prod/appParameters.php"
I've noticed that file has permissions set to 0. When I chmod it do e.g. 644, the site works fine again as long as I'm not saving translations, clearing cache (and probably doing some other tasks as well in BO).
I've tried chmoding the entire PrestaShop directory recursively to 755, but no luck. What might be the issue?
Thank you.

If work with linux use:

Delete everything inside: /var/cache/

Now fix permissions: (pointing to the corresponding root)

Code:
sudo chown -R nobody:nogroup /usr/local/lsws/.../
sudo find /usr/local/lsws/..../ -type d -exec chmod 755 {} \;
sudo find /usr/local/lsws/..../ -type f -exec chmod 644 {} \;

Test...

See with module file_permisions. (Atach)
 

Attachments

  • filepermissions.zip
    4 KB · Views: 2

darksabi

Active member
XNullUser
Joined
Jun 27, 2019
Messages
1,791
Reaction score
22
Points
38
NullCash
44
Thanks alot nice info, nice share perfect
Post automatically merged:

Thanks alot for info and share
If work with linux use:

Delete everything inside: /var/cache/

Now fix permissions: (pointing to the corresponding root)

Code:
sudo chown -R nobody:nogroup /usr/local/lsws/.../
sudo find /usr/local/lsws/..../ -type d -exec chmod 755 {} \;
sudo find /usr/local/lsws/..../ -type f -exec chmod 644 {} \;

Test...

See with module file_permisions. (Atach)
 
Last edited:
Top