Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I am extremely new to linux but I have the basic concepts down, I have a problem with apache2 on start, The error logs strangely show nothing related to what it says, all it says is:
* Starting web server apache2 /usr/sbin/apache2ctl: 139: /usr/sbin/apache2ctl: /etc/apache2: Permission denied
Action 'start' failed.
The Apache error log may have more information.
But as I said the error logs show nothing related. At one point it said there was no favicon.ico file which is not relevant and I fixed that. If you need anything else I would be glad to supply it, Also it may have to do with the whole httpd.conf thing which really confuses me any help on that too would be greatly appreciated.
Thanks for reading ,
bengalman211
Last edited by bengalman211; 07-02-2013 at 10:15 AM.
No command 'httpd' found, did you mean:
Command 'xttpd' from package 'xtide' (universe)
Command 'http' from package 'httpie' (universe)
httpd: command not found
I am using linux mint 14 MATE
When I start apache2 the error log returns the following
[Thu Jun 13 11:25:17 2013] [notice] caught SIGTERM, shutting down
Notice that date is completely off it makes no sense so basically it isn't returning anything
I MIGHT be looking at the wrong file could you point me to where it might be?
Last edited by bengalman211; 07-05-2013 at 11:37 AM.
(..) I even changed the permission of the files to my user
That's nice but it's wrong. I suggest you restore ownership and access rights before doing anything else because you're unnecessarily complicating things that way.
Has Apache ever worked or is this your first attempt at installing?
What method did you use to install? Did you use something like tasksel from the Software Manager? I know in Ubuntu and some of its derivatives you can install LAMP with a single command which includes any dependencies. What are the user:group in the /var/www directory/sub-directories?
Both of the commands you suggested to run return the following:
*************-Laptop ~ $ apache2ctl -t
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
/usr/sbin/apache2ctl: 171: /usr/sbin/apache2ctl: /etc/apache2: Permission denied
Action '-t' failed.
The Apache error log may have more information.
*************-Laptop ~ $ apache2ctl -S
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
/usr/sbin/apache2ctl: 171: /usr/sbin/apache2ctl: /etc/apache2: Permission denied
Action '-S' failed.
The Apache error log may have more information.
Thanks for your support
@unSpawn
I have restored ownership thanks for telling me this....I was a little shakey for doing that Although I thought it was right because when I start apache2 one of the errors that came up was a Permission Denied error so I assumed Well if I give myself ownership That should fix it, I was wrong Thanks
@yancek
This is my first time installing it and I think I only installed Apache2....with
I guess that you are trying to start Apache with non root priviledge .
Try the below commands
#sudo service apache2 restart
#sudo apache2ctl -t
****************-Laptop ~ $ sudo service apache2 restart
[sudo] password for ********:
/usr/sbin/apache2ctl: 161: /usr/sbin/apache2ctl: /etc/apache2: Permission denied
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.