Closed hqin2013 closed 10 years ago
Yes it does. "Build up the site" what do you mean by this? Did you try starting Nginx?
i can see index.html page,but can't see phpinfo.php
when i excute "./setup-debian.sh system" ,get these
Um, these aren't error messages. It sounds like you are having a problem with nginx not talking to php-fpm. Check the /var/log
directory to see if php-fpm.log
, php_errors.log
, nginx/errors.log
, or any other log can tell you what the problem is.
in var/log directory,there is no php_errors.log file. nginx/errors.log show nothing. and php-fm.log shows as below:
there is 502 Bad Gateway error show phpinfo.php page.Nginx version is 1.6.1
Any update?im waiting for this,
thank you!
You really shouldn't just post credentials like that on the internet. You should consider that box compromised and reinstall and don't reuse the passwords.
ok,i have edited my last message.
i just wanna help solve the problem.
@hqin2013 I agree with what Jamie said, rebuild this VPS with a new password.
Now when you said i can see index.html page,but can't see phpinfo.php what do you mean? The php file is downloaded by your browser without executing? Or is there an error?
It shows 502 Bad Gateway http://www.onlineeducation-directory.com/phpinfo.php
I have edited my comment,clean up the VPN information. thank you for all your notice!
It shows 502 Bad Gateway http://www.onlineeducation-directory.com/phpinfo.php
I have edited my comment,clean up the VPN information. thank you for all your notice!
Uncomment the following listen directives in /etc/php5/fpm/pool.d/www.conf
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
and change ownership of /var/run/php5-fpm.sock from root to www-data
chown www-data:www-data /var/run/php5-fpm.sock
After that restart php5-fpm
service php5-fpm restart
Update: Check my next response, you can skip these steps.
If you've added the virtual host using following command:
../setup-debian.sh site [domain.tld]
You'll need to modify /etc/nginx/php.conf and replace
fastcgi_pass 127.0.0.1:9000;
with
fastcgi_pass unix:/var/run/php5-fpm.sock;
I was able to recreate the problem on a fresh debian 7 x64 install, and resolve the problem by these steps.
PPS: Your vhost's nginx error log is at /var/www/[yourdomain.tld]/error.log
slove it ,thank you. MarinaDiamonds
EDIT:show some errors in error.log when i visit my *.php page, is this relationship with changing fastcgi_pass
It's an error in the script.
http://stackoverflow.com/questions/12322811/call-time-pass-by-reference-has-been-removed
yes,it's really script's problem.
php5.4 is not a good option.seems i hava to choose debian 6. it sucks!
hi, does this script support Debian7-64bit ?
i tried ,but failed to build up the site.
Regards