Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jim Card

macrumors newbie
Original poster
Aug 15, 2008
5
0
I need to setup a place to test some new pages of our website. Can I do that on my MAC with Mac OSX 10.4.11?

thanks

Jim Card
 
I can't believe they charge for the pro version when all the software it includes is free and offers all the pro "features" as well.

Speaking only for myself, I paid not for the fact that it has Apache, mySQL (which are free) but that it makes it all quick and easy to set up test sites. I don't have time or a real need to have to go and configure apache etc. MAMP is a easy GUI interface where I don't need to think about the technology behind it all. I can concentrate on design and CSS which is what I really care about.
 
Speaking only for myself, I paid not for the fact that it has Apache, mySQL (which are free) but that it makes it all quick and easy to set up test sites. I don't have time or a real need to have to go and configure apache etc. MAMP is a easy GUI interface where I don't need to think about the technology behind it all. I can concentrate on design and CSS which is what I really care about.

Unless your webhost has some special setup things going on, the Apache install on Mac OS X will generally work fine for simple testing of web pages.
 
Hosting PHP web Site

Yes for sure. I find using MAMP is a good and easy way to test PHP / mySQL websites. I use the PRO version but the basic one will do as well.

http://www.mamp.info/en/index.php

After Install where do I move the web pages to. Is there a wizard? I am a Graphics person, and need to look at changes to our website without being live. The person who prepared pages cannot do this.

I will be trying this over the weekend.

thanks,
 
Unless your webhost has some special setup things going on, the Apache install on Mac OS X will generally work fine for simple testing of web pages.

Very true. And PHP is already installed on OS X, it's just not enabled. Edit one line in httpd.conf and PHP is enabled. Go to "sharing" in system preferences and enable "Web Sharing" and Apache will start up automatically. It ain't exactly rocket science.
 
Testing own site on Mac OSX in PHP

After Install where do I move the web pages to. Is there a wizard? I am a Graphics person, and need to look at changes to our website without being live. The person who prepared pages cannot do this.

I will be trying this over the weekend.

thanks,

I placed the files in the hotdocs folder as MAMP stated. MAMP servers are started. Personal Web Sharing under Services is Started. When I do to: 'View this computer’s website at http://signatures-imac.signaturecard.net/ or your personal website at http://signatures-imac.signaturecard.net/~signature/"

Only the basic start up pages display. Have I missed turning something on or am I looking at the wrong site address?

Jim
 
I placed the files in the hotdocs folder as MAMP stated. MAMP servers are started. Personal Web Sharing under Services is Started. When I do to: 'View this computer’s website at http://signatures-imac.signaturecard.net/ or your personal website at http://signatures-imac.signaturecard.net/~signature/"

Only the basic start up pages display. Have I missed turning something on or am I looking at the wrong site address?

Jim

Try turning off Personal Web Sharing. That points to a different directory on the system than MAMP does. It points to /Library/WebServer/Documents.
 
Very true. And PHP is already installed on OS X, it's just not enabled. Edit one line in httpd.conf and PHP is enabled. Go to "sharing" in system preferences and enable "Web Sharing" and Apache will start up automatically. It ain't exactly rocket science.

It ain't rocket science until you try to enable imap and gd support... while not exactly rocket science, it is a bit more complex than most want to deal with.

I am fairly comfortable with compiling my own software, use ports frequently, but still went with MAMP Pro when I ran into trouble getting imap support running with PHP.
 
I placed the files in the hotdocs folder as MAMP stated. MAMP servers are started. Personal Web Sharing under Services is Started. When I do to: 'View this computer’s website at http://signatures-imac.signaturecard.net/ or your personal website at http://signatures-imac.signaturecard.net/~signature/"

Only the basic start up pages display. Have I missed turning something on or am I looking at the wrong site address?

Jim

Your files go in the htdocs (not hotdocs :p ) within the MAMP application folder. By default you access your MAMP server at http://localhost:8888/. When you startup MAMP the default page URL is something like http://localhost:8888/MAMP/. If you remove the /MAMP part it will display the htdocs folder. Also, there's usually not a problem with running personal web sharing as well as that uses different ports and subsystems.
 
Your files go in the htdocs (not hotdocs :p ) within the MAMP application folder. By default you access your MAMP server at http://localhost:8888/. When you startup MAMP the default page URL is something like http://localhost:8888/MAMP/. If you remove the /MAMP part it will display the htdocs folder. Also, there's usually not a problem with running personal web sharing as well as that uses different ports and subsystems.

I turned off web sharing. When I go to http://localhost:8888 I see Index of

So that I am clear, most of the web pages work well live. I need to put in two replacement pages and only view internally or at least somewhat hidden from public.

Jim
 
My goal is to dupe our present web site which is in PHP on a my local computer, so we can view new pages without effecting the live site.

I moved the pages out of a folder that was in the htdocs and now when I go to localhost:8888 thru Safari, I see a blank page.

Help is appreciated.

Jim
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.