Open havietduc91 opened 10 years ago
unzip file cd phpredis after enter order command line:
phpize ./configure [--enable-redis-igbinary] make && make install
we have some changed from 2.2 to 2.4 when u upgraded apache 2.2 to 2.4 , all .ini files has changed , so we need reconfig all .ini file
all config files in /etc/php5/conf.d then( this dir need redis.ini and mongo.ini, if they doesn't exit , lets use this command for make new file sudo touch redis.ini - sudo touch mongo.ini
in redis.ini add this line extension=redis.so - and in mongo.ini add there lines
extension=mongo.so mongo.auto_reconnect = true mongo.allow_persistent = On mongo.max_persistent = -1 mongo.max_connections = -1 ;mongo.default_host = www.example.com mongo.default_port = 42 mongo.chunk_size = 102
HTTPS cloning errors
https://help.github.com/articles/https-cloning-errors
remote:
git remote -v
git remote set-url origin https://github.com/github/ReactiveCocoa.git
git remote -v
ssh me@myserver cd repository.git
sudo chmod -R g+ws sudo chgrp -R mygroup
git config core.sharedRepository true
Step 1. chown -R vtdc:vtdc .git
After terminal show error: chown: changing ownership of '.git/objects/f4/c84612ed91b067ac2620d81bc2cd574b6010f0': Operation not permitted chown: changing ownership of '.git/objects/f4': Operation not permitted
Step 2: cd .git/objects/ (Đang ở reposity đó) sudo chmod 777 f4/ -R
Enjoy!!!
+ sen_json undefine
Short answer:
sudo apt-get install php5-json
Then of course make sure you restart Apache:
sudo service apache2 restart
Or if you are using PHP-FPM:
sudo service php5-fpm restart
Explanation
Debian has removed the previous JSON extension as of PHP 5.5rc2 due to a license conflict.
The JSON license has a clause which states:
This causes a problem with Free Software Foundation's definition of free software which states:
FSF goes on to specifically list the JSON license as nonfree.
Yes it seems a bit silly. Nevertheless Debian has removed the non-compliant JSON extension, and instead offered a replacement extension that is functionally equivalent.
To be clear: PHP itself has NOT removed JSON, it's still in master. This is a distro / package manager issue.
Rasmus makes it pretty clear:
* Adding VirtualHost fails
My httpd-vhosts.conf looks like this now:
For me worked when I changed "directory" content into this:
<Directory "YourLocation"> Options All AllowOverride All Require all granted