Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Apache errors
PostPosted: Mon Jul 21, 2014 8:41 pm 
Offline
Senior Newbie

Joined: Mon Jul 21, 2014 8:10 pm
Posts: 5
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


Top
   
 Post subject: Re: Apache errors
PostPosted: Tue Jul 22, 2014 3:44 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Quote:
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


Top
   
 Post subject: Re: Apache errors
PostPosted: Tue Jul 22, 2014 4:02 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Did you run the "service" command as root? It looks like you're doing it as a normal user (uid 1000).

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject: Re: Apache errors
PostPosted: Tue Jul 22, 2014 4:07 pm 
Offline
Senior Newbie

Joined: Mon Jul 21, 2014 8:10 pm
Posts: 5
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.


Top
   
 Post subject: Re: Apache errors
PostPosted: Tue Jul 22, 2014 4:09 pm 
Offline
Senior Newbie

Joined: Mon Jul 21, 2014 8:10 pm
Posts: 5
sweh wrote:
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]


Top
   
 Post subject: Re: Apache errors
PostPosted: Tue Jul 22, 2014 4:23 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
So fix the problem:

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

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject: Re: Apache errors
PostPosted: Tue Jul 22, 2014 6:27 pm 
Offline
Senior Newbie

Joined: Mon Jul 21, 2014 8:10 pm
Posts: 5
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group