Another cross platform alternative which is also very good is AMPPS. There is a version for both Mac and Windows. A WEB SERVER: XAMP: This is a Apache Web Server with a built in MySQL database and PHP server. Alternatively, Atom is excellent for both Windows and Mac.ģ. A TEXT EDITOR: Notepad++: A free text editor that allows you to code in a variety of different languages. PROTECTION: Kaspersky Online Scanner: A free virus scanner to keep your computer safe from malware when running your web server.Ģ. The web server then interacts with the PHP Pre-processor which creates an interface with the database using PHP instructions.ġ. The web server manages the interactions between the client's computer and the stored HTML pages and any other files required. XAMPP is ideal because it is free and a set of very useful software that allow you to run databases and PHP. When you are developing a site using an online tool this is not visible to the developer, however, if you are coding a database into your online business you will need to run a web server locally on your own machine. In the diagram below you can see the flow of instructions from the Client's computer accessing a website via a browser.ġ. In this course, we will learn about how websites work, what a web server is and how server side programming works. You can use an online WordPress App what allows you to enter data and format options and then it spits our the code to be hosted while more frequently people are using online web development services such as Square Space and Wix for fast development and hosting - just like this website! Software that can assist in web development for such as Dreamweaver is still being used but is not as frequently used as in the past. You can hard code it and upload your files directly to your hosting site. Once you have a better idea what the problem is, then you can try to figure out how to fix it.There are hundreds of ways of building a website. Note: none of the above will solve the problem, it's all directed toward finding out what the actual problem is. If it lists something else, Apache is running, but the configuration is weird. In the above, all three "httpd" processes are listening for TCP connections on "*:http" - that is, port 80 (http) on all of this computer's IP addresses. If it is running, make sure it's listening for network connections with sudo lsof -a -c httpd -i -sTCP:LISTEN $ sudo lsof -a -c httpd -i -sTCP:LISTENĬOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME If there are no "httpd" processes listed, Apache is not running, and you'll need to troubleshoot further to find out whether it's not starting at all, or starting and getting a fatal error. If bypassing the name lookup doesn't work, check to see whether Apache ("httpd") is running with the command ps -ax | grep 'ttpd' $ ps -ax | grep 'ttpd'Ĥ8917 ? 0:00.62 /usr/sbin/httpd -D FOREGROUNDĤ8924 ? 0:00.02 /usr/sbin/httpd -D FOREGROUNDĤ8927 ? 0:00.01 /usr/sbin/httpd -D FOREGROUND Do not change this entry.Īlso, try bypassing the name lookup by trying to reach " " and " If those work, Apache is running and "localhost" lookup is the reason you're getting errors. # localhost is used to configure the loopback interface If this is the problem, check your /etc/hosts file it should contain at least this: # (It's ok if it lists additional addresses like "fe80:1::1".) This has nothing to do with Apache. If the response doesn't list at least the addresses "::1" and "127.0.0.1", something is terribly wrong. So, first verify that "localhost" is being properly resolved with the command dscacheutil -q host -a name localhost - it should look like this: $ dscacheutil -q host -a name localhost We’re having trouble finding the site.") sounds like Firefox having trouble looking up the address for the name "localhost", which is really weird because "localhost" is pretty much built into the operating system. You need to do some troubleshooting to find out what's wrong.
0 Comments
Leave a Reply. |