Just updated imscp to 1.1.5 and therefore updated all imscp plugins, PMA is now working. Thanks anyway!
-
-
[HELP!]
FastCGI: incomplete headers (0 bytes) & failed to connect to server !!! @ every php-File!Hi Guys,
i'm really confused. Have a new Ubuntu Server 14.04 minimal installation with 1.1.5 in production and
it should have been ready yesterday.At first imscp didn't run until installing php5-mcrypt from ppa:ondrej/php5
[OT] and i had a 5s delay at boot with Error "Diskfilter Writes are not supported" that i could
get wordarounded by setting grub's quickboot to zero:
sed -i 's/^\(quick_boot\s*=\s*\).*$/\1"0"/' /etc/grub.d/10_linuxATM imscp is working properly but php is makes me going crazy,
+ it's also an APACHE_PHP_FPM Setup,
+ php.ini is defined per Site.
Every php-Script, browsed by http as well as https, brings out the Internal Server Error 500./var/log/apache2/tld/error.log shows always the same shit:
The outcome of php -m
Code- [PHP Modules]bcmathbz2calendarCorectypedatedbadomeregexiffileinfofilterftpgdgettexthashiconvimapintljsonlibxmlmbstringmcryptmhashmysqlmysqlimysqlndopensslpcntlpcrePDOpdo_mysqlPharposixreadlineReflectionsessionshmopSimpleXMLsoapsocketsSPLstandardsysvmsgsysvsemsysvshmtokenizerwddxxmlxmlreaderxmlwriterZend OPcachezipzlib[Zend Modules]Zend OPcache
The Apache-Config of Site:
Code- <VirtualHost IP:80>
- ServerAdmin webmaster@TLD
- ServerName TLD
- ServerAlias www.TLD vu2005.IMSCP-SRV-DOMAIN
- DocumentRoot /var/www/virtual/TLD/htdocs
- LogLevel error
- ErrorLog /var/log/apache2/TLD/error.log
- Alias /errors /var/www/virtual/TLD/errors/
- # SECTION suexec BEGIN.
- SuexecUserGroup vu2005 vu2005
- # SECTION suexec END.
- # SECTION php_enabled BEGIN.
- # SECTION php_fpm BEGIN.
- Alias /php5-fcgi /var/lib/apache2/fastcgi/php5-fcgi-TLD
- FastCGIExternalServer /var/lib/apache2/fastcgi/php5-fcgi-TLD \
- -socket /var/run/php5-fpm-TLD.socket \
- -idle-timeout 300 \
- -pass-header Authorization
- # SECTION php_fpm END.
- # SECTION php_enabled END.
- <Directory /var/www/virtual/TLD/htdocs>
- Options +FollowSymlinks
- # SECTION php_enabled BEGIN.
- AllowOverride All
- # SECTION php_enabled END.
- Require all granted
- </Directory>
- # SECTION cgi_support BEGIN.
- ScriptAlias /cgi-bin/ /var/www/virtual/TLD/cgi-bin/
- <Directory /var/www/virtual/TLD/cgi-bin>
- AllowOverride AuthConfig Indexes Limit Options=Indexes
- Require all granted
- </Directory>
- # SECTION cgi_support BEGIN.
- ScriptAlias /cgi-bin/ /var/www/virtual/TLD/cgi-bin/
- <Directory /var/www/virtual/TLD/cgi-bin>
- AllowOverride AuthConfig Indexes Limit Options=Indexes
- Require all granted
- </Directory>
- # SECTION cgi_support END.
- # SECTION addons BEGIN.
- ProxyRequests Off
- ProxyPass /stats http://localhost/stats/TLD
- ProxyPassReverse /stats http://localhost/stats/TLD
- <Location /stats>
- RewriteEngine on
- RewriteRule ^(.+)?config=([^?&]+)(.*) $1?config=TLD&$3 [NC,L]
- AuthType Basic
- AuthName "Statistics for domain TLD"
- AuthUserFile /var/www/virtual/TLD/.htpasswd
- AuthGroupFile /var/www/virtual/TLD/.htgroup
- Require group statistics
- </Location>
- # SECTION addons END.
- </VirtualHost>
Please Help....
-
-
EDIT: found the reason!!!
service php5-fpm status told me php5-fpm is not running, that's why /var/log/apache2/TLD/error.log says no connection.
Just Reboot the System!!! Php5-FPM then starts on boot. PHP-Files work, no more 500.It's often the most simple case that isn't thought of but solves it.
Sorry
-
service php5-fpm restart
-
-
-
But init 6 is shorter XDD
I don't think... Doing a reboot just for this issue is a noobs way
-
-
-
Please note: reboot is for Windows, or lazy admins, service restart is for Linux.
-
-
Only in your head
Code- HALT(8) Linux System Administrator's Manual HALT(8)
- NAME
- halt, reboot, poweroff - stop the system.
- SYNOPSIS
- /sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h]
- /sbin/reboot [-n] [-w] [-d] [-f] [-i]
- /sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h]
- DESCRIPTION
- halt notes that the system is being brought down in the file /var/log/wtmp, and then either tells the kernel to halt, reboot or power-off the system.
- If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked instead (with the -h or -r flag). For more info see the
- shutdown(8) manpage.
- The rest of this manpage describes the behaviour in runlevels 0 and 6, that is when the systems shutdown scripts are being run.
- OPTIONS
- -n Don't sync before reboot or halt. Note that the kernel and storage drivers may still sync. This implies -d.
- -w Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file).
- -d Don't write the wtmp record.
- -f Force halt or reboot, don't call shutdown(8).
- -i Shut down all network interfaces just before halt or reboot.
- -h Put all hard drives on the system in stand-by mode just before halt or power-off.
- -p When halting the system, switch off the power. This is the default when halt is called as poweroff.
- ............
-
Where is the "don't like" button?
You know what I mean, I guess -