{"id":1167,"date":"2018-01-19T19:22:31","date_gmt":"2018-01-19T19:22:31","guid":{"rendered":"http:\/\/goofy-trucks.flywheelsites.com\/apache-on-win32-page-3\/"},"modified":"2018-01-19T19:24:35","modified_gmt":"2018-01-19T19:24:35","slug":"apache-on-win32-page-3","status":"publish","type":"post","link":"https:\/\/phpbuilder.com\/apache-on-win32-page-3\/","title":{"rendered":"Apache on WIN32 Page 3"},"content":{"rendered":"<div class=\"phpbuilder-content\">\n<div class=\"phpbuilder-meta\">\n<div class=\"\">By Brian Moon<\/div>\n<div class=\"\">on July 30, 2000<\/div>\n<\/p><\/div>\n<div id=\"overflow-content\">\n<div class=\"articleHeader\">\nRunning Apache on NT<\/div>\n<div class=\"articlePara\">\nIf you are on NT you will want to install Apache as a<br \/>\nservice.  To do this select Start, Programs, Apache, Install Apache As<br \/>\nService.  Now Apache can be started and stopped using the &#8216;Services&#8217;<br \/>\nControl Panel Applet.  Unless you have a good reason, I would suggest setting this to be started manually.  To do this<br \/>\ngo to Control Panel and select Services.  Select the Apache service<br \/>\nand click &#8216;Startup&#8217;.  Set &#8216;Start Up Type&#8217; to &#8216;Manual&#8217;.  This will<br \/>\nmake you have to start Apache when you need it.  The good thing is<br \/>\nthat it will shut down when NT does.  You will not see<br \/>\nany Apache windows with this setup.<\/div>\n<div class=\"articleHeader\">\nRunning Apache on Windows 9x<\/div>\n<div class=\"articlePara\">\nIf you are using Windows 9x, I would suggest downloading the Apache<br \/>\nManager for Windows from my website (<a href=\"http:\/\/brian.threadnet.com\/apmgr.html\" target=\"_blank\">http:\/\/brian.threadnet.com\/apmgr.html<\/a>).<br \/>\nIt stays in the system tray and hides all the console windows that Apache<br \/>\ncreates.  It will allow you to start, stop and restart Apache without<br \/>\nworrying about command line mess.  If you do not want to use Apache<br \/>\nManager, you can start Apache by selecting Start, Programs, Apache Web Server,<br \/>\nApache Server.  This will create a console (MS-DOS) window.<br \/>\n<strong>DO NOT CLOSE THIS WINDOW<\/strong>.  To stop Apache you will need to<br \/>\nopen an MS-DOS window, switch to your Apache folder (<tt>'c:apache'<\/tt>) and type:<\/div>\n<pre>apache -k shutdown<\/pre>\n<div class=\"articlePara\">It may take a moment for the Apache console window to close.  This<br \/>\nensures a proper shutdown of all all the threads and properly closes all the<br \/>\n.conf and .log files.  Now you know why I wrote Apache Manager.<\/div>\n<div class=\"articleHeader\">\nTesting The System<\/div>\n<div class=\"articlePara\">\nI do recommend you to run the console version of Apache at least once to be<br \/>\nsure all is running well.  The only way to get output from Apache is<br \/>\nthrough the console window or the error.log file.  The error log can be<br \/>\nfound under the logs folder in the Apache install folder.  In our case<br \/>\n<tt>'c:apachelogserror.log'<\/tt>.<\/div>\n<div class=\"articlePara\">\nOk, start Apache by selecting Start, Programs, Apache Web Server, Apache<br \/>\nServer.  If all is ok, you will see something like the following in the<br \/>\nconsole window:<\/div>\n<div class=\"articlePhpEx\">\n<font face=\"courier\"><code><span style=\"color: #000000\"><\/p>\n<p>Apache\/1.3.4\u00a0(Win32)\u00a0running...<br \/>\n<br \/><\/span><br \/>\n<\/code><\/font><\/div>\n<p><\/p>\n<div class=\"articlePara\">\nIf you do not see that and the window disappears quickly you will need to run it from<br \/>\nan MS-DOS window.  You will need to open an MS-DOS window, switch to your<br \/>\nApache folder (<tt>'c:apache'<\/tt>) and type &#8216;apache&#8217;.  See what error message is<br \/>\ngiven.  If it a parse error in the conf file, you will need to correct<br \/>\nit by editing httpd.conf and running Apache again.<\/div>\n<div class=\"articlePara\">\nSo, now it is all running.  To test your system, open a browser and<br \/>\ntype: <tt>http:\/\/localhost\/<\/tt>.  You should see a page from<br \/>\nApache congratulating you.  If you do not, one thing to check is that you have a file<br \/>\nin your windows directory called hosts.sam.  If it is not there, create it.<br \/>\nIn that file put:<\/div>\n<div class=\"articlePhpEx\">\n<font face=\"courier\"><code><span style=\"color: #000000\"><\/p>\n<p>localhost\u00a0127.0.0.1<br \/>\n<br \/><\/span><br \/>\n<\/code><\/font><\/div>\n<\/div>\n<p><\/p>\n<div style=\"float: left; padding:15px; color:#17AAF3\">\n<div style=\"float:left; padding:2px;\"><a class=\"paginationPageLink\" href=\"moon199907164658.html?page=2\">\u00ab Previous Page<\/a><\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"moon19990716.html\">1<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"moon199907164658.html?page=2\">2<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"background-color:#B6E5FC; font-size:16px; margin-top:1px; padding:1px 4px 1px 4px; color:#000; font-style:bold; float:left;\">3<\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"moon19990716fdb0.html?page=4\">4<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"moon19990716af4d.html?page=5\">5<\/a> <\/div>\n<div style=\"float:left; padding:2px;\"><a class=\"paginationPageLink\" href=\"moon19990716fdb0.html?page=4\">Next Page \u00bb<\/a><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>One of the most commonly asked questions on the PHP3 mailing list is &#8220;How do I set up PHP on my Windows<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1167","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/comments?post=1167"}],"version-history":[{"count":1,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1167\/revisions"}],"predecessor-version":[{"id":3077,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1167\/revisions\/3077"}],"wp:attachment":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/media?parent=1167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/categories?post=1167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/tags?post=1167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}