Error 404

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error 404

Postby Giorgos » 26. July 2019 11:54

I've been trying to run XAAMP on a company PC with win7(i do have admin rights) although apache appears ro be running when I enter the file address it can't find it. I have changed the ports from 80 and 443 to 90 and 450 respectively and their conf files. The address: localhost/test.php
Giorgos
 
Posts: 4
Joined: 26. July 2019 11:45
XAMPP version: 7.3.7
Operating System: Win10/win7

Re: Error 404

Postby Altrea » 26. July 2019 13:59

Question: if you change the listening port, what else do you need to do to request the Ressource properly?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Error 404

Postby Nobbie » 26. July 2019 15:19

Giorgos wrote:The address: localhost/test.php


And which file path? Where did you store test.php?
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Error 404

Postby Giorgos » 26. July 2019 16:03

Altrea wrote:Question: if you change the listening port, what else do you need to do to request the Ressource properly?

I'm not sure, I changed the port from the control panel then in XAAMP/apache/conf/httpd.conf the lines with "Listen 80","ServerName localhost:80" and in XAAMP/apache/conf/extra/httpd-ssl.conf the lines with "Listen 443","<VirtualHost _default_:443>" and "ServerName www.example.com:443".
Nobbie wrote:And which file path? Where did you store test.php?

It's directly in htdocs for testing purposes.
Giorgos
 
Posts: 4
Joined: 26. July 2019 11:45
XAMPP version: 7.3.7
Operating System: Win10/win7

Re: Error 404

Postby Altrea » 26. July 2019 16:50

If you change the port you need to append it so every url like so: http://localhost:90/filename.ext

Pretty ugly, isn't it?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Error 404

Postby Nobbie » 26. July 2019 17:57

Giorgos wrote:I have changed the ports from 80 and 443 to 90 and 450 respectively and their conf files. The address: localhost/test.php


See Altreas posting about ports change.

What i still dont understand: why did you change ports? Did you change DUE TO the Error 404 (because then there must be also a different problem), or did you change BEFORE testing your first script? And if you changed the port immediately: WHY??

I thought you changed it because of Error 404, but maybe i got it wrong. Nevertheless: DONT CHANGE APACHE PORTS. That is always poor, you should not change Apache default Ports. Tell us the reason WHY you changed ports and we will find a better solution.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Error 404

Postby Giorgos » 27. July 2019 11:04

Altrea wrote:If you change the port you need to append it so every url like so: http://localhost:90/filename.ext

Pretty ugly, isn't it?

Oh, thanks I'll check it on Monday. pretty inconvinient indeed.

[quote=Nobbie] why did you change ports?Did you change DUE TO the Error 404 (because then there must be also a different problem), or did you change BEFORE testing your first script? And if you changed the port immediately: WHY??[/quote]
Well, port 80 was occupied hence apache wasn't running at all, changing the port got it to run but then got 404. The guy responsible for it won't tell my be what, just he's not gonna give them to me.
Giorgos
 
Posts: 4
Joined: 26. July 2019 11:45
XAMPP version: 7.3.7
Operating System: Win10/win7

Re: Error 404

Postby Giorgos » 29. July 2019 07:48

Ok. Thanks thanks it's working now.
Giorgos
 
Posts: 4
Joined: 26. July 2019 11:45
XAMPP version: 7.3.7
Operating System: Win10/win7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 133 guests