Skip to main content

Posts

Showing posts from January, 2017

HOW TO INSTALL ORIENTDB ON UBUNTU

##Orientdb Installation## # Installing Oracle Java# sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-set-default java -version ###Downloading and Installing OrientDB## wget https://orientdb.com/download.php?file=orientdb-community-2.1.3.tar.gz sudo tar -xf download.php?file=orientdb-community-2.1.3.tar.gz -C /opt sudo mv /opt/orientdb-community-2.1.3 /opt/orientdb ###Starting the Server### cd /opt/orientdb sudo bin/server.sh ###Since OrientDB is now running in your terminal window, in a second terminal window to the same Droplet, confirm that the server is listening on ports 2424 (for binary connections) and 2480 (for HTTP connections). To confirm that it's listening for binary connections, execute:### sudo netstat -plunt | grep 2424 sudo netstat -plunt | grep 2480 ###Connecting to the Console## sudo /opt/orientdb/bin/console.sh connect remote:127.0.0.1 root root-password exit

Install php on ubuntu 16.04

#Install Apache# sudo apt-get update sudo apt-get install apache2 #Install PHP# sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt #Install MySQL# sudo apt-get install mysql-server #Harden MySQL Server# sudo mysql_secure_installation #Use MySQL# mysql -u root -p # Enabling mod_rewrite# sudo a2enmod rewrite ##This will activate the module or alert you that the module is already in effect. To put these changes into effect, restart Apache.## sudo service apache2 restart ##curl install## sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get upgrade sudo apt-get install php-curl #Setting Up .htaccess# ##First, allow changes in the .htaccess file. Open the default Apache configuration file using nano or your favorite text editor##. sudo nano /etc/apache2/sites-enabled/000-default.conf or /etc/apache2/sites-available$ sudo gedit 000-default.conf ##Inside that file, you will find the <VirtualHost *:80> ....</VirtualHost>.