Mac OSX 10.9.4 mavericks enables the Apache and PHP services, and osx10.9.4
As we all know, Mac OSX has built in Apache http server and php, and can use the php environment with just a simple configuration. It is good to perform local tests.
1.
The OSX system is very friendly to PHP, we only need simple configuration to start using, this article will step by step to explain the installation and configuration of Apache, PHP and MySQL, paving the way for the start of developmentApacheLaunch
As we all know, Mac OSX has built-in Apache HTTP server and PHP, with a simple configuration to use the PHP environment, local testing is very good.1. Enable Apache Http Server ( sudo apachectl start)Remember the following command:Open Terminal
MAMP's name comes from the Macintosh Apache MySQL PHP, which is clearly designed to build Apache, MySQL, and PHP platforms in a MAC environment.
Although the Apache 1.3.x and PHP 4.3.2 environments are already preinstalled in OSX, enabling,
You need to change the PHP version of Mac from 5.5 to 5. 3. first, you need to delete the built-in Version 5.5 and delete the file as follows: {code ...} note: After Apache is restarted, phpinfo () is still displayed. then use brew to install php.
Mac system comes with Apache and PHP, as long as you turn it on and use it1. Modifying the Apache configuration filesudo vim/etc/apache2/httpd.conf.Uncomment the next two linesLoadModule rewrite_Module Libexec/apache2/mod_rewrite.soLoadModule
Build a PHP development environment on Mac OSX:1, because the system comes with apache2.4.10 and php5.5.20, no intention to mamp again.To start Apache:sudo apachectl startTo restart Apache:sudo apachectl restartTo view the Apache version:Httpd-v2.
Today I needed to install the pcntl extension for PHP in a tutorial session at theDutch PHP Conference
. And since I am working on OS X Lion, this is course gave some problems due to the rather odd installation of Apache and PHP On OSX.
Several
This section describes how to install MAMP on your Mac. The Apache Web server, MySQL, and phpMyAdmin will be installed through an operation, and the required friends can refer to the following
A. Brief introduction:
The PHP page needs to be
For example, after Vagrant file synchronization is set up, after I modify the file on OSX, I will immediately go to the vagrantcentos environment to view the file content, which is already updated, I found that the slow synchronization on the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.