The first is to place it within the default DocumentRoot. Do I have too many subdirectories? Why isn't the file being found? It is there. To have Apache serve your own web site content there are two main options. To do this, open your preferred text editor and name the file. If the file doesn’t exist, you’ll need to create one. However, you’ll find it via Applications > Xampp > xamppfiles > htdocs. If you are using a macOS, the file will still be in the htdocs folder. Web Servers A Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers HTTP clients. You can change the location of document root by modifying nfand restarting the server. In other words, localhostis mapped to xampp/htdocs, so index.htmlis at localhostitself. I tried copying the main site folder to htdocs, and then copying the path to the file I want to run in front of the localhost in Firefox, but it gave me file not found: htaccess file there: The location of the. htdocsis your default document-root directory, so you have to use localhost/index.htmlto see that html file. So, I am attempting for the first time to setup XAMMP and then run my html files (site) on localhost, so I can see what they look like before ftping everything to HostGator and putting it live. I don't want to have to FTP my files to HostGator every time I want to test the includes. They work fine where they are, but they all have menus that are JavaScript and could be kept in a separate file. Look at your nf (Apache configuration file) and look if the line that says LoadModule php5module isnt commented with sign. I have a site directory for html (dreamweaver CSS3) with lots of subdirectories that contain HTML files for a number of drop down menus. If the page only shows the code thats because the PHP interpreter isnt running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |