-
Mac Fanatic
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:
-
05-12-2004 03:11 PM # ADS
Google Adsense
-
Mac Fanatic
-
S13
Guest
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]
Bookmarks