Simple way to setup PHP/MySQL in OS X? - php

Web-development novice here. I want to try implementing a simple web site that uses PHP and MySQL but I don't want to pay for server/domain hosting. Is there a simple way to just try out my implementation using only the local resources on my MacBook Pro (OS X 10.7) before making it live online? If so, what do I have to install? Thanks!

Check MAMP
http://www.mamp.info/en/mamp/index.html

Of course you can download source codes and compile everything as you want, but I strongly recommend MAMP. It contains probably all you need out of the box.

You can use Apache as webserver and install PHP, if i'm right apache is already installed in you OS, you can google for an apache+php instal tutorial for mac.
and if you dont want to mess with anything, use xamp

Just download Xampp, it contains anything you need.
http://www.apachefriends.org/de/xampp.html

Related

is there any simple way to install Apache and php in the Windows7?

I want instal the Php in My windows7 PC here i want use Apche webserver is there any simple way to install?
Thanks in Advance..
You can try http://www.wampserver.com/en/ (WAMP = Windows Apache MySql Php), it will integrates all you need (php + mysql + apache) including correct configuration
Also you can try http://www.apachefriends.org/en/xampp.html (XAMPP).
These packs will help you to install PHP, MySql and Apache without problems.
Agree with #michael-swan
i will suggest to go with XAMPP, since you can simply start the XAMPP server and you got apache/php/mysql working.
No need for any installation can be used in a portable drive too.
I am not sure if any such option is available in wamp, but it has easy to handle configs vars
Both the software are bundles of APACHE/PHP/MYSQL package - which are the complete package
You'll want to use a packaged distribution of Apache, MySQL, and PHP (WAMP) that's all configured and ready to host websites after a short automated install.
Start with this list of WAMPs: http://en.wikipedia.org/wiki/Comparison_of_WAMPs
It's the most comprehensive list and will give you some ideas about what's available.
The ones I've seen used most often are Xampp, WampServer, and UniformServer. There are also commercial ones like Wamp-Developer.
Try installing 3 of 4 different WAMPs and just trying them out one by one with 1) setting up a new website and 2) installing WordPress as a blog. This will give you a good idea of what works best for you.

Build a MAMP environment on Mac... Best solution?

I recently bought a new mac... In the past I used MAMP and Bitnami for the setup of my dev environment, but I would like to find a more efficient way, if exists, to manage my apache & php installation...
So...
What is the best way to set up a PHP development environment on a Mac? On StackOverflow I found something on http://www.macports.org/ are they reliable and/or updated to latest versions of apache and php?
I am one of the BitNami developers. I wanted to mention we have released a version of MAMP stack that you can download and run from Mac OS X app store with one click. It is completely free: https://itunes.apple.com/app/mamp-stack/id571310406
I finally found my perfect setup thanks to this blog post: http://echodittolabs.org/blog/2011/09/os-x-107-lion-development-native-apache-php-homebrew-mysql-or-mariadb, which basically uses Lion's built-in Apache and PHP with a Homebrew installation of MySQL and a nice VirtualHosts setup.
You can try AMPPS new MAMP/WAMP Stack. I use it.
I've installed Apache/MySQL/PHP on linux servers several times, and it's usually a piece of cake because of good package managers.
However, I had a terrible experience with MacPorts. Why don't you look at Xampp if it has everything you need.
I think I'm going for an Ubuntu Virtual Machine, for several reasons...
Easy to mantain (all packages available)
Easy to shutdown
MacOS stays clean
I can easily switch env or similar...
For Windows users i recommend "Softaculous AMPPS" since it's easy to update it. For Mac users I recommend "Bitnami MAMPStack". However to test PHP mail function on my Mac, i use "MAMP Pro".

Which is the simplest way to install PHP

I am very new to php.... please tell me the most easiest way to install it and run a sample app, some tutorials which do that....
I read something on internet but most of the time, all the tutorials were not ok... so i decided to ask here to find someone's else opinion...
Thanks
If you're on Windows, you can use WampServer which is pretty straightforward (just click next 3 times and you have Apache+mySql+PHP. For you development box of course (not for production).
In windows I would use WAMP or XAMP, in OSX I would use either the Native php installs or MAMP if you want to make it easy to configure.. On linux you should compile it from source.
Edit: As samuel says, only use these on Development machines, you should always compile your own versions for a production box!
You could use the MS Web Platform Installer.
I use AppServ it sets up Apache/PHP/MySQL and phpMyAdmin in about 5 clicks!

What's a Robust but Simple Apache / PHP / MySQL Installer for Windows Vista

I tried easyphp but i think it's not enough, I want an Apache / PHP / MySQL installer which has the latest PHP and MySQL version, and with curl and htaccess support.
Opensource solutions are preferred, should be windows vista compatible.
I have never heard of a PHP / mySQL emulator. What purpose would such a tool serve?
If you are looking for a ready-made installer package for Windows, containing everything necessary to install and run PHP, XAMPP is probably one of the best ones around.
WAMP Server is excellent, easy to install and easy to configure:
http://www.wampserver.com/en/index.php
If you want the last version of each piece of software, and to really do it the way you want, the best solution is to download an install each component separatly :
Apache : http://httpd.apache.org/
MySQL : http://dev.mysql.com/downloads/
And PHP : http://www.php.net/downloads.php
Of course, you'll have a bit more work to plug all those together than if using WAMP or anything like that -- but it also mean you'll know more about how they work and can be configured, which is always nice to know ;-)
Never heard of PHP or mySql emulators before. To run a php script you will need a webserver and the PHP engine to parse and execute the script. This cannot be emulated by another engine besides PHP.
I would suggest using Acquia Dev Desktop.
It installs Apache, MySQL & PHP with one click. Most importantly, unlike many other WAMP stacks, it works well under Windows Vista (32- or 64-bit). And as an extra, it installs Acquia Drupal for you as well, so if you ever want to get into Drupal development, you have everything you need to do so.
Get it at http://network.acquia.com/documentation/acquia-drupal-stack
I'm a BitNami developer and I personally suggest to use BitNami WAMPStack. It is free, it also includes phpMyAdmin for managing the MySQL databases and GUI management tool for the servers. Per your requirements, it is open source, compatible with Windows Vista and Windows 7, includes curl and htaccess support and we keep it fairly up to date.
XAMPP Lite USB
"XAMPP Lite" is an additional extra small XAMPP edition. Configured with relative paths you can use it on usb devices.

How to work with PHP on Windows XP?

I want to do a sample program in PHP on Windows XP.
Do I need any special software to get this to work?
I am afraid that I simply open notepad type the PHP program and save it with php extension. Then I open it with the browser as a HTML file. But it does not work.
Please help
Thanks in advance
However you decide to install a webserver and php (or just php and use it in the console like someone mentioned):
Check out the PHP Manual, especially the Getting Started section.
Apache (Very, very easy)
Check out the WampServer getting started presentation.
Download and install WampServer.
And you are ready to go.
Microsoft (Not tested this myself)
Check out PHP on Windows.
Download and install the Microsoft Web Platform Installer.
Let me know how that work out... (never tried it myself, since WampServer is so easy)
You need to have a web server with PHP installed on your PC to make this work.
I highly recommend installing wampserver on your computer. It is a Windows installer that will put PHP, MySQL and Apache in your computer and let you manage all the services and such very easily. If you have problems getting it to work, you can also try out XAMPP, although I've never used it myself.
Some answers containing the hint for using wamp.
You should better use the Zend Server Community Edition.
This is also free and can be downloaded here:
http://www.zend.com/de/community/zend-server-ce
This contains Apache, Mysql, PHP and some Zend related Tools.
Benefit: its much better preconfigured than wamp.
Another easy one to set up (though it takes extra config to support PHP5) is easyPHP
you can simply install PHP, and then run the program and redirect the output
php foo.php > output.html
and then use any browser to open up that html file.
Since you have IIS on the windows cd I would suggest you go to control panel, install/uninstall programs and click on windows components and install IIS. Then install ASP.NET 3.5 from www.asp.net and finally install Phalanger from http://www.php-compiler.net/
That will give you the benefit of both worlds, you can program in ASP.NET using PHP as the language, you can use only PHP if you prefer that or you can mix using ASP.NET/C# on some pages and PHP on other pages within the same application.
I use XAMPP, works out of the box with his installer and is more than enough for a simple developer windows environment.
The simplest way - use www.microsoft.com/web platform installer. get the whole stack to run PHP all from one place.
i would like to share that before starting PHP we have to set environment for that and then we can start working with PHP.
http://code.freefeast.info/php-tutorials/setting-up-the-environment-for-php-php-tutorial/

Categories