Re: [webmin-l] Ubuntu 16 Upgrade

"Teknoskillz" <[email protected]>
Newsgroups gmane.comp.web.webmin.general
Message-ID <4E501DAAEC27430591E2403487B4206F@HAL2000>
So, I am back working on this problem.

I forgot in Webmin / Virtualmin where I had seen the original path problem, 
could not find a place called: "PHP Informaiton" anywhere , but I know it 
was there last time I checked.

Searched the web some more

http://askubuntu.com/questions/760907/upgrade-to-16-04-php7-not-working-in-browser

Output of ls command:

ls: cannot access 'php*': No such file or directory

Seems perhaps that is the path problem I originally encountered, but not 
sure.

So what I did was search some more , and an article said for php7 to work, 
we need to modify the php7
conf file [ 
https://www.23systems.net/2016/01/installing-php-5-6-x-7-0-x-ubuntu-14-04-virtualmin-5-0gpl-using-ppa/ ]
(though this is for Ubuntu 14, hoping its close enough) I also ran the 
scrpits he supplied, because perhaps the Virtualmin paths were a problem 
too,
but the scripts seemed to run ok except they could not find the php5 related 
references...Im guessing because I have disabled php5.

 nano /etc/apache2/mods-available/php7.0.conf


So we comment out SetHandler application/x-httpd-php and SetHandler
application/x-httpd-php-source [ ok ]


 Now the text download dialogue does not happen when
I try to load a php page, however it shows a 500 Apache/2.4.18 error,
 Checking the Apache log, there is an error (related to premature 
termination of the header or such)
 which seems to translate into problems with possible old php5 related paths 
in httpd.conf.

I tried :

# locate httpd.conf

and got:

/etc/phpmyadmin/lighttpd.conf
/usr/share/doc/apache2-doc/examples/apache2/original/httpd.conf.gz

am I missing httpd.conf  completely?

I also enabled mod_fcgi in the apache module config in Webmin, and of course 
restarted apache, still have the 500 error ...

Any help appreciated.


> If you don't have [F]CGI SAPI installed, no wonder it "evades" you.
>
>> /etc/php/7.0/apache2/php.ini=Configuration for mod_php  # ok
>> /etc/php/7.0/apache2/php.ini=Configuration for scripts run via CGI ** < 
>> this
>> one is wrong
>> /etc/php/7.0/cli/php.ini=Configuration for command-line scripts # ok
>
>
> -- 
> With best regards,
> Andrey Repin
> Sunday, August 14, 2016 01:18:12


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
-
Forwarded by the Webmin mailing list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.