OS = Ubuntu14.04
Vmin 4.17 was not installed using the install script, regretably and onto an new install of Webmin. After fixing some other stuff manually , mostly var/www path problems -
I get this error:
Failed to save enabled features : Apache configuration file /etc/apache2/mods-enabled/php5.conf contains SetHandler lines that prevent PHP from running with domain owner permissions. These lines must be removed.
Which makes sense because PHP is not working at all for any previews so far for the domains that use it.
I was messing with this file earlier but it cannot be edited in Webmins file manager , nor downloaded as its saying its not a real file or whatever, I guess for security reasons. I dont like using VI editor but I got Nano and still Im not sure why its faulting this , heres what I can tell is in the file from the nano editor. I thought for sure there was more in this file than I can see here when viewing it in the VI editor.
As the PHP execution mode for this domain I am testing, I have CGI wrapper selected because I wanted to see what the best method would be. mod_php also does not work and the other option I installed was one that I forget the name of at the moment but was a hybrid of the 2 that needed php5 installed. PHP version info also does not come up so there is a major problem here.
I do have .htaccess files in the public_html home folders for these domains, and from what I read, the execution mode selected could either ignore or use them depending on what one is used?
GNU nano 2.2.6 File: /etc/apache2/mods-enabled/php5.conf
[code]
<FilesMatch β.+.ph(p[345]?|t|tml)$β>
SetHandler application/x-httpd-php
<FilesMatch β.+.phps$β>
SetHandler application/x-httpd-php-source
# Deny access to raw php sources by default
# To re-enable itβs recommended to enable access to the files
# only in specific virtual host or directory
Order Deny,Allow
Deny from all
Deny access to files without filename (e.g. β.phpβ)
<FilesMatch β^.ph(p[345]?|t|tml|ps)$β>
Order Deny,Allow
Deny from all
Running PHP scripts in user directories is disabled by default
[ Read 30 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
==========================================================[/code]