Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 17908  / 1 Year ago, tue, february 28, 2023, 3:21:59

I have installed apache2 in my ubuntu 12.4 using sudo apt-get install apache2, now i am not able to start the server, when i use service apache2 start, following things were displayed.



    bharathkumar@hkbharath:~$ service apache2 start
* Starting web server apache2
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
mktemp: failed to create directory via template `/var/lock/apache2.XXXXXXXXXX': No such file or directory
chmod: missing operand after `755'
Try `chmod --help' for more information.
[fail]


i tried uninstalling and reinstalling apache2, but still getting the same thing, please help me to start my apache2 server.



Thanks


More From » server

 Answers
7

I had the same problem running on a virtual server. Turns out that /var/lock is a symbolic link to /run/lock, which didn't exist. I solved it like this:



sudo mkdir /run/lock



Then restart Apache:



sudo service apache2 restart



Hope it works for you.


[#30800] Wednesday, March 1, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
icielight

Total Points: 158
Total Questions: 92
Total Answers: 93

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
icielight questions
;