# Php Test Server

**URL:** <https://www.phphelp.com/t/php-test-server/21831>\
**Category:** PHP Installation and Configuration\
**Created:** [January 5, 2014, 6:04pm UTC](https://www.phphelp.com/t/php-test-server/21831 "2014-01-05T18:04:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBoz](https://www.phphelp.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@DBoz](https://www.phphelp.com/u/DBoz)\
**Post date:** [January 5, 2014, 6:04pm UTC](https://www.phphelp.com/t/php-test-server/21831/1 "2014-01-05T18:04:22Z")

</div>

Hi I am trying to get my php test server to work on my mac. I am running lion 10.7. I have followed several instructions that I found on line to the best of my ability but they don’t seem to work correctly. One thing I was not able to do is to change the error\_reporting= E\_ALL because it does not exist in the same way as the examples and I was afraid of messing something else up. When I just request Http:// localhost I get the “it works” but It can’t ever find the files in my test server. BTW I am using dreamweaver.

Any help would be great! 😃

---

<div class="post-metadata">

**Author:** ![JimL](https://www.phphelp.com/user_avatar/www.phphelp.com/jiml/32/1842_2.png) [@JimL](https://www.phphelp.com/u/JimL)\
**Post date:** [January 5, 2014, 9:00pm UTC](https://www.phphelp.com/t/php-test-server/21831/2 "2014-01-05T21:00:03Z")

</div>

Your apache config should tell you where the public dir is.

Check out /sites-enabled, you should have a default.conf or something there.

---

<div class="post-metadata">

**Author:** ![DBoz](https://www.phphelp.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@DBoz](https://www.phphelp.com/u/DBoz)\
**Post date:** [February 3, 2014, 8:23pm UTC](https://www.phphelp.com/t/php-test-server/21831/3 "2014-02-03T20:23:46Z")

</div>

Thanks for the thought, but let just pretend I am a complete bone head. How do I find that file you suggested editing? :-\

---

<div class="post-metadata">

**Author:** ![JimL](https://www.phphelp.com/user_avatar/www.phphelp.com/jiml/32/1842_2.png) [@JimL](https://www.phphelp.com/u/JimL)\
**Post date:** [February 3, 2014, 8:32pm UTC](https://www.phphelp.com/t/php-test-server/21831/4 "2014-02-03T20:32:04Z")

</div>

locate sites-enabled

should give you something like this:  
jim@develop:~$ locate sites-enabled  
/etc/apache2/sites-enabled  
/etc/apache2/sites-enabled/000-default.conf  
/etc/apache2/sites-enabled/crypt.conf  
/etc/apache2/sites-enabled/family.conf

[hr]

just guessing the linux command will work, I think my total time with osx is like 5 mins.

---

<div class="post-metadata">

**Author:** ![DBoz](https://www.phphelp.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@DBoz](https://www.phphelp.com/u/DBoz)\
**Post date:** [February 3, 2014, 8:51pm UTC](https://www.phphelp.com/t/php-test-server/21831/5 "2014-02-03T20:51:06Z")

</div>

file not found on all of those :’(

---

<div class="post-metadata">

**Author:** ![JimL](https://www.phphelp.com/user_avatar/www.phphelp.com/jiml/32/1842_2.png) [@JimL](https://www.phphelp.com/u/JimL)\
**Post date:** [February 3, 2014, 8:53pm UTC](https://www.phphelp.com/t/php-test-server/21831/6 "2014-02-03T20:53:37Z")

</div>

if you don’t have the locate command then you must use whatever search command is in osx.

---

<div class="post-metadata">

**Author:** ![DBoz](https://www.phphelp.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@DBoz](https://www.phphelp.com/u/DBoz)\
**Post date:** [February 3, 2014, 9:00pm UTC](https://www.phphelp.com/t/php-test-server/21831/7 "2014-02-03T21:00:38Z")

</div>

If it says ’ No such file or directory’ doesn’t that mean that the command is correct but the file is wrong?

`Macintosh:~ davidboswell$ /etc/apache2/sites-enabled/000-default.conf
-bash: /etc/apache2/sites-enabled/000-default.conf: No such file or directory`

---

<div class="post-metadata">

**Author:** ![JimL](https://www.phphelp.com/user_avatar/www.phphelp.com/jiml/32/1842_2.png) [@JimL](https://www.phphelp.com/u/JimL)\
**Post date:** [February 3, 2014, 9:03pm UTC](https://www.phphelp.com/t/php-test-server/21831/8 "2014-02-03T21:03:15Z")

</div>

It means that file does not exist in that directory.

did you try searching for it?

---

<div class="post-metadata">

**Author:** ![DBoz](https://www.phphelp.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@DBoz](https://www.phphelp.com/u/DBoz)\
**Post date:** [February 3, 2014, 9:05pm UTC](https://www.phphelp.com/t/php-test-server/21831/9 "2014-02-03T21:05:45Z")

</div>

please excuse my ignorance, but search where?

---

<div class="post-metadata">

**Author:** ![DBoz](https://www.phphelp.com/letter_avatar_proxy/v4/letter/d/dc4da7/32.png) [@DBoz](https://www.phphelp.com/u/DBoz)\
**Post date:** [February 3, 2014, 10:13pm UTC](https://www.phphelp.com/t/php-test-server/21831/10 "2014-02-03T22:13:10Z")

</div>

I found this in the /apache2/httpd.conf file.

[code]#

# AccessFileName: The name of the file to look for in each directory

# for additional configuration directives. See also the AllowOverride

# directive.

# 

AccessFileName .htaccess[/code]

could this be what we want?
