Apache Ulimit Error Setting Limit
Contents |
Start here for a quick overview of the site Help Center Detailed answers to ulimit error setting limit (operation not permitted) any questions you might have Meta Discuss the workings and policies usr sbin apache2ctl 87 ulimit error setting limit operation not permitted of this site About Us Learn more about Stack Overflow the company Business Learn more about ulimit error setting limit (invalid argument) hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for
Mysql Ulimit
system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top apache2ctl: 87: ulimit: error setting limit (Operation not permitted) up vote 11 down vote favorite 6 tomcat ulimit The server is running fine -- or at least it seems to -- but there's always the following error: apache2/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) It happens with Apache 2.2.22-9 on Debian Wheezy. # apache2ctl configtest /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) Syntax OK # service apache2 reload [....] Reloading web server config: apache2/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) . ok # service apache2 restart [....] Restarting web server: apache2/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) ... waiting /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) . ok # service apache2 status Apache2 is running (pid 32045). apache-2.2 debian debian-wheezy share|improve this question edited Nov 29 '12 at 13:42 Hangin on in quiet desperation 88k9113199 asked Aug 5 '12 at 12:02 Pascal Polleunus 3532313 1 Have a look at what you have in /etc/security/limits.conf and /etc/security/limits.d. It seems that you have APACHE_ULIMIT_MAX_FILES (see
87: ulimit: error setting limit (Operation not
Ulimit: Error Setting Limit (operation Not Permitted) Varnish
permitted) graham on 26-11-2013 04:19 To change this, I first checked
Setting Ulimit Failed. See Readme.debian For More Information
the ulimit for root by typingulimit -awhich among many results gave me the following line:open files (-n) http://serverfault.com/questions/414420/apache2ctl-87-ulimit-error-setting-limit-operation-not-permitted 65535So then I went to edit file /ect/security/limits.conf and added the following lines:root soft nofile 65535root hard nofile 65535Then I relogged and was able to fire off Apache without the error message. graham on 26-11-2013 04:21 http://wordgraphs.com/faq/18100/apache2-usr-sbin-apache2ctl--87--ulimit--error-setting-limit--Operation-not-permitted- Post an answer Do you have a solution to this problem, or want to comment on it? Other users will appreciate your help! Your answer or comment: Show formatting hints HTML is disallowed, but in your text you can use the following markup [code][/code] for a block of code [tt][/tt] for inline code [link]link href|link anchor[/link] for links [b][/b] for bold text + Ask a question If you have a technical question related to programming and computers, ask it here. Other users will help you solve it! Unanswered questions Share your knowledge by helping others solve their problems Wordgraphs © 2013
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers http://stackoverflow.com/questions/15916197/apache2-wont-start-ulimit-error or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it https://ubuntuforums.org/showthread.php?t=1981187 only takes a minute: Sign up Apache2 won't start, ulimit error? up vote 5 down vote favorite Here's the log from trying to start apache2: * Starting web server apache2 /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) (13)Permission error setting denied: make_sock: could not bind to address [::]:80 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. I'm new to running my own Apache. Any idea what's causing this failure? apache apache2 share|improve this question asked Apr 10 '13 at 3:04 kylepixel 3116 Can you provide the output of the following command please: sudo su wwwdata -c error setting limit 'ulimit -a' Replace wwwdata with the correct name of the service user if it is different. –Aaron Mason Apr 10 '13 at 3:07 Hmm, I got "su: invalid option -- 'a'" and removed the flag and got "Unknown id: ulimit". –kylepixel Apr 10 '13 at 3:13 Sorry, put the -c in the wrong spot. Try again, I've edited the answer. –Aaron Mason Apr 10 '13 at 3:37 Still getting "su: invalid option -- 'a'" –kylepixel Apr 10 '13 at 3:57 Edited again, sorry about that. I've put the command and its option in single quotes, this should work now. –Aaron Mason Apr 10 '13 at 4:48 | show 2 more comments 1 Answer 1 active oldest votes up vote 10 down vote Use sudo for starting apache server, the issue if due to permissions : sudo service apache2 start share|improve this answer answered Apr 10 '13 at 5:04 Ankit 1,43331648 3 I did use sudo. The error persists. –kylepixel Apr 11 '13 at 23:43 Please check if port 80 is already in use, search for netstat command on net. –Ankit Apr 12 '13 at 12:14 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email disca
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] 12.04 Upgrade - Apache Errors Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 13 Thread: 12.04 Upgrade - Apache Errors Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 16th, 2012 #1 grpace View Profile View Forum Posts Private Message Spilled the Beans Join Date Jun 2010 Location Panama City, FL Beans 16 DistroUbuntu 10.04 Lucid Lynx 12.04 Upgrade - Apache Errors I have just upgraded from 10.04 to 12.04. The upgrade has killed my installation of Apache. The errors I get are: ----- * Starting web server apache2 /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) [Wed May 16 09:04:14 2012] [warn] NameVirtualHost *:80 has no VirtualHosts (13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. ----- 1st) I had Apache working fine on 10.04. 2nd) I did not have any Virtual Hosts defined. 3rd) Why did the OS Upgrade even mess with the Apache Server ??? What has happened here ?? How can I fix it ??? Thank you in advance. grpace Last edited by grpace; May 16th, 2012 at 05:53 PM. Adv Reply May 16th, 2012 #2 grpace View Profile View Forum Posts Private Message Spilled the Beans Join Date Jun 2010 Location Panama City, FL Beans 16 DistroUbuntu 10.04 Lucid Lynx Re: 12.04 Upgrade - Apache Errors Look... This 12.04 is an LTS... Long Term Support... The installation of this killed my ser