-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bd0054
commit 417b580
Showing
6 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# For running PHPStorm or IntelliJ, follow these steps: | ||
# 1. Go to Settings => Language & Frameworks => PHP => Servers | ||
# 2. Add you Vagrant server with the correct port. | ||
# 3. Check the pathmapping checkbox and set your root of the project to /vagrant and the www directory to /www/directory | ||
# 4. Apply and close settings | ||
# 5. Go to Run => Edit configurations | ||
# 6. Add a new PHP Web Application with the server you just added. The rest is trivial and free to fill. | ||
# 7. Aply and done! | ||
|
||
echo "Install Xdebug" | ||
yum install -y gcc gcc-c++ autoconf automake | ||
|
||
pecl install Xdebug | ||
if [ ! -f /etc/php.d/xdebug.ini ] | ||
then | ||
echo "[xdebug] | ||
zend_extension=\"/usr/lib64/php/modules/xdebug.so\" | ||
xdebug.remote_connect_back = 1 | ||
xdebug.remote_enable = 1" > /etc/php.d/xdebug.ini | ||
fi |