PHP configuration solution, configure PHP

PHP configuration solution, configure PHP

List of contents of this article: 1. One of the PHP learning series: How to configure the PHP environment? 2. Regarding the installation and configuration of PHP? ? ? 3. About thinkphp configuration routing has no effect solution 4. Appears after PHP7 configuration I made a mistake, how should LoadModule takes two arguments solve the master 5, how to solve the problem of setting variables in PHP One ​​of the PHP learning series: How to configure the PHP environment? Let’s talk about it first The software version I use. PHP 5.1.6APACHE 2.0.59 (Note: APACHE 2.2.X and above need to add a plug-in to support PHP 5) MYSQL 5.0.24a OK, now start the installation, I installed php5 first, and directly decompress the file to C:\php (It doesn’t matter where you install it. According to my personal number, all the paths in this article are based on my installation path. Please pay attention to modifying it to your own path when installing on your own machine.) Then install APACHE, I Install it directly to the root directory of the C disk. During the installation process, there will be 3 text boxes. Enter your local IP in the upper two, and enter your…

Configure php, nginx, mysql, redis under mac

Configure php, nginx, mysql, redis under mac > Delete the original configuration cd /usr/bin/ && sudo rm -rf php php-config phpdoc phpizecd /usr/include && sudo rm -rf phpcd /usr/lib && sudo rm -rf phpcd /usr/sbin && sudo rm -rf php-fpmcd /usr/share && sudo rm -rf phpcd /usr/share /man/man1 && sudo rm -rf php-config.1 php.1 phpize.1cd /usr/share/man/man8 && sudo rm -rf php-fpm.8cd /usr/bin / && sudo rm -rf php php-config phpdoc phpize Install php7.1 brew install homebrew/php/php71 brew install homebrew/php/php71-mcrypt After installation, it will come with PHP-FPM Start PHP-FPM Add a symlink first ln -s /usr/local/opt/php71/sbin/php-fpm /usr/local/bin/php-fpm It is also necessary to set the boot startup ln -sfv /usr/local/opt/php71/*.plist ~/Library/LaunchAgents Start launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist Stop launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist force kill sudo pkill – INT -o php-fpm Make sure it is running and listening on port 9000 sudo lsof -Pni4 | grep LISTEN | grep php Or view through the port sudo lsof -i tcp:9000 Second, install nginx Uninstall brew remove nginx clear configuration sudo rm – rf /usr/local/etc/nginx/ Install brew install nginx –with-http_geoip_module boot Start ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents Start launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist Stop launchctl unload ~/ Library/LaunchAgents/homebrew.mxcl.nginx.plist Listening to port 80 requires root permission to execute, so: sudo chown root:wheel…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索