logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Change the port and directory Apache 2.4.3 on Win XP SP3 ?
Author
Tamara-IT



Joined: 03 Sep 2012
Posts: 3

PostPosted: Mon 03 Sep '12 17:36    Post subject: Change the port and directory Apache 2.4.3 on Win XP SP3 ? Reply with quote

Hello!
I have installed Apache 2.4.3 on my pc, I'd like to install also PHP, MySQL & PHPMyAdmin.
Apache works, but I need some personalization.
I need to change the port (80 to any) and the directory in which to store my test page in (from c:/Apache24/htdocs to d:/Documents/webtest).
I tried to change the parameters in httpd.conf, but localhost gives back a blank page.
Any hint?
Thanks!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 04 Sep '12 16:52    Post subject: Reply with quote

For changing the port search for "Listen 80" in your httpd.conf and change the 80 to what ever port you like.

For installing PHP, and PHPMyAdmin see http://www.apachelounge.com/viewtopic.php?t=2394
Back to top
Tamara-IT



Joined: 03 Sep 2012
Posts: 3

PostPosted: Thu 06 Sep '12 9:48    Post subject: Reply with quote

ok, evwrything seems to work!
so, the WAMP must be accessible only from the network, so I put the following .htaccess in the htdocs, as in the tutorial:
Code:
Order Deny,Allow
Deny from All
Allow from 192.168 127.0.0.1

If I want to deny acces from the nerwork I wipe away 192.168, right?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 06 Sep '12 12:59    Post subject: Reply with quote

Yes, if you use mod_access_compat. The Apache 2.4 style for Auth is different to 2.2
sse http://httpd.apache.org/docs/current/howto/auth.html and look for the require

Easier would be to change the Listen

to Listen 127.0.0.1:80
or a different port than 80 Wink than apache is only available from the computer it is running on.
Back to top


Reply to topic   Topic: Change the port and directory Apache 2.4.3 on Win XP SP3 ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache