![]() ![]() ![]() SSLCertificateFile: file ‘C:/Users/…/Desktop/Moodle/server/apache/conf/ssl.crt/server.crt’ does not exist or is empty Syntax error on line 107 of ‘C:/Users/…/Desktop/Moodle/server/apache/conf/extra/nf’ Can’t find messagefile ‘C:\Users\…\Desktop\Moodle\server\mysql\share\errmsg.sys’ I formated my x32 windows7 and changed to 圆4 windows7, but trying to run my copied Moodle server I was presented with these console errors: PARENTS: Want to keep your kids off myspace and facebook? Simply edit the hosts file on your machine to take them someplace safe, like maybe here: It should also be noted that you must create the appropriate nf entry (so edit the ServerName section of the VirtualHost declaration) local so that I always know that I am on my local machine. I personally prefer that all my hosts entries end in a. Simply follow this format to create your own personal URL (noob note: Just to make sure everyone is aware, this is like creating a DNS entry just for your individual box, no other computer looks at your hosts file…) ![]() In the hosts file you should see a couple of examples (including how your localhost was set up in the first place). This would allow you to not only give a more meaningful name to your development site, but also gives you the option of typing less (and isn’t being lazy what programming is all about?)ĭefault hosts file location in XP: C:\WINDOWS\system32\drivers\etc\hosts You just have to manually type “ in your browser instead of clicking the Admin button in the console.įor people that don’t like “localhost:8080” you could simply set up an entry in your hosts file. Mostly, the console quirks are just annoyances. The “localhost” string affects the URL that launches when you click the Admin button for the Apache server, and the “80” string only affects what displays in the Console’s output. On the “ you can squeeze three more positions out of it, so you can add something like “:99”, but that’s it. It’s risky to edit the executable if you don’t know what you’re doing. C code uses a NULL character (0x00 in hex) to terminate strings, so you *must* leave the final one as a separator before the next string. ![]() There are enough null characters available that you can replace “80NULLNULL” with “809NULL”, but that doesn’t get you to 8080. In Windows, when viewing xampp-control.exe in a hex editor, “ and “80” are hard-coded as null-terminated strings. Let me know if this works for you I’m just starting to mess with XAMPP on Windows (I’ve been using it on Linux for a while). Then, you should be able to start Apache successfully through the XAMPP control panel. Search for “ServerName localhost:443”, change to “ServerName localhost:4499”.Search for “Listen 443”, change to “Listen 4499”.Search for “ServerName localhost:80”, change to “ServerName localhost:8080”Ĭ:\xampp\apache\conf\extra\nf.Search for “Listen 80”, change to “Listen 8080”.So, through a bit of searching on the interwebs, I found out what exactly needs to be changed to allow XAMPP to co-exist with IIS configured to run on Port 80, and Apache (in my case) to run on Port 8080 (and SSL running on Port 4499): I initially tried merely modifying the nf file located (on my system) at C:\xampp\apache\conf, but the service would still not run. But, if you’re like me, and have IIS already installed and running, for whatever reason, you’ll probably want to configure XAMPP to run Apache on a different port. Thanks for visiting!įound out the hard way that the default XAMPP install for Windows will attempt to install Apache as a service configured to run on Port 80 (no surprise, and probably good default behavior). However, if you are still looking to run XAMPP specifically, or just run an Apache instance along with IIS, check out the instructions below. Through WPI, you can choose to install PHP directly within IIS (so that IIS can serve both ASP.NET and PHP applications on port 80, for example) and you can also have a ton of applications installed and configured automatically for you, such as Drupal, WordPress, and Moodle (among many others). Update: This application will help you track down which applications are using which ports on Windows – very helpful for debugging if the steps below don’t solve your problem, or if IIS is not the only application answering on port 80: Īlso, if you don’t specifically need all the features of XAMPP, but would like to run PHP/MySQL applications through IIS, give Web Platform Installer a try. ![]()
0 Comments
Leave a Reply. |