I am using PHP5.2.4, Apache, MySQL on Macintosh. I can run a phpinfo.php page from the Sites folder and I get the php configuration page so php is working and Apache is processing the page. When I try to run a page from a web site directory (/sites/testapp/) I get a blank page. I am using Dreamweaver and the app directory is registered as a site but I get an error message when I use Live Data - test server is not running, test server ignores files with ".php", etc. I used the Adobe Dreamweaver Setting up a PHP environment instructions to install PHP and MySQL. If anyone can point me in the right direction to resolve this I would very appreciative.

    I presume your dont have your root directory set for the apache server. Look for a file httpd.conf inside a folder conf where you have installed apache. In this file you should have something like this:

    ...

    DocumentRoot: The directory out of which you will serve your

    documents. By default, all requests are taken from this directory, but

    symbolic links and aliases may be used to point to other locations.

    #
    DocumentRoot "c:/wamp/www/"
    ...

    There you will see which folder is your root folder and then copy your folder in this directory.

    You didnt give much information so I hope I answered your question the right way.

      I attempted to set up virtual hosts using http://www.lineardesign.ca/news?articleid=2 "Setting up Dreamweaver in OSX. My httypd.conf is now as follows:
      #localhost
      <VirtualHost 127.0.0.1:80>
      ServerAdmin webmaster@TestApp.com
      DocumentRoot /Users/mike/Sites/
      ServerName localhost

      ErrorLog logs/dummy-host.example.com-error_log

      CustomLog logs/dummy-host.example.com-access_log common

      </VirtualHost>

      testapp

      <VirtualHost 127.0.0.1:80>
      DocumentRoot /Users/mike/Sites/TestApp
      ServerName www.TestApp.com
      </VirtualHost>

      I then configured localhost to set up TestApp, configured the site in Dreamweaver and recycled Apache. I still get a blank page.

      The tutorial on setting up Dreamweaver did not reconcile the Adobe PHP App tutorial instructions to set up the http address when configuring local Info and Testing Server as http://localhost/~mike/TestApp/ with the path in apache.

      Any ideas of where I am going wrong?

        25 days later

        I briefly read your article, and I don't think I saw any mention of setting up php (php does not come built in to apache.)

        I did find this article on how to setup php on os x. I have never used a mac before so there may be a slicker way.

          6 days later
          20 days later
          seco;10877448 wrote:

          http://www.wampserver.com

          Download and install wamp, read their super easy instructions at their site and you can mark this thread as resolved. 😉

          Greets M.

          addition: I think wamp's server for mac is called lamp /not sure exacly but at the same site though. Just thought I'd mention it b4 you download somthing for a windows environment.

            Umm....does WAMPserver (Windows Apache MySQL, and PHP) run on a mac? There is another combo installer for Mac called (you guessed it) MAMP.

            Here's a link.

              bretticus;10880620 wrote:

              Umm....does WAMPserver (Windows Apache MySQL, and PHP) run on a mac? There is another combo installer for Mac called (you guessed it) MAMP.

              Here's a link.

              Yess, that's correct. Thx!
              Greetings, M.

                Write a Reply...