{"id":328,"date":"2011-12-29T12:12:23","date_gmt":"2011-12-29T20:12:23","guid":{"rendered":"http:\/\/www.hongyu.org\/wordpress\/?p=328"},"modified":"2011-12-29T12:13:51","modified_gmt":"2011-12-29T20:13:51","slug":"start-apache-server-on-cygwin-1-7-and-windows-7","status":"publish","type":"post","link":"https:\/\/www.hongyu.org\/wordpress\/?p=328","title":{"rendered":"Start Apache server on Cygwin 1.7 and Windows 7"},"content":{"rendered":"<p>I installed the full Cygwin 1.7 package on Windows 7. When I try to start Apache server following the linux style by running command<br \/>\n<code>$ \/usr\/sbin\/apachectl2 start<\/code><br \/>\nI got &#8220;Bad system call&#8221; error.<\/p>\n<p>After some web search and trial and error, I finally got it work. Below are the steps that I&#8217;ve tried. Not sure whether all are necessary though. <\/p>\n<p>Step 1: right click the Cygwin terminal and select &#8220;Run as adminstrator&#8221;<\/p>\n<p>Step 2: create correct user and group info. Not sure whether this step is necessary.<br \/>\n<code>$ mkpasswd.exe -l<br \/>\n$ mkgroup.exe -l<br \/>\n<\/code><\/p>\n<p>Step 3: configure server by running command<br \/>\n<code>$ cygserver-config<\/code><\/p>\n<p>Step 4: start cygserver<br \/>\n<code>$ net start cygserver<\/code><\/p>\n<p>Step 5: start apache<br \/>\n<code>$ \/usr\/sbin\/apachectl2 start<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed the full Cygwin 1.7 package on Windows 7. When I try to start Apache server following the linux style by running command $ \/usr\/sbin\/apachectl2 start I got &#8220;Bad system call&#8221; error. After some web search and trial and error, I finally got it work. Below are the steps that I&#8217;ve tried. Not sure &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hongyu.org\/wordpress\/?p=328\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Start Apache server on Cygwin 1.7 and Windows 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/328"}],"collection":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=328"}],"version-history":[{"count":6,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/328\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/328\/revisions\/335"}],"wp:attachment":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}