Mins/TuxLite

nginx and php-fpm not installing on Deb 6 after wheezy went live

PearShapedT opened this issue · 6 comments

Ran the script on Friday with only 3 minor issues *I'll detail those next. Today ran the script on the same Deb 6 image and nginx and php-fpm did not install. Is there a log file created of the install or an option to enable logging? This is what I grabbed from my putty buffer when I ran the script:

Installing LAMP or LNMP stack.
The following NEW packages will be installed:
libossp-uuid16{a} nginx nginx-common{a} nginx-full{ab}
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 708 kB of archives. After unpacking 1526 kB will be used.
The following packages have unmet dependencies:
nginx-full: Depends: libgeoip1 (>= 1.4.8+dfsg) but it is not going to be installed.
Depends: libpcre3 (>= 8.10) but 8.02-1.1 is installed.
Depends: libssl1.0.0 (>= 1.0.1) which is a virtual package.
The following actions will resolve these dependencies:

 Keep the following packages at their current version:
  1. nginx [Not Installed]
    
  2. nginx-full [Not Installed]
    

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

./setup.sh: line 123: /etc/nginx/sites-available/default: No such file or directory
Couldn't find any package whose name or description matched "php5-fpm"
Couldn't find any package whose name or description matched "php5-fpm"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

The 3 minor issues I had before wheezy live on a Deb 6 image were:

  1. error log for nginx in /var/logs/nginx had the following error:
    rewrite or internal redirection cycle while internally redirecting to "/index.html",
    the solution http://serverfault.com/questions/416891/nginx-1-2-2-how-to-get-try-files-to-work

2)PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/suhosin.so' - /usr/lib/php5/20090626/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
I just went ahead and added suhosin back into the options.config . Not sure why php was looking for it in the first place.

3)Wordpress install: had a noop error
solution - http://wordpress.org/support/topic/fatal-error-class-noop_translations-not-found-in-path

Mins commented

Thanks for the detailed report on the issues. Did you upgrade your initial Debian 6 system to Wheezy where you encountered these errors? Or is this still on Debian 6? If it is the former, the install issue is due to the way Nginx and PHP5-FPM is installed on Debian 6 (from DotDeb). Debian 7 no longer requires that repository and will likely conflict with the original Debian 6 setup.

The good news is I'm about to add Wheezy support, but this may take a long while. Many packages, config files and Debian specific changes will have to be re-checked against the current scripts.

As for the minor issues, I'll look out for no.1 and 3 when I run my tests. No.2 is expected on a Wheezy system because Suhosin is no longer a recommended package.

I didn't upgrade to wheezy still on Deb version 6.0.7.

I've just tried to deploy on a new Debian 6 VPS and have run into the exact same issues.

Clean Debian 6 minimal based vps - nothing else installed, same issues with nginx.

All that is needed is the apt source for dot deb repo changing. Update remove the reference to stable and replace with squeeze:

Dotdeb

deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

I was about to post the same thing. I figured it out before the nginx security notice :)

Mins commented

Thanks for the fix. I've updated the Dotdeb code in a recent commit and will be adding some new features soon.