<\/span><\/h2>\nBefore we begin, you will need to login to your server via SSH as user root:<\/p>\n
ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\nand replace \u201cIP_ADDRESS\u201d and \u201cPORT_NUMBER\u201d with your actual server IP address and SSH port number.<\/p>\n
Let’s also make sure that your Ubuntu 16.04 server is up-to-date by running the following commands:<\/p>\n
apt-get update\r\napt-get upgrade<\/pre>\n<\/span>2. Install Nginx<\/span><\/h2>\nTo install the latest stable Nginx version on your server, simply run the following command:<\/p>\n
apt-get install nginx<\/pre>\n<\/span>3. Install and Configure MySQL Database Server<\/span><\/h2>\nTo install the MySQL database server, run the following command:<\/p>\n
apt-get install mysql-client mysql-server<\/pre>\nAfter the installation, you can run the mysql_secure_installation <\/strong>script to set your MySQL root password and secure your MySQL installation.<\/p>\nmysql_secure_installation<\/pre>\n<\/span>4. Install PHP and PHP-FPM<\/span><\/h2>\nNext, we will install PHP 7.0, PHP-FPM and some additional PHP modules which are required for OsTicket to run properly:<\/p>\n
apt-get install php7.0-mysql php7.0-cgi php7.0-fpm php7.0-cli php7.0-curl php7.0-mcrypt php7.0-gd php7.0-imap php7.0-mbstring php7.0-xml php7.0-intl php-apcu<\/pre>\n<\/span>5.\u00a0 Download a fresh copy of osTicket<\/span><\/h2>\nBefore we download osTicket we need to create a new directory. We can do this with the following command:<\/p>\n
mkdir \/var\/www\/osticket<\/pre>\nWe can change our current working directory with:<\/p>\n
cd \/var\/www\/osticket<\/pre>\nNow we can download the latest OsTicket version inside this directory with:<\/p>\n
wget http:\/\/osticket.com\/sites\/default\/files\/download\/osTicket-v1.10.1.zip<\/pre>\n<\/span>6. Extract and configure osTicket<\/span><\/h2>\nTo extract the archive run:<\/p>\n
unzip osTicket-v1.10.1.zip<\/pre>\nNext, you need to make a copy of the sample configuration file:<\/p>\n
cp \/var\/www\/osticket\/upload\/include\/ost-sampleconfig.php \/var\/www\/osticket\/upload\/include\/ost-config.php<\/pre>\nAnd finaly, we need to change ownerhsip of our osticket directory with:<\/p>\n
chown -R www-data:www-data \/var\/www\/osticket<\/pre>\n