fresh install of VM/webmin (with php7 issue)

4 posts / 0 new
Last post
#1 Mon, 04/18/2016 - 14:57
cinterpro
cinterpro's picture

fresh install of VM/webmin (with php7 issue)

Dear all.
Just installed a everything from scratch.
1. Installed Ubuntu 14.x
2.updated everything
3. Installed php following these instructions
http://www.cyberciti.biz/faq/ubuntu-linux-14-04-install-php7-using-apt-g...
so far so good !
4. than installed (also from scratch) VM with the install.sh script. Everything went smootly as well
5. Once everything installed i setup my first virtual domain
6. Installed /phpmyadmin
7. than in Server Configuration > Website Options i see this:
PHP versions installed 5.5.9, 7.0.5
Modules for PHP 5
bcmath bz2 calendar cgi-fcgi Core ctype date dba dom ereg exif fileinfo filter ftp gd gettext hash iconv json libxml mbstring mcrypt mhash mysql mysqli openssl pcntl pcre PDO pdo_mysql Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip zlib

Modules for PHP 7.0
calendar Core ctype date dom exif fileinfo filter ftp gd gettext hash iconv json libxml mcrypt mysqli mysqlnd
openssl pcntl pcre PDO pdo_mysql Phar posix readline Reflection session shmop SimpleXML sockets SPL standard sysvmsg sysvsem sysvshm
tokenizer wddx xml xmlreader xmlwriter xsl zlib

Now when switching a certain dir from php V 5.5.9 to 7.0.5 i get the following message
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

Eventough i have set a dir to php 7.0.5
home/mydomain/public_html/myproject (joomla)
when running phpinfo()
i see he doesn´t change the php version it still says PHP Version 5.5.9-1ubuntu4.14

and the error log says:
[Mon Apr 18 21:26:02.443008 2016] [fcgid:warn] [pid 27307] (104)Connection reset by peer: [client 79.144.174.182:53372] mod_fcgid: error reading data from FastCGI server
[Mon Apr 18 21:26:02.443081 2016] [core:error] [pid 27307] [client 79.144.174.182:53372] End of script output before headers: index.php
[Mon Apr 18 21:43:21.683022 2016] [fcgid:warn] [pid 29096] (104)Connection reset by peer: [client 79.144.174.182:53556] mod_fcgid: error reading data from FastCGI server
[Mon Apr 18 21:43:21.683094 2016] [core:error] [pid 29096] [client 79.144.174.182:53556] End of script output before headers: index.php

So from what I see here I think that the mod_fcgid is not installed?

Location of php
phpv5.5.9 = /etc/php5
php7 = /etc/php/7.0
and in that dir I see this:
/cli
/fpm
/mod-available

In this post Eric says that you can ad a location to the php-cgi
https://www.virtualmin.com/node/39609

locate php-cgi
/etc/alternatives/php-cgi
/etc/alternatives/php-cgi-bin
/etc/alternatives/php-cgi.1.gz
/usr/bin/php-cgi
/usr/share/man/man1/php-cgi.1.gz
/var/lib/dpkg/alternatives/php-cgi
/var/lib/dpkg/alternatives/php-cgi-bin
root@ubuntu:/home/myproject/public_html/phpmyadmin#

but not sure which to use
Can anyone help me out here what I am missing?

Hoping to hear from anybody.
help is much appriciated and I hope that my question is clear :-)
Thanks in advance,
Regards,
Paco

Mon, 04/18/2016 - 23:02
andreychek

Howdy,

FCGID doesn't always produce very good error messages. The error you're receiving is a generic one.

Try going into Server Configuration -> Website Options, and switch the PHP Execution Mode to "CGI".

After doing that, do you see a better error message in the Apache error log for that domain?

-Eric

Fri, 04/22/2016 - 07:55
cinterpro
cinterpro's picture

Dear Eric. I changed what you mention. (CGI wrapper (run as virtual server owner)

when opening the web i see thisThe requested URL /cgi-bin/php7.0.cgi/my project/index.php was not found on this server.

executing this: nano /var/log/virtualmin/myprojects.es_error_log

I see this: [Fri Apr 22 12:55:10.318483 2016] [core:error] [pid 9448] [client 37.11.114.155:56291] End of script output before hea$ [Fri Apr 22 12:55:10.587382 2016] [fcgid:warn] [pid 9446] (104)Connection reset by peer: [client 37.11.114.155:60305] $ [Fri Apr 22 12:55:10.587439 2016] [core:error] [pid 9446] [client 37.11.114.155:60305] End of script output before hea$

Checking Configuration -> The following PHP versions are available : 5.5.9 (/usr/bin/php5-cgi), 7.0.5 (/usr/bin/php7.0) How can this be resolved? Hoping to hear from you again ! Many thanks in advance. Regards, Paco

Mon, 04/25/2016 - 14:37
cinterpro
cinterpro's picture

Hello again Eric. how and where to point php7 in the right direction so I can actually use it? Hoping to hear from you again. regards, Paco

Topic locked