Re: [webmin-l] Ubuntu 16 Upgrade

"Teknoskillz" <[email protected]>
Newsgroups gmane.comp.web.webmin.general
Message-ID <EF99D375C99047148E35B43383C95B61@HAL2000>
Still trying to get this resolved. Turns out if I look in Virtualmin's 
services drop down, I see options for :

PHP 5 Configuration
PHP 7 Configuration
PHP 7.0 Configuration

I was able to confirm the active php is 7.0 , not sure how the other got in 
there, and php5 is apparently disabled
according to bash... so not sure why vmins still allowing it to be 
configured.

I thought for sure there was something in Webmin or vmin to view the 
"phpinfo" splash page but all I could find was one in Webmin that
just shows 3 settings with directories to .ini files. I Originally thought I 
had bad paths there, (in my 1st post) and I had corrected (2) of them, but 
now
they appear to be ok as there is no more error message when I load the page. 
If something is suppose to now show the phpinfo , well thats not working.
So if I try php -1 :


 Output from php -i ..

<b>Security Alert!</b> The PHP CGI cannot be accessed directly.

<p>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This
means that a page will only be served up if the REDIRECT_STATUS CGI variable 
is
set, e.g. via an Apache Action directive.</p>
<p>For more information as to <i>why</i> this behaviour exists, see the <a 
href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
<p>For more information about changing this behaviour or re-enabling this 
webserver,
consult the installation file that came with this distribution, or visit
<a href="http://php.net/install.windows">the manual page</a>.</p>

A quik check online says Try changing in the php.ini:
cgi.force_redirect = 0

So I went into all (3) listings of php and modified the .ini files so 
cgi.force_redirect = 0
and also the (3) paths I just mentioned were pointing to .ini files which 
had this same reference, but still after restarting apache php -1 returns 
same problem.

Another possible solution I found online was to edit:

 /etc/apache2/mods-enabled/php7.conf

and see if it has:

php_admin_value engine Off

I actually had:

php_admin_flag engine Off


Which after some research, appears to be the same thing, so I commented that 
out, restarted apache, and no progress.



Finally , looking under services in virtualmin, there is a "configure 
website" option, and in there we have a php icon.
After looking in there, I see some settings:

PHP Admin Configuration Values   [ engine ] [ Off ]

PHP Configuration Values   [memory_limit] [32M]

PHP Admin Configuration Flags   [ empty ] on off
PHP Configuration Flags     [ empty ] on off


So I tried changing the PHP Admin Configuration Values field to [On] and 
[on] restarted apache, still dead in the water here - ughhh.


We also have a 'show directives' option in this area, and at a quik glance, 
there were ref's to php5 but mostly what seem to be ignore directives
but did not see any for php7 at all.

Does that mean there is conflict of these (3) php instances....even though 
the version command from bash returns 7.0 ?
Or does anyone see something I am missing? I did run the Virtualmin setup 
script and it says no problems.




------------------------------------------------------------------------------
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.