Gyaro Manual Installation Instructions (10 to 20 Minutes) for advance developers.
Requirements – Linux 6/7 with Php/Mysql/Mysql-PDO/Java 1.6-openjdk/Red5 Media Server 0.8
1) Upload gyaro web/upload folder on your server from ftp or sftp to www.example.com/anydirectory where anydirectory is the place which you will be using to visit gyaro from web.
Create Mysql database/Mysql Username/Mysql Password and add them to database from control panel.
2) Install Red5 media server 0.8 on your vps or dedicated server by using below procedure. Note: other red5 media server will not work with gyaro web and you need to install java-1.6.0-openjdk only because other versions will not work with red5 media server 0.8.
Login to your VPS or dedicated server with your root user details from SSH client like putty and type commands which are given below (you can copy these command and right click mouse inside SSH client to paste automatically.
yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
then after installing java-1.6.0-openjdk type below commands
mv red5-0.8.0.tar.gz?dl=0 red5-0.8.0.tar.gz
tar -zxvf red5-0.8.0.tar.gz
red5 installation is done successfully.
Now open gyaro web\red5 application red5 0.8.0\gyaro\WEB-INF\red5-web.properties in notepad or html editor and replace localhost/writemysqldatabasenamehere/writemysqlusernamehere/writemysqlusernamepasswordhere/youromain.com/ with your details in below format inside the red5-web.properties file.
Example of file :
After editing it might look like this
Now save the file and close it
Now open web browser and visit www.yourwebsite.com/anydirectory/ and it will open web installer, install it by the following steps, note in installation on second page you must add in red5 server address as rtmp://ipaddress/gyaro where /gyaro is the application folder name which you uploaded on server in /usr/local/red5/webapps folder
Once the web installation is completed, now go back to SSH terminal on your server and type the below command to start red5 media server
sh red5.sh &
red5 media server will be started and it will show logs of gyaro, wait for 1 to 2 minutes and if it shows bootstrap message then it means you didnt install red5 media server correctly or started red5 media server too fast, on every restart of red5 media server you must wait for 2 to 3 minutes for properly running red5 media server.
Now just visit your website www.yourwebsite.com/anydirectory/ and if your website is showing login screen of gyaro then simply go back to SSH client terminal window and on keyboard press CNTRL + D and it will close the SSH client. Red5 media server will run in background and if your gyaro installation from web doesnt show login screen and shows connecting message then it means red5 media server is stopped simply login to SSH client and type the command ./red5.sh & and CNTRL + D
For easily starting red5 media server without going to directory you can install red5 service using vim editor.
These are the steps you must do to install red5 as service on your VPS or dedicated server.
chmod 755 red5
vim red5 or vi red5
Then copy and paste below script by pressing i button of your keyboard
Note : if you install red5 in /usr/local/red5-1.0.0 or /opt/red5 directory then you must change path to RED5_DIR=/home in the below script
# Gyaro.com Auto Red5 Media Server Run Script
test -x $RED5_DIR/red5.sh || exit 5
case “$1” in
echo -n “Starting Red5 Service”
echo -n ” ”
su -s /bin/bash -c “$RED5_DIR/red5.sh &” red5
echo -n “Shutting down red5″
echo -n ” ”
su -s /bin/bash -c “$RED5_DIR/red5-shutdown.sh &” red5
## Stop the service and regardless of whether it was
## running or not, start it again.
then press ESC and type the below command
it will close the vim editor
then you need to type the commands in SSH client
and you can be able to start red5 as service on your server by below commands
service red5 start
service red5 stop
service red5 restart
Still Installation Not Working ?
Check if your mysql server is connected remotely to mysql database on your server if didnt connected then its because of incorrect address in red5 0.8.0\gyaro\WEB-INF\red5-web.properties (mysql://localhost:3306/…..) where you need to replace localhost with ipaddress or domain name with which your are able to connect to mysql database remotely from your SSH client on your server.
open putty ssh client:
mysql -h host -D database_name -u username -p
host with mysql ip address
database_name with your database name
username with mysql username
Next it will ask you password then enter password and if it gets connected to mysql server then it will show
If mysql:> is showing that means mysql is connecting from hostname you logged in which you added in red5 application otherwise error 2003 or any other error will be shown.
Once you come to know with which hostname you are able to login to your mysql server you can simply update it in red5 0.8.0\gyaro\WEB-INF\red5-web.properties and restart red5 media server for changes to take effect.
Social Login Integration
How to make facebook application ?
Please login to facebook and visit this page https://developers.facebook.com/apps then click on Create New App or Create New Application and it will popup window and you will see fields like
App Display Name : enter your site name or anything
App Namespace : leave it empty.
on the next page you will see section
(Select how your app integrates with Facebook)
then click on website and enter url to http://www.yourdomainname.com/gyaro/ or http://www.yourdomainname.com/
and then click on save changes button then it will give you Api id and App secret, copy Api id and App secret in admin tabs
You are done creating your facebook login access for your website.
Important : We dont guarantee social login integration of twitter and google + to work because of social login integration developement from social websites time to time.
How to make twitter application ?
Please go here https://dev.twitter.com/ then you will see section (Create applications that integrate Twitter) with option Create an app just click on it then you will see new page asking for twitter username and password enter your details and login then after login it will show new page asking to enter details of your site please enter all details like below.
website : http://www.yourdomainname.com/index.php
Callback URL : http://www.yourdomainname.com/gyaro/index.php or http://www.yourdomainname.com/index.php
then click on “create your twitter application” then it will generate Consumer key and Consumer secret which you will need to enter into admin tabs.
All Done! Congrats!
How to make google application ?
Please go here https://code.google.com/apis/console/b/0/ and login with your google account and click on create project and you will see API access on left menu panel just click on API Access and you will see again on new page Create an OAuth 2.0 client ID… just click on it then a popup window will be shown then enter Product Name as your site name and upload product logo then click on next and select web application and enter your site link in your site or hostname then click on next or finish and you will see API Access client ID and Client Secret which you need to enter in admin tab of social networks of gyaro.
Important : If you are creating client id for the first time then enter
Redirect URIs: none leave blank
Homepage url must be : http://yourdomainname.com
Social Integrations of Google + and Twitter is not guaranteed to work because of api changes from social websites.