xeoncross / lowendscript

Bash scripts to set up/bootstrap low end virtual servers
325 stars 100 forks source link

support Debian7 64bit ? #26

Closed hqin2013 closed 10 years ago

hqin2013 commented 10 years ago

hi, does this script support Debian7-64bit ?

i tried ,but failed to build up the site.

Regards

j-mie commented 10 years ago

Yes it does. "Build up the site" what do you mean by this? Did you try starting Nginx?

hqin2013 commented 10 years ago

i can see index.html page,but can't see phpinfo.php

hqin2013 commented 10 years ago

1 2

when i excute "./setup-debian.sh system" ,get these

xeoncross commented 10 years ago

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.

hqin2013 commented 10 years ago

in var/log directory,there is no php_errors.log file. nginx/errors.log show nothing. and php-fm.log shows as below: 3

there is 502 Bad Gateway error show phpinfo.php page.Nginx version is 1.6.1

hqin2013 commented 10 years ago

Any update?im waiting for this,

thank you!

j-mie commented 10 years ago

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.

hqin2013 commented 10 years ago

ok,i have edited my last message.

i just wanna help solve the problem.

webmarkhq commented 10 years ago

@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?

hqin2013 commented 10 years ago

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!

hqin2013 commented 10 years ago

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!

webmarkhq commented 10 years ago

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.

webmarkhq commented 10 years ago

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

hqin2013 commented 10 years ago

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

4

j-mie commented 10 years ago

It's an error in the script.

http://stackoverflow.com/questions/12322811/call-time-pass-by-reference-has-been-removed

hqin2013 commented 10 years ago

yes,it's really script's problem.

php5.4 is not a good option.seems i hava to choose debian 6. it sucks!