Hello and welcome to our community! Is this your first visit?
Register

Results 1 to 3 of 3

Thread: Apache 2.0.48

  1. #1
    Mac Fanatic right_stuff's Avatar
    Join Date
    Apr 2004
    Location
    Manila
    Age
    28
    Posts
    645

    Default Apache 2.0.48

    hi, has anyone tried running this php application in a mac? i use to run apache with a pc but i can't seem to make it work with my mac? i just want to use this to view my php files... i also tried to load my php files in the directory "library/apache2/htdocs" as instructed in the installer guide, but still no luck...

    i need this app to work on my project. can anyone give a hand??

    thanks...:beer:

  2. # ADS
    Google Adsense

    Join Date
    Always
    Location
    Advertising world
    Age
    2010
    Posts
    Many




     

  3. #2
    mgd
    mgd is offline
    Mac Fanatic mgd's Avatar
    Join Date
    Apr 2004
    Location
    in a white room
    Age
    37
    Posts
    917

    Default

    Hi right_stuff!

    AFAIK, Apache is not a PHP application per se, it's a web server. You can also run other scripting tools with it (Perl, Python, Zope etc.) or let serve up simple HTML files. OSX comes installed with Apache 1.3, which I've found to be all that I need so far to run sites that requirer PHP as well as MySQL. Depending on where you got Apache 2, you may have to turn off the preinstalled Apache 1.3. Personally, I found this process a bit cumbersome so I opted not to upgrade.

    Try the package from Server Logistics. There's a comprehensive install guide as well.

    HTH!

    Migs

  4. #3
    S13
    Guest S13's Avatar

    Default

    apache is an http server (web server application) not a PHP application.

    it's the built-in web server of OS X. you can run it by turning on personal web sharing in the System Preferences>Sharing preferences panel.

    if you want serve your php files from your mac, you need to install the PHP module. there's a great tutorial at Marc Liyanage's website just for that.

    anyway, if you want to test if your webserver already has the PHP module installed, make a new text file named test.php and type the line <?php phpinfo() ?> in it. now save that file in your Sites folder, or better yet, in your /Library/WebServer/Documents folder.

    now, fire up your web browser and type in http://your.ipaddress/test.php at the url field. it should show the PHP information of your webserver.

    Edit: PHP is pre-installed in OS X. here's another place where you can get info on PHP on Mac OS X

    [Edited on 5-12-2004 by S13]

  5.   



 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •