Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
apache2: Syntax error on line 265 of /etc/apache2/apache2.conf: Include directory '/var/www/mods-enabled' not found
Action 'configtest' failed.
The Apache error log may have more information.
failed!
I am almost certain that I didn't touch this file/folder. And for some odd reason, my apache server is still up and running, even though it gives a error at boot-up, as well as when attempting to restart the service.
I went to the directory, and can confirm that this folder is not there. Not sure that it ever was. I was able to located it in /etc/apache2. Should I modify the file to represent this, or is there something else going on, causing the issue?
Apache2 uses this directory to determine which extensions, or "mods," are enabled. Descriptive title! Usually this directory contains a bunch of symbolic links pointing to corresponding items in the mods-available directory. To enable a mod, symlink it from mods-available to mods-enabled. If that directory is missing, no mods will be enabled. You need these links in place, for example, if you're going to use PHP. Here's mine:
I am getting the same error when I try to restart apache. This error started appearing when I restarted the server. I'm not sure what the problem is. Why is apache looking for /mods-enabled in /var/www? Shouldn't it look for that directory in /etc/apache2?
I am getting the same error when I try to restart apache. This error started appearing when I restarted the server. I'm not sure what the problem is. Why is apache looking for /mods-enabled in /var/www? Shouldn't it look for that directory in /etc/apache2?
Perhaps you have a wrong ServerRoot in apache2.conf. Change it to
I got it! My ServerRoot is set to /var/www, so apache looks in /var/www for everything. When it tries to include mods-enabled, it looks in /var/www as well. I specified the full path in apache2.conf to look in /etc/apache2 and that fixed the problem.
Code:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.