Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/cwpsrv/var/services/oauth/v1.0a/server/ |
Upload File : |
In this example I assume that oauth-php lives in /home/john/src/oauth-php 1) Create a virtual host and set the DB_DSN VARIABLE to the DSN of your (mysql) database. Example <VirtualHost *> ServerAdmin admin@localhost ServerName hello.local DocumentRoot /home/john/src/oauth-php/example/server/www UseCanonicalName Off ServerSignature On SetEnv DB_DSN mysql://foo:bar@localhost/oauth_example_server_db <Directory "home/john/src/oauth-php/example/server/www"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all <IfModule mod_php5.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule> </Directory> </VirtualHost> 2) Create the database structure for the server: # mysql -u foo -p bar -h localhost < /home/john/src/oauth-php/library/store/mysql/mysql.sql 3) Download and install smarty into the smarty/core/smarty directory: # cd /home/john/src/oauth-php/example/server/core # wget 'http://www.smarty.net/do_download.php?download_file=Smarty-2.6.19.tar.gz' # tar zxf Smarty-2.6.19.tar.gz # mv Smarty-2.6.19 smarty 4) That's it! Point your browser to http://hello.local/ To get started. Arjan Scherpenisse <arjan@mediamatic.nl>, July 2008