MAMP is a collection of server applications, designed to run in user-space rather than being installed hither and thither on your Mac’s Unix filesystem. When you start up MAMP, it should tell you what port Apache is working on (8888 by default), and then you will be running the browser and the server on the same machine. Instead of opening a file by double-clicking it, you will browse to it just as if it was uploaded to the public Web, by entering a URL that looks like http://localhost:8888/path/to/your/file.php
This (the abstract idea of running a server on your computer, not MAMP specifically) is the only way to preview a PHP page and really see what it will look like when it’s hosted on a real Web server.
You can do the same thing on your Mac without MAMP, by turning on Web Sharing in the Sharing Preferences pane, and un-commenting a few lines in the /etc/apache2/httpd.conf file that controls it. This will be closer to how things would work on a regular server, but it takes a considerably greater amount of command-fu to get it working.
Walter
On Feb 22, 2012, at 9:44 AM, Trevor Reaveley wrote:
Righty ho, getting in a bit of a mess here.
I’ve downloaded Mamp and installed it in my applications folder. The ReadMe says to put your HTML and PHP files in the htdocs folder, done - along with resource files, site info, css files and the webyep system.
On trying to open a php page I still get it trying to open in GoLive, or if I drag it to Safari it still comes up as a page of gobbledegook.
I realise the problem is me - I just don’t know what it is!!
Trev
On 21 Feb 2012, at 17:35, Tim Plumb wrote:
Hi Trev,
My suggestion would be to keep your file extensions as .html and add an .htaccess file to your server to process html files as if they were php files. This way you’ll be able to preview the design changes locally as well as have the CMS elements run on the server once uploaded.
You can find a brief tutorial on this over on the Pulse site;
http://pulsecms.com/tips/parse.php
Alternatively you can download and set up MAMP (http://www.mamp.info/en/index.html) and have a server running locally on your Mac.
Regards,
Tim.
On 21 Feb 2012, at 16:15, Trevreav wrote:
Afternoon all, I seem to be doing a little bit more now using WebYep and I’m finding that uploading each change to a server is a big pain, so is there any way I can view things locally?
offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options