How to setup XAMPP so that page navigation works? - mysql

I downloaded Xampp to work with my Mern stack website. I want to make mods to code locally before I push code to actual website. How do I go about getting local server to work with already existing code?
For example, my page navigation doesn't work. When I click on about.html from home.html I get 404 error. I think my express.js file might need to be fixed. The .createserver() function is creating the actual web server with private key and cert.
I just want everything on the web server to work locally so I cant test my code.

Related

blog.html does not open with Live Server using Visual Studio Code

I'm trying to learn HTML, and I have a problem. When I try open my blog.html with live server I get an error code saying 'Cannot GET /blog.html/'.
I am not sure why, since my index.html page opens fine with live server.
I cannot include pictures, but inside my main folder for the website, I have index.html, blog.html and a folder for images.
Sometimes Live Server doesn't save files to the server.
Try restarting VS Code or editing the file and then saving, and then try again.

Tomcat Server wont load the Webpage

Im trying to deploy my WebApplication on a TomCat 9.0.11.
Now everything went good so far, the artifact was deployed into the ROOT directory, but the page just wont load, and doesnt shows up my index.html? Does anybody see the error here? If i forgot something please tell me so i can add the missing stuff.
EDIT: I want to run the server on Windows first, later on Debian. The website should also be accesibile trough example.com not f.e. example.com/app (or for Windows localhost not localhost/app)
TomcatConfiguration1
TomcatConfiguration2
Artifacts
ServerLog
TomcatServer after deployment
Trying to open the page
Greets
Lukas
i think project should be inside the webapp folder not inside root .Please attach log which can show us the context loading .
Or you can refer to this link:
Deploying just HTML, CSS webpage to Tomcat

How do I run and edit this github code?

I am new to developing but I want to experiment with making changes to this code my friend made for a site we are working on. This is the github link:
https://github.com/415DomSmith/ADA_Map
I've opened html files with chrome before to view them but that doesnt seem to work here. Opening views/landing.ejs with chrome doesnt render the whole site.
Here is a screenshot of the main folder contents:
main folder contents screenshot
So my question is what program can I use to render and make edits to the code? Can brackets do it? I've tried with no luck.
Thanks!
cd ${the root path of the project}
npm install
node app.js
visit localhost:3000 in the browser.
According to your description, I think you are new of nodejs and express.
If you want to understand it thoroughly, you must study below.
npm package
nodejs
express

Laravel Exception after page is refresh - OpenSSL extension is required

I am newbie in Laravel. I am using windows 7. I have downloaded and created a laravel project inside xampp inside htdocs folder.I have uncommented the statement,extension=php_openssl.dll inside php.ini. When I type the http://localhost/laravel/public/ in the browser, it shows the home page. When I refresh the page I get an exception like this.
When I remove the cookies and session variables in the browser settings, it will show the home page for once and if I refresh the page after,it shows the above page again.
NB: I have edited nothing in the project.I just tried to run the project
After uncommenting the line in the php.ini file, you must still activate it: left click on the WAMP server icon, then PHP-> PHP extensions and ensure that php_openssl is checked. If not, click it. WAMP will restart and it should be OK.

How to redirect all broken links to a standard error page?

I am using XAMPP on windows machine for designing my prototype.
Here is the question. Howe can I redirect all broken links on my webpage to a prefine error page?
Thank you
Open the httpd-multilang-errordoc.conf file. This is where all of the custom error pages and where they go are defined. Look for this (if you don't find it, add it)
ErrorDocument 404 /error404.html
Where the /error404.html is the name of your predefined error page. Place this file in the htdocs folder. Restart XAMPP service.
The other method involves adding this line to your virtual server configuration lines.
Additional Resources
Forum 1
Forum 2