havietduc91 / experience

0 stars 0 forks source link

Bug while update ubuntu 13.04 => 13.10 #3

Open havietduc91 opened 10 years ago

havietduc91 commented 10 years ago

+ 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:

The Software shall be used for Good, not Evil.

This causes a problem with Free Software Foundation's definition of free software which states:

The freedom to run the program, for any purpose (freedom 0).

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:

We have not removed json and we will never release a version of php without json support built in. Any changes in 5.5 is due to whatever distro packaging you are using which we have no control over

* Adding VirtualHost fails

My httpd-vhosts.conf looks like this now:

DocumentRoot "E:/Documenten/Dropbox/Dropbox/dummy-htdocs" ServerName dropbox.local ErrorLog "logs/dropbox.local-error.log" CustomLog "logs/dropbox.local-access.log" combined AllowOverride All // Deprecated Order Allow,Deny // Deprecated Allow from all // Deprecated Require all granted // << New way of doing it

For me worked when I changed "directory" content into this:

<Directory "YourLocation"> Options All AllowOverride All Require all granted

havietduc91 commented 10 years ago

Redis fail => reinstall

  1. download apt redis follow link https://github.com/nicolasff/phpredis
  2. unzip file cd phpredis after enter order command line:

    phpize ./configure [--enable-redis-igbinary] make && make install

havietduc91 commented 10 years ago

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

havietduc91 commented 10 years ago

HTTPS cloning errors

fatal: unable to access The requested URL returned error: 503 github

https://help.github.com/articles/https-cloning-errors

  1. apt-get install git
  2. remote:

    git remote -v

    View existing remotes

    origin https://github.com/github/reactivecocoa.git (fetch)

    origin https://github.com/github/reactivecocoa.git (push)

    git remote set-url origin https://github.com/github/ReactiveCocoa.git

    Change the 'origin' remote's URL

    git remote -v

    Verify new remote URL

    origin https://github.com/github/ReactiveCocoa.git (fetch)

    origin https://github.com/github/ReactiveCocoa.git (push

havietduc91 commented 10 years ago

Error pushing to GitHub - insufficient permission for adding an object to repository database

http://stackoverflow.com/questions/1918524/error-pushing-to-github-insufficient-permission-for-adding-an-object-to-reposi

Fixed:

ssh me@myserver cd repository.git

sudo chmod -R g+ws sudo chgrp -R mygroup

git config core.sharedRepository true

OR

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!!!