Neuropsych
New member
My iMac I recently bought runs Mac OS X 10.6.6. That version comes pre-installed with Apache server and can be enabled to run PHP. I followed the online instructions (They're all the same for Mac OS 10.6.6). I installed XCODE from the Mac 10.6.6 install CD. I opened httpd.conf and ensured the PHP module line of code wasn't commented out. Both PHP 4 and PHP 5 lines of code aren't commented out. That means PHP is ready to start running on my Apache server. I then went to Web Sharing and clicked on my computer Web address and lo and behold, it ran a default script. I typed up a info.php file like a few different tutorials have told me and viewed the file on my computer's Web address. It displayed raw PHP code that I had typed in that file. What's up with that? Why doesn't my PHP code run, but instead, display raw PHP code?
All I want to do is see the results of PHP codes I type. That's the goal. If my Mac can do that, then my goal is to make my Mac do that. Can anyone help me solve this issue?
Is there a way to put an address bar I can type an address into on the top of the Finder window? I have to see where this /etc/apache2/httpd.conf file is that Web sites keep informing me of and I must ensure that I'm editing the correct httpd.conf and not a phantom file. There's no reason in the world why PHP wouldn't be enabled from those changes I made unless I didn't edit the correct file.
And why are PORT files so difficult to search for?
I tried XAMP already and then deleted it because I don't want to run my Web server from third-party software when I complete my site on down the line. I'd rather do it correctly from the get-go. Perhaps that'll have to wait for another day as a last resort. I can sacrifice another day to do that.
Germann, PORT files are the critical system files that run the OS.
MAMP actually recommends that I set up Apache server on my Mac without the use of MAMP if I'm going to use it as my Web server.
All I want to do is see the results of PHP codes I type. That's the goal. If my Mac can do that, then my goal is to make my Mac do that. Can anyone help me solve this issue?
Is there a way to put an address bar I can type an address into on the top of the Finder window? I have to see where this /etc/apache2/httpd.conf file is that Web sites keep informing me of and I must ensure that I'm editing the correct httpd.conf and not a phantom file. There's no reason in the world why PHP wouldn't be enabled from those changes I made unless I didn't edit the correct file.
And why are PORT files so difficult to search for?
I tried XAMP already and then deleted it because I don't want to run my Web server from third-party software when I complete my site on down the line. I'd rather do it correctly from the get-go. Perhaps that'll have to wait for another day as a last resort. I can sacrifice another day to do that.
Germann, PORT files are the critical system files that run the OS.
MAMP actually recommends that I set up Apache server on my Mac without the use of MAMP if I'm going to use it as my Web server.