-
Notifications
You must be signed in to change notification settings - Fork 9.4k
nginx issue - CentOS6 #854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please check if the |
Acording to the documentation i made everything 700 and 600, so the files do not have execute permission :) - so the documentation is incorect then ? p.s. if i set up all to 755 everything works fine :) |
Or at least 755 the folder and 644 the files |
on archlinux it is working with 700/600. Normally only the directories should need exec permission because it is needed for traversal. The files are never executed directly as i understand it so it should work. Your installation resides in a subdirectory of the webroot? maybe it needs more tuning for that ? I only run it in the docroot of that vhost so no struggling with it for me. Maybe you look into the nginx log to see which file on disk it is trying to access. Did you change the user to the nginx-running user and not only the permissions? |
@nhp BUt now i have new error when i preceed with the install. it tells me that it failed at 0% with no log but the server logs show this
|
Also the httpd.conf here it is
|
Of course it is enough to give way too loose permissions. If you have correct ownership 700/600 is enough. If ownership is not that of the nginx-user then it has to be something like X55 or XX5. I was not aware of that but it looks like really bad practice in any shared environment. |
I have to set all folders to 755 and files to 644 and no more blank page. I see and can fill in the instalation wizzard I have to add to the existing value of open_basedir the "/tmp:" at the end of the value so that installation would start otherwise i get error with no log. Then at 93% i have new error and i need to delete or comment out the "session_path" assigned to the domain from httpd.conf and then installation is all good at 100% |
Hi @Crustymd, seems like you have resolved the issue? |
closing this issues as @Crustymd hasn't responded in 15days. Please reopen if our fix didn't work for you. |
MOst of the hosting servers that have SentOS6 installed with or without ISP manager panel have nginx installed on it, you can not disable or delete you will need to reconfigure the server. Anyway by default they have it installed. I run throw the instalaation with no error, when i reach the part when i ahve to go throw Web Installer http://mysite.com/magento2/setup - the page is just BLANK
Server log no errors. With the help of MAX i managed to find the issue, at least he says it's the issue
YOu can see the issue here http://prntscr.com/5jmnfr
You have a nginx.conf.sample in the root folder, so i fi try to make the nginx.conf in the /etc/nginx/nginc.conf to include this nginx.conf.sample from magento root. THe nginx will just stop working on the server, even if i define $MAGE_ROOT;
The question is how d oyou guys set up nginx correctly on CentOS for magento2? did anybody had nginx issue?
Thank you
The text was updated successfully, but these errors were encountered: