Page 1 of 1

Error 404

PostPosted: 26. July 2019 11:54
by Giorgos
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

Re: Error 404

PostPosted: 26. July 2019 13:59
by Altrea
Question: if you change the listening port, what else do you need to do to request the Ressource properly?

Re: Error 404

PostPosted: 26. July 2019 15:19
by Nobbie
Giorgos wrote:The address: localhost/test.php


And which file path? Where did you store test.php?

Re: Error 404

PostPosted: 26. July 2019 16:03
by Giorgos
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.

Re: Error 404

PostPosted: 26. July 2019 16:50
by Altrea
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?

Re: Error 404

PostPosted: 26. July 2019 17:57
by Nobbie
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.

Re: Error 404

PostPosted: 27. July 2019 11:04
by Giorgos
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.

Re: Error 404

PostPosted: 29. July 2019 07:48
by Giorgos
Ok. Thanks thanks it's working now.