export PHP_IDE_CONFIG="serverName={SERVER NAME IN PHP STORM}"
export XDEBUG_CONFIG="remote_host={YOUR_IP} idekey=PHPSTORM"
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
=== Symlink Support in Windows | |
The first step is installing Polsedit - User Policies Editor. When you open it, look for Create symbolic links. | |
http://www.southsoftware.com/polsedit.zip | |
Double click the row, click Add User or Group... and look for your username in the list. | |
Closing the app will automatically save your choices, and you'll need to reboot your machine. | |
=== Updating fresh system | |
;; Edit /etc/yum.conf and set installonly_limit: 2 | |
yum upgrade | |
reboot |
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
http://jpauli.github.io/2015/03/05/opcache.html | |
Configuring OPCache# | |
If you use a framework based application, like a Symfony2 based application, I strongly suggest : | |
you turn off revalidation mechanism on production (turn opcache.validate_timestamps to 0) | |
you deploy using a full new runtime of your scripts, this is the case with Symfony2 applications | |
you size correctly your buffers | |
opcache.memory_consumption, the most important | |
opcache.interned_strings_buffer , monitor your usage, and size accordingly, take care if you tell OPCache to save comments, which you will likely do if you use PHP "annotations" (opcache.save_comments = 1), those are strings, big strings, that will eat your interned strings buffer |
For example following command adds user execute permission to an arbitrary file:
git update-index --chmod=+x <file>
git ls-files --stage
git commit -m "Set exec"
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
# MySQL config files | |
/usr/sbin/mysqld --verbose --help | grep -A 1 "Default options" | |
# composer install | |
curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
http://nginx.org/en/linux_packages.html#mainline
Set limits
/lib/systemd/system/nginx.service
[Service]
default domain
server {
listen 80 default_server;
access_log /var/log/nginx/default__access.log main;
error_log /var/log/nginx/default__error.log error;
client_max_body_size 512k;
500mb
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip
10mb
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip
OlderNewer