How to enable php, mysql, and apache?

Hi guys, I am sorry if I am not in the right forum, but I am really worried about my problem...

According to this article("http://developer.apple.com/mac/articles/internet/phpeasyway.html") I already have php , apache, and SQlite installed on my mac. My problem is when I try to enable the apache, instead of coming a localhost ( like 128.1.2.1) comes my website " your computer's website: http://nunomedi-e14....lan/ ) I donn't know what is this, I replace the index.html with index.php in sites folder.
Can somebody help me please.

macbook pro, Mac OS X (10.5.6)

Posted on Jan 31, 2009 3:05 PM

Reply
16 replies

Jan 31, 2009 3:15 PM in response to Nmarques

You need to enable PHP for it work, I know that. In /Library/Apache2/conf/httpd.conf, look for a line that reads #mod_php. Remove the hash and save the file. Restart.

Jan 31, 2009 4:07 PM in response to Nmarques

It's an invisible folder. In Finder, click on Go, than Go to Folder, and type in /etc/apache2

Thanks, But the first step is not working for me. I typed in terminal but does not open the apache2 directory...(nothing appeans)

cd doesn't open anything. It changes your working directory in Terminal. Your prompt should change.

Jan 31, 2009 4:20 PM in response to Nmarques

Please look at my second post. I corrected what I said:
macwiz1220 wrote:
O wow. I'm sorry. I have no idea where i got that from. The file you want is in /etc/apache2/httpd.conf and the line you are looking for is *#LoadModule php5_module*

Take a look at this article on LAMP on Leopard.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to enable php, mysql, and apache?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.