Last active
August 14, 2016 09:48
-
-
Save Mygod/9be8617e7702016c5418ea43e97ddbba to your computer and use it in GitHub Desktop.
Set up my local test server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install apache2 php7.0-dev libapache2-mod-php7.0 php7.0-mbstring php7.0-mcrypt php7.0-xml | |
sudo tee -a /etc/hosts <<- hosts | |
127.0.0.1 zh.localhost | |
127.0.0.1 en.localhost | |
hosts | |
sudo vim /etc/apache2/apache2.conf | |
sudo vim /etc/apache2/sites-available/000-default.conf | |
sudo vim /etc/php/7.0/apache2/php.ini | |
pushd ~/Products/GitHub # or whatever dir you want | |
git clone https://github.com/xdebug/xdebug.git | |
pushd xdebug | |
phpize | |
./configure --enable-xdebug | |
make | |
sudo make install | |
popd | |
sudo tee -a /etc/php/7.0/apache2/php.ini /etc/php/7.0/cli/php.ini <<- php | |
[Xdebug] | |
zend_extension=/usr/lib/php/20151012/xdebug.so | |
xdebug.remote_enable=1 | |
xdebug.remote_port=9000 | |
xdebug.profiler_enable=1 | |
xdebug.profiler_output_dir=/tmp/xdebug | |
php | |
sudo a2enmod rewrite | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment