imac using db/phpMyAdmin with browser custom pgs, need macbook to open browser pgs

LKmac

Registered
Hi,
First post here. Thanks.
Preface
We have a home based business, i have an imac with OSX 10.5.8, my wife has a macbook, same OS. We do most of our work in a browser based environment (php pgs I coded) to communicate with our remote server. Hosted with a company in the US. (We can't use local server on our ISP.) I set up my imac so that I can have db backup copies. I set up a local environment (http://localhost:8888/mywebsite.com/dev/...) and can access and work my local db's using phpMyAdmin (v3.2.5) using Firefox and local php pages. My wife's macbook can access the folders on my imac.

Problem
The macbook cannot open the php with a browser (neither Ff or Saf). When she clicks on a php page, it opens in TextEdit. If she forces to open in Ff or Saf, the browser show the page code (rather than initiating the code).

Solutions
I've tried using View File Ino and changing 'read only ' to read/write. Still doesn't help.

Any ideas?

Thanks.
 
In order to view php pages in a browser, they must be served from a web server.

If you're simply opening the php pages in a browser, then all you will see is the php code and html code of the page. You need to point the browser to the web server's document directory where those php pages are stored.

So, if you coded a page called "mypage.php" and stored it in the document directory of the web server you set up, then you would type in the URL area of the browser:
Code:
http://localhost:8888/mywebsite.com/dev/mypage.php
...if "mypage.php" is stored in the /dev directory.

If that doesn't work, then it's likely that php is not enabled in Apache. You can enable php like so:

http://foundationphp.com/tutorials/php_leopard.php
 
Went to that link. I was sure I enable Apach already. Via ssh i dbl checked the httpd.conf file and the hash mark is removed from "LoadModule php5_module libexec/apache2/libphp5.so"
 
Back
Top