System Overview
1. Launch Apache (default integration in Mac, open service directly)
Open Terminal, enter:
sudo apachectl start
Open the browser and enter:
http:
//localhost
You should see "It works!" Page, which is located in the/library/webserver/documents/directory, which is the default root directory of Apache (which can be chan
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 (Terminal) input: sudo apachectl start//start service sudo apachectl stop//Turn off service sudo apachectl restart//Rest
MAC PHP version changes such as PHP7.0.0 Mamp
VI . Bash_profile
Export path= "/applications/mamp/bin/php/php7.0.0/bin: $PATH"
. . Bash_profile
-bash Command Failure Repair method
Like what:
-bash:ls:command not found
Step1.
Inside the terminal, enter:
Export path= "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/x11/bin"
And then the command i
Mac PHP configuration, macphp configuration
Apache Default Path Configuration method Apache's configuration Apache has its own, only the following three commands are available. Open Apache service sudo apachectl start stop Apache service sudo apachectl stop restart service sudo apachectl Restart view version httpd-v manually open Apache service after browser input localhost, you will see the following: it w
Mac OS X has PHP installed by default, but there are some common PHP extensions in the development system that are not there and need to be installed manually, now record this for enquiries.
Installing the PHP extension requires your Mac system to have the Xcode environment
Mac OS comes with PHP versions, but many extensions are not.This site: http://php-osx.liip.ch/provides almost all of the PHP versionsBy enteringCurl-s http://php-osx.liip.ch/install.sh | Bash-s 5.6 You can install the latest installation package for 5.6 and include most of
PHP does not need xdebug. how can I debug xdebug? it is too difficult to debug xdebug in mac environment? how can I debug xdebug? nbsp; xdebug nbsp; in the mac environment, it is too difficult to get involved nbsp; all kinds of egresses ------ solutions -------------------- 1. var_dump () 2. apache running logs: PHP
We will implement the following function points:
How to get your Mac computer to become a localhost mail server (local mail servers) that can send mail directly;The functions of PHP mail () function are implemented in Mac OS X system;
Modify PHP's main profile php.ini file to open the Send mail function for PHP mail
Apache 2.2.27 and PHP 5.5.12 in Mac OS X 10.8.5 Compile the installation process:
Before you begin, upgrade the components of Xcode: Preferences = Downloads = Download command line tools package
Then enter the Apache source package, for most of the source package can use the following command to see the compilation options:
./configure--help
To configure compilation options:
./configure--prefix=/users/levi
The Apache 2.2.27 and PHP 5.5.12 compile the installation process in Mac OS X 10.8.5:Upgrade Xcode components first before starting: Preferences => Downloads => download command line tools Kit
Then enter the Apache source package, for most of the source package can use the following instructions to view the compilation options:
./configure--help
To configure compilation options:
./con
Note: If you feel that the terminal editing is too troublesome, you can also directly drag the file out of the manual edit after the original folder to replace it1. Enable Apache:Open terminal under Mac, enter "sudo apachectl start" (without quotation marks, same as below)Enter your computer password to start Apache2. Detecting Apache:Enter "sudo apachectl-v" in the terminal to see the Apache version numberor enter "localhost" in the browser to see "I
(1) Open Apache (because the Mac comes with Apache, so it only needs to be turned on)--In the terminal input, prompted to enter the password.sudo apachectl-k start--Verify: Enter 127.0.0.1 or localhost in the browser to display "It works! "That means success.--Change the default address, the configuration file in the/ect/apache2/in the httpd.conf, note the above two sentences, add the following two sentences. (The address below is our own definition o
The simplest and most straightforward way to do this is to use Apache and PHP, which comes with your Mac. 1. Launch Apache1> start Apache $sudo apachectl start; after 2> is started, enter localhost in the browser and you can see It works on the page. (Index.html.en file under/library/webserver/documents/)the default root directory for 3>apache is /library/webserver/documents/ 2. Add Apache support for PHP1>
I am using MAMP development under Mac OS, write error code not to error.
php.ini 设置了 error_reporting=E_ALL;
In the code, add
It's still not working.
Reply content:
I am using MAMP development under Mac OS, write error code not to error.
php.ini 设置了 error_reporting=E_ALL;
In the code, add
It's still not working.
Open /Applications/MAMP/bin/php/{y
Mac OS 10.12.1 comes with Apache,nginx and PHP1. Run Apache
To view the Apache version, enter the following command in the terminal root directory:sudo apachectl -v
The terminal will output Apache version and built timeServer version: Apache/2.4.23 (Unix)Server built: Aug 8 2016 16:31:34
Open Apachesudo apachectl startWhen turned on, localhost can be accessed via the browser, and the page displays "It Works" indicating success.
How to build PHP's basic operating environment on Mac Machine
1, first Mac OS X built-in Apache and PHP
Check the method that contains PHP: in terminal input
-v
Detect if Apache is already available: in terminal input sudo apachectl-v
sudo apachectl -v
2, enter http://localhost in the browser will appear an HTML pag
as the IDE for most languages (Java, PHP, Ruby, Coffee)
If not cross-platform, do not rely on the GUI of the large vim, it is no justice!
Which IDE can SSH remote to the MAC can also use!!!
My great vim teaches the crowd to praise, to frighten the heathen. I installed a virtual machine to run CENTOS7 as a development environment.
The IDE's zendstudio13,phpstorm is really not used.
Text with Notepad Jia
Tags: code c tar ext http ATried a lot of methods, and finally this is the most effective.[Transfer from: HTTP://THATSIMPLECODE.COM/INSTALL-MONGODB-DRIVER-FOR-PHP-ON-XAMPP-FOR-MAC-OSX]You need to has the following installed in your MAC:
Mongodb
XAMPP for Mac OSX
Homebrew Package Manager
Type the following
This article will give you a detailed description of the mac php netbeans xdebug configuration method. I hope this tutorial will be helpful to you.
PHP configuration
/Opt/local/var/db/php5/xdebug. ini
The Code is as follows:
Copy code
Zend_extension =/opt/local/lib/php/extensions/no-debug-non-zt
Installing the PHP extension requires your Mac system to have the Xcode environment and command-line development tools installed and, if not already installed, use shell installation first.Xcode-select--install
To extend administrative convenience, first install the PECL Extension Manager.
cd/usr/lib/phpsudo php Install-pear-nozlib.phar
Install Redis, Memcache
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.