Hi all, new around here and with Virtualmin in general.
I'd been working with troubleshooting a WordPress site hosted on our server (empty "fatal error" message upon plugin activation), and when looking around the Virtualmin admin panel, saw that a bunch of packages were listed for upgrade, so I (rather foolishly) selected all of them and clicked on "Update selected".
A little while later, I saw some messages related to apache2 (which was on version 2.2.22 at the time), dpkg and missing dependencies, and sure enough, saw all of the hosted websites return a 500 error, or not load at all.
Trying to frantically fix the issue, I ended up uninstalling apache, then trying to downgrade to the previous version I had (apt insisted on getting 2.4.10), then gave up and installed 2.4.10 again, then installed the modules apache2ctl complained about until the sites worked.
Now, I'm getting all sorts of permissions issues, related to suexec not being properly configured. However, I made sure to install apache2-suexec-custom, edited /etc/apache2/suexec/www-data to point to /home instead of /var/www and restarted apache, but Virtualmin's config check still complains about this and when testing the sites, PHP runs as www-data instead of each virtual server's user.
Can anyone help me sort this out, please? I'm running Virtualmin 4.16.gpl in Debian Linux 7.6
Howdy,
Hmm, I'm wondering if maybe apt on your server was incorrectly pointing to the stable Debian sources, rather than pointing to Wheezy specifically.
Debian 8 just became stable, I'm wondering if the package upgrades that were performed upgraded it to Debian 8. Can you take a peek at /etc/issue, and see what version of Debian it thinks is there?
-Eric
Hi, and thanks for the quick reply. Sure, here's the output of # cat /etc/issue, confirming what I mentioned earlier:
Howdy,
Hmm, what is the output of this command:
dpkg -l 'apache2*'
Here you go (proof of the mess I've gotten myself into):
Howdy,
It looks like although /etc/issue still shows Debian 7, you're running at least some of the packages from Debian 8. That Apache 2.4.10-10 package is from Debian 8, for example.
What are the contents of your /etc/apt/sources.list file?
-Eric
(Maybe the added 'stable' repos were the ones that screwed everything up.)
Howdy,
Yeah I do suspect some packages from Debian 8 were pulled in, likely from that stable repository you mentioned... that would explain the issue you're seeing.
Can you share the exact error that you're seeing with Apache?
Also, after making the config changes that you made, did you by chance restart Apache?
-Eric
Basically, there's a myriad of errors (and yes, I restart apache after every attempt to fix something):
Old sites that were configured to use Apache 2.2 with FCGI (at least according to virtualmin's panel), and to work under their respective virtual server's users, are no longer doing so. They're being served under www-data, and run into permissions issues because of that. So, suexec seems to be disabled or at least not configured properly.
At least one new site (with basically the same configuration as a similar old one, as in, I copy-pasted it, edited it to point to the site) fails to work at all, outputting raw PHP to the browser instead of interpreting it.
I think that what I'd like is to get them all working under a default configuration (which would be the same as the one virtualmin sets by default), and then configure each site according to its needs.