These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for 500 error and log entry: "Could not open config file /etc/apache2/suexec/www-data" on the new forum.
I'm trying to setup my first wordpress site, but am just getting a 500 message in the browser.
I get this error in /var/log/apache2/suexec.log.
[2015-06-11 07:45:18]: User www-data not allowed: Could not open config file /etc/apache2/suexec/www-data
It is accurate that the file doesn't exist. If I create a blank file at that location, it reports the following.
[2015-06-11 07:48:43]: Could not read docroot from /etc/apache2/suexec/www-data
I'm a bit confused as I thought suexec should be executing the site as the user of the site, not the apache user.
Any idea what I have setup wrong?
Thanks!
Howdy,
What distro/version are you using?
And what's the output of this command:
dpkg -l 'apache2*'
Thank you
Just found this and thought I'd toss it in for good measure.
I see some examples around the internet with
-D AP_USERDIR_SUFFIX="public_html"
so I'm looking into what that is about to see if it is related since I don't have it.I had to create a file /etc/apache2/suexec/www-data with the following content. In the past this has been created for me. Curious...
Howdy,
That file is created when installing the "apache2-suexec-custom" package (which your output above shows is installed).
After installation, Virtualmin then updates it to point to the proper location (/home, rather than /var/www).
That's very curious that it's missing! I'm not sure why that would occur.
After you created the file above, are things working properly for you now?
-Eric
Yep, everything is working properly. It actually happened on two servers I was setting up at the same time. I'll review my procedure next time to see if I goofed and accidentally have something that includes that in a delete or something. In the end it gave me an excuse to understand suexec better.
-Josiah