Jump to content

[SOLVED] HTTP 500 Vs chown, chmod


Recommended Posts

Hi

I went quickly across the code source and it really looks a great job.

Just following the documentation (ie chmod 666/644 recursively for some dir and not for some others) does NOT work.

I have seen already many posts dealing with this http error but none of them really solved this issue for me.
Even if I thank udahva for the hints. I rewrote this shell.

I have installed prestashop v1.3.2.3 in my testing Debian VM within an existing site.
The installation process could run only after changing all file permissions to 777.
Which can be acceptable for a trial within a VM.

I want now to proceed to the production installation and setup.
It's more than a concern for us (for obvious safety issues) to chmod 777 files and/or directories as found on the posts on this forum.

Our hosting server is a dedicated one, so we have a full access to the server setup.
(Debian Lenny, Apache 2.2.9, added Apache compiled modules, compiled php 5.3.3, mysql..)

The logs are confirming the access rights issue when index.php trying to include config.inc.php :

[Mon Nov 08 01:29:32 2010] [error] [client xx.yy.zz] PHP Warning:  include(/www/mydomain/shop/config/config.inc.php): failed to open stream: Permission denied in /www/mydomain/shop/index.php on line 5




=> I have 2 questions :

1- what are the detailed files and directories chown and chmod recommended to get it working before and after the installation process ?

2- is there another way to get it working than chmoding 777 some directories ?


Many thx in advance

Link to comment
Share on other sites

;-) thx for your msg

I have several other websites and I am the server admin as well.
These websites are chmoded 755/644.
So I have NO problem with my host. It's a dedicated server (ie I set it up 100%)

Ok thx, I'll (re)try 755/644 on all dir/files.

Link to comment
Share on other sites

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