New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Apache and root folders


Post Reply New Thread Subscribe

 
Thread Tools
moonraker
Guest
 
Posts: n/a

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.
QUOTE Thanks
ethea
Guest
 
Posts: n/a

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.
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
Try this site: http://www.entropy.ch

He has some pretty good tutorials.
QUOTE Thanks
moonraker
Guest
 
Posts: n/a

Hey Ethea,

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
QUOTE Thanks

Post Reply New Thread Subscribe


« Help with JavaScript and PhoneBook widget | Slow iDisk »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Root login problem in 10.3.3 azstech OS X - Operating System 6 04-28-2004 09:56 PM

All times are GMT -4. The time now is 12:20 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?