Hello. I am attempting to restore the backups for my Virtualmin servers. After a fresh install of Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-101-generic x86_64) followed by a Virtualmin install (Virtualmin Pro active license) Operating system Ubuntu Linux 16.04.3 Webmin version 1.860 Usermin version 1.720 Virtualmin version 6.01-3 I run my check configuration: The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active .. Your system has 6.80 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB. BIND DNS server is installed, and the system is configured to use it.
Mail server Postfix is installed and configured.
Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.
Apache is installed.
The following PHP versions are available : 7.0.22 (/usr/bin/php-cgi7.0)
PHP-FPM support is available on this system.
Webalizer is installed.
Apache is configured to host SSL websites.
MySQL is installed and running.
ProFTPD is installed.
Logrotate is installed.
SpamAssassin and Procmail are installed and configured for use.
ClamAV is installed and assumed to be running.
The System and Server Status module is installed and checking on schedule.
Plugin DAV Login is installed OK.
Plugin Protected web directories is installed OK.
Using network interface enp1s0 for virtual IPs.
IPv6 addresses are available, using interface enp1s0.
Default IPv4 address for virtual servers is 192.168.0.11.
Default IPv6 address for virtual servers is fd00:a84e:3f83:bfb2:9aee:cbff:fe44:df4f.
External IP address for DNS records is set to 96.54.8.91, which matches the detected external address.
Both user and group quotas are enabled for home and email directories.
All commands needed to create and restore backups are installed.
Resource limits are supported and configured correctly.
The selected package management and update systems are installed OK.
Chroot jails are available on this system
.. your system is ready for use by Virtualmin.
So I create a new server. No warnings. No errors. Re-check configuration and the output is the same as above. .. your system is ready for use by Virtualmin. I restore the backup. No warnings no errors. But when I re-check configuration I get the following:
The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..
Your system has 6.80 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB.
BIND DNS server is installed, and the system is configured to use it.
Mail server Postfix is installed and configured.
Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.
Apache configuration errors were found :
AH00526: Syntax error on line 28 of /etc/apache2/sites-enabled/bimbosquad.com.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
.. your system is not ready for use by Virtualmin.
The following is the bimbosquad.com.conf:
SuexecUserGroup "#1004" "#1004"
ServerName bimbosquad.com
ServerAlias www.bimbosquad.com
DocumentRoot /home/bimbosquad/public_html
ErrorLog /var/log/virtualmin/bimbosquad.com_error_log
CustomLog /var/log/virtualmin/bimbosquad.com_access_log combined
ScriptAlias /cgi-bin/ /home/bimbosquad/cgi-bin/
ScriptAlias /awstats/ /home/bimbosquad/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwne$
Require all granted
AddType application/x-httpd-php .php
AddType application/x-httpd-php7.0 .php7.0
AddType application/x-httpd-php7.0 .php
Action application/x-httpd-php7.0 /cgi-bin/php7.0.cgi
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwne$
Require all granted
RemoveHandler .php
RemoveHandler .php7.0
php_admin_value engine Off
AuthName "bimbosquad.com statistics"
AuthType Basic
AuthUserFile /home/bimbosquad/.awstats-htpasswd
require valid-user
By my count the line that is causing the issue is: php_admin_value engine Off However, after researching it, I've learned that it's supposed to be there. When I check my site, I get a ERROR ESTABLISHING A DATABASE CONNECTION And when I delete the same server I noticed one error where removing the DAV directories, it says ... no Apache virtual host found! :
Deleting mail aliases ..
.. done
Removing DAV directives from website configuration ..
.. no Apache virtual host found!
Deleting Webmin login ..
.. done
Removing status monitor for website ..
.. done
Turning off virus filtering ..
.. done
Turning off spam and virus filtering ..
.. done
Deleting MySQL database bimbosquad, bimbosquad_wordpress ..
.. done
Deleting MySQL login ..
.. done
Disabling log file rotation ..
.. done
Deleting scheduled Webalizer reporting ..
.. done
Deleting virtual website ..
.. done
Deleting Apache log files ..
.. done
Removing from email domains list ..
.. done
Deleting DNS zone ..
.. done
Deleting home directory ..
.. done
Deleting administration user ..
.. done
Deleting administration group ..
.. done
Deleting server details for bimbosquad.com ..
.. done
Re-loading Webmin ..
.. done
Applying web server configuration ..
.. done
Re-starting DNS server ..
.. done
One other thing I tried was to restore the backup without creating a server in the first place. In addition, I clicked the "Delete files that are not in the backup" in the features and settings in the Restore Virtual Servers menu and I have a functioning site. Everything is there. However it seems completely disconnected to any of the Virtualmin tools. A "Check Connectivity" resulted in: Nameserver mismatch None of the nameservers match this system : ns4.no-ip.com. ns1.no-ip.com. ns5.no-ip.com. ns2.no-ip.com. ns3.no-ip.com. Verify with your DNS registrar that nameservers for the domain are set correctly. Website request failed 403 Forbidden Make sure your system's web server is running, that port 80 is not blocked by a firewall, and that the domain has a valid index page. Failed to ping IP address Ping of 96.54.8.91 did not response in 5 seconds Verify firewall and routing settings between your system and the Internet. Even though the site was visible and functioning. Any help sorting this out would be greatly appreciated!