Apache errors

I set up a LAMP to serve as Virtual Host for four different sites. I got the first one working, and then started proceeding to add the others. When I added the .conf files, I tried to restart apache, like so:

service apache2 restart

…and I received this:

/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)

Syntax error on line 4 of /etc/apache2/mods-enabled/fastcgi.conf:

FastCgiIpcDir /var/lib/apache2/fastcgi: access for server (uid 1000, gid 1000) f ailed: write not allowed

Action 'configtest' failed.

The Apache error log may have more information.

…fail!

Any and all help would be greatly appreciated!

Thanks

6 Replies

> The Apache error log may have more information

  • A syntax error and a write error? What does the Apache log say?

  • Does this happen for sites 2, 3 and 4? Have you tried them each separately (none of the other three running)?

  • What is on line 4 of /etc/apache2/mods-enabled/fastcgi.conf? Is it identical for all four config files?

MSJ

Did you run the "service" command as root? It looks like you're doing it as a normal user (uid 1000).

I actually didn't get as far as transferring the files over, was just setting it up (for the first time), so I was trying to get the Apache configured first. I was restarting apache because I had just run the "a2ensite" command on all the conf files and was restarting.

@sweh:

Did you run the "service" command as root? It looks like you're doing it as a normal user (uid 1000).

Wow, I forgot to run it as sudo. Ok, this time I ran as sudo, and received this:

  • Restarting web server apache2 Warning: DocumentRoot [/home/example_user/public/example.com/public] does not exist

apache2: Could not reliably determine the server's fully qualified domain name, using 96.126.122.61 for ServerName

… waiting Warning: DocumentRoot [/home/example_user/public/example.com/public] does not exist

apache2: Could not reliably determine the server's fully qualified domain name, using 96.126.122.61 for ServerName

Action 'start' failed.

The Apache error log may have more information.

[fail]

So fix the problem:

"DocumentRoot [/home/example_user/public/example.com/public] does not exist"

Thank you! I didn't even parse that correctly. Sorry, newbie error - found it, and was able to restart!

I appreciate all the help…

Chris

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct