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: Unable to find my directory on apache server
Author
Cooldude



Joined: 18 Sep 2015
Posts: 3
Location: United Kingdom, Lymington

PostPosted: Thu 12 Nov '15 22:19    Post subject: Unable to find my directory on apache server Reply with quote

Hi,

I am running on macbook air Apache 2.4.16 version with php and mysql and am unable to locate my directory :-

When I type in http://localhost/ in the url - the message on the webpage says "It Works !"

But.............

When I type under the url

http://localhost/username/

The following page is displayed :-

Not Found
The requested URL /username/ was not found on this server.

What do I need to do in order to see my directory ?

Kind Regards
Back to top
James Blond
Moderator


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

PostPosted: Fri 13 Nov '15 13:06    Post subject: Reply with quote

You need to enable mod_userdir ( if you haven't done yet)

But then the url would be http://localhost/~username/

see https://httpd.apache.org/docs/2.4/mod/mod_userdir.html

if you still have a question please ask again.
Back to top
Cooldude



Joined: 18 Sep 2015
Posts: 3
Location: United Kingdom, Lymington

PostPosted: Sat 14 Nov '15 14:04    Post subject: Unable to find my directory on apache server Reply with quote

Hi,

I don't know how I managed it but now i have a blank file http.conf. I can I get the original back on my laptop. I have a macbook air am running Yosemite 10.5 operating system. Do I need to reinstall apache on my macbook air ?
Back to top
James Blond
Moderator


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

PostPosted: Mon 16 Nov '15 18:47    Post subject: Reply with quote

if you can you might reinstall apache.

See the default file layout

https://wiki.apache.org/httpd/DistrosDefaultLayout#Mac_OS_X_.28Leopard.2C_Apache_httpd_2.2.29:
Back to top


Reply to topic   Topic: Unable to find my directory on apache server View previous topic :: View next topic
Post new topic   Forum Index -> Apache