Thứ Bảy, 27 tháng 12, 2014

install oauth in ubuntu

Installation of OAuth support in PHP of Linux

  OAuth is an authorization protocol built on top of HTTP which allows applications to securely access data without having to store usernames and passwords. And the installion procedure as follow.

#cd /usr/src/
#wget http://pecl.php.net/get/oauth-1.2.2.tgz
#tar jxvf oauth-1.2.2.tgz
#cd oauth-1.2.2
#phpize
#CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
#make && make install

After installing the OAuth add the extension in php.ini file.

#vim /etc/php.ini

Append the OAuth extension as

extension=oauth.so

Restart apache service to take effect of php.ini

/etc/init.d/httpd restart

Now, You can see the OAuth module in php by running the below command

#php -m | grep oauth

Học lập trình web căn bản với PHP

Bài 1: Các kiến thức căn bản Part 1:  https://jimmyvan88.blogspot.com/2012/05/can-ban-lap-trinh-web-voi-php-bai-1-cac.html Part 2:  https://...