Thread: Apache and root folders
06-08-2005, 05:34 AM #1moonrakerGuestApache and root folders
Reading the previous post this is a follow on from ethea's post, so hopefully some feedback will help us both.
To set the picture, i have been creating PHP scripts and testing them on a web sever that it hosted by Lunarpages. So as is the norm i have a username/password etc along with FTP details so i can connect to this server and upload files. Then i test them using a www url.
My MySQL databases reside on my MAC and i can run queries etc from the Terminal. I have created a user name for myself and a password.
The next step is for me to get PHP and MySQL talking. I had access issues connecting to my database from the remote server, so have decided to store my PHP scripts on my Mac.
Apache 1.3 is running fine, and i believe PHP is already installed (if not i can download it), however im not sure how to display HTML/PHP pages in the web browser via localhost (replacing the Apache welcome page). Can anybody tell me where to put files so i can see them in the browser? It sounds dumb but i cant even get phpinfo() to be displayed.
06-08-2005, 12:13 PM #2etheaGuest
I know the lack of response has been a little discouraging...I have been looking online for help for a few days. I will let you know if I find anything.
06-08-2005, 09:15 PM #3
---> Join the Mac-Forums Folding team: use 37954 as your team number.
- Member Since
- Jun 11, 2003
- Mount Vernon, WA
- MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
View Mac-Forums Folding team statistics (More Info)
Don't forget to use the User Reputation System
06-09-2005, 03:43 AM #4moonrakerGuest
I got my problem sorted. What i did is download PHP5 onto my Mac and ran the PHP code from the same box as the MySQL database, and the two connect fine.
However im still having problems connecting remotely. As i mentioned the PHP scripts on my other hosting server to got connect to my db on my Mac. Its one of those hosting companies though that only allows one db to be created.
So im waiting until our company gets a server of our own and then that will be the most practical solution.
Also make sure your Apache server is on Apple >> System Preferences etc
Sorry i cannot be anymore help
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By mrivmriv in forum OS X - Operating SystemReplies: 2Last Post: 03-12-2013, 03:36 AM
By chowmein in forum OS X - Operating SystemReplies: 2Last Post: 04-25-2012, 04:00 PM
By flipjarg in forum OS X - Operating SystemReplies: 2Last Post: 06-25-2010, 05:09 PM
By Benji6996 in forum OS X - Apps and GamesReplies: 4Last Post: 03-20-2010, 05:40 PM
By roxxan23 in forum OS X - Operating SystemReplies: 2Last Post: 05-30-2009, 08:30 PM