{"id":3111,"date":"2016-02-09T02:52:21","date_gmt":"2016-02-09T02:52:21","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3111"},"modified":"2016-02-09T02:52:21","modified_gmt":"2016-02-09T02:52:21","slug":"3111-2","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/3111-2\/","title":{"rendered":"Fixing the error &#8220;cannot create \/dev\/null: Permission denied&#8221;, &#8220;Operation not permitted&#8221; restarting Apache"},"content":{"rendered":"<p>If you try to restart apache without sudo, like this:<\/p>\n<pre lang=\"bash\">\nsshuser@makingbeehives:~$ \/etc\/init.d\/apache2 restart\n<\/pre>\n<p>You may receive the following error message:<\/p>\n<pre lang=\"bash\">\n\/etc\/init.d\/apache2: 229: \/etc\/init.d\/apache2: cannot create \/dev\/null: Permission denied\n\/usr\/sbin\/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)\n[Mon Feb 08 21:49:45 2016] [error] VirtualHost 173.255.224.150:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results\nSyntax OK\n   ...fail!\n<\/pre>\n<p>The solution is to simply sudo the command:<\/p>\n<pre lang=\"bash\">\nsshuser@makingbeehives:~$ sudo \/etc\/init.d\/apache2 restart\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you try to restart apache without sudo, like this: sshuser@makingbeehives:~$ \/etc\/init.d\/apache2 restart You may receive the following error message: \/etc\/init.d\/apache2: 229: \/etc\/init.d\/apache2: cannot create \/dev\/null: Permission denied \/usr\/sbin\/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) [Mon Feb 08 21:49:45 2016] [error] VirtualHost 173.255.224.150:80 &#8212; mixing * ports and non-* ports with a NameVirtualHost &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.garysieling.com\/blog\/3111-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing the error &#8220;cannot create \/dev\/null: Permission denied&#8221;, &#8220;Operation not permitted&#8221; restarting Apache&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[49,79,196,338,559],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3111"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=3111"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3111\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}