SlideShare ist ein Scribd-Unternehmen logo
1 von 4
Downloaden Sie, um offline zu lesen
WebSetNet
Webmaster Blog
http://websetnet.com
How to install LAMP and run osTicket on a CentOS 6 VPS
In the following tutorial we are going to show you how you can install and configure LAMP
(Linux Apache MySQL and PHP) on your [Y/n] 6 VPS and run your own, support ticketing
[Y/n] powered by osTicket.What is osTicket?
It is an open source support ticketing [Y/n]. It seamlessly routes inquiries created via email,
[Y/n]-forms and phone calls into a simple, easy-to-use, multi-user, [Y/n]-based customer support
platform.
What you need to run osTicket on your Linux Virtual Server?
A Webserver like Apache
PHP server version 5.3 or higher
mysqli PHP extension
gd PHP extension
gettext PHP extension
imap PHP extension
json PHP extension
mbstring PHP extension
xml PHP extension
MySQL Database server version 5.0 or higher
For this tutorial we are using one of our SSD VPS Hosting Plans, installed with a minimal
CentOS 6 base installation.
INITIATE A SCREEN SESSION
Before proceeding any further, SSH to your server and initiate a screencode> session using the
following command:
1 / 4
WebSetNet
Webmaster Blog
http://websetnet.com
## screen -U -S osticket
UPDATE THE CENTOS SYSTEM
Next thing to do, is to always make sure your [Y/n] VPS is fully up-to-date using:
## yum update
INSTALL AND SET-UP LAMP
Since osTicket requires a webserver, a database server and a php server, you will have to set-
up these on your ssd virtual server. Let’s start with the webserver, then the php server and the
extensions required by osTicket and finally the database server.
INSTALL APACHE
Install the Apache webserver, add it to your server’s start-up and start it up using the
commands below:
## yum install
httpd -y ## chkconfig --levels 235 httpd on ## service httpd start
OK, you can now try to navigate to http://yourdomain.tld (which should be resolving to your VPS
IP) and you should see Apache’s default page in your browser.
INSTALL PHP
Proceed with the PHP installation using the command below:
## yum install php php-{cli,common,gd,mysql,imap,mbstring,xml} -y
2 / 4
WebSetNet
Webmaster Blog
http://websetnet.com
Test your PHP installation is OK by creating info.php file in your webserver’s document root in
/var/www/html using:
## echo -e "" > /var/www/html/info.php
once the info.php file is created, reload Apache using:
## service httpd restart
Now open the info.php file in your browser (http://yourdomain.tld/info.php) and you should see
various information about your PHP installation.
INSTALL MySQL
Install the MySQL database server, add it to your system start-up and start it up using the
commands below:
## yum install mysql mysql-server -y ## chkconfig --levels 235 mysqld
on ## service mysqld start
Next, you may want to run MySQL mysql_secure_installation post installation script by running
the following in your terminal:
## mysql_secure_installation
Set root password
? [Y/n] Y Remove anonymous users? [Y/n] Y Disallow root login remote
ly? [Y/n] Y Remove test database and access to it? [Y/n] Y Reload pr
ivilege tables now? [Y/n] Y
osTicket INSTALLATION
At the time of writing this article, osTicket is at version 1.9.2. That being said, always make sure
you get the latest version available and also be sure to change the relevant sections in the
commands below:
3 / 4
WebSetNet
Webmaster Blog
http://websetnet.com
## mkdir -p /opt/osticket ## wget http://osticket.com/sites/default/f
iles/download/osTicket-v1.9.2.zip -P /tmp ## unzip -d /opt/osticket /
tmp/osTicket-v1.9.2.zip
ok, next create a symbolic link in /var/www/html/support to osTicket upload directory in
/opt/osticket/upload using the following command:
## ln -s /opt/osticket/upload /var/www/html/support
At this point you are somewhat ready to start the installation of osTicket, but let’s configure
Apache Vhost Directive and use support.mydomain.com to access the osTicket installation
on your ssd virtual server.
CREATE APACHE VHOST
First, make sure name-based virtual hosting is enabled in your Apache webserver. This is
usually done by uncommenting NameVirtualHost *:80 in your main Apache configuration file in
/etc/httpd/conf/httpd.conf. You can use your favorite editor to edit the configuration file or use
the command below to enable this option if it’s not already enabled:
## sed -i "/^#NameVirtualHost *:80$/ s/#NameVirtualHost *:80/NameVirtu
alHost *:80/" /etc/httpd/conf/httpd.conf
Next, append the section below to /etc/httpd/conf/httpd.conf:
DocumentRoot /var/www/html/support ServerName support.mydomain.com
ServerAlias www.support.mydomain.com
Powered by TCPDF (www.tcpdf.org)
4 / 4

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
Intellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxIntellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxBipin Adhikari
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
Elevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New OrleansElevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New Orleanscorenetworkseo
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 

Kürzlich hochgeladen (20)

Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
Intellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptxIntellectual property rightsand its types.pptx
Intellectual property rightsand its types.pptx
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
Elevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New OrleansElevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New Orleans
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 

Empfohlen

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Empfohlen (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

How to-install-lamp-and-run-osticket-on-a-centos-6-vps

  • 1. WebSetNet Webmaster Blog http://websetnet.com How to install LAMP and run osTicket on a CentOS 6 VPS In the following tutorial we are going to show you how you can install and configure LAMP (Linux Apache MySQL and PHP) on your [Y/n] 6 VPS and run your own, support ticketing [Y/n] powered by osTicket.What is osTicket? It is an open source support ticketing [Y/n]. It seamlessly routes inquiries created via email, [Y/n]-forms and phone calls into a simple, easy-to-use, multi-user, [Y/n]-based customer support platform. What you need to run osTicket on your Linux Virtual Server? A Webserver like Apache PHP server version 5.3 or higher mysqli PHP extension gd PHP extension gettext PHP extension imap PHP extension json PHP extension mbstring PHP extension xml PHP extension MySQL Database server version 5.0 or higher For this tutorial we are using one of our SSD VPS Hosting Plans, installed with a minimal CentOS 6 base installation. INITIATE A SCREEN SESSION Before proceeding any further, SSH to your server and initiate a screencode> session using the following command: 1 / 4
  • 2. WebSetNet Webmaster Blog http://websetnet.com ## screen -U -S osticket UPDATE THE CENTOS SYSTEM Next thing to do, is to always make sure your [Y/n] VPS is fully up-to-date using: ## yum update INSTALL AND SET-UP LAMP Since osTicket requires a webserver, a database server and a php server, you will have to set- up these on your ssd virtual server. Let’s start with the webserver, then the php server and the extensions required by osTicket and finally the database server. INSTALL APACHE Install the Apache webserver, add it to your server’s start-up and start it up using the commands below: ## yum install httpd -y ## chkconfig --levels 235 httpd on ## service httpd start OK, you can now try to navigate to http://yourdomain.tld (which should be resolving to your VPS IP) and you should see Apache’s default page in your browser. INSTALL PHP Proceed with the PHP installation using the command below: ## yum install php php-{cli,common,gd,mysql,imap,mbstring,xml} -y 2 / 4
  • 3. WebSetNet Webmaster Blog http://websetnet.com Test your PHP installation is OK by creating info.php file in your webserver’s document root in /var/www/html using: ## echo -e "" > /var/www/html/info.php once the info.php file is created, reload Apache using: ## service httpd restart Now open the info.php file in your browser (http://yourdomain.tld/info.php) and you should see various information about your PHP installation. INSTALL MySQL Install the MySQL database server, add it to your system start-up and start it up using the commands below: ## yum install mysql mysql-server -y ## chkconfig --levels 235 mysqld on ## service mysqld start Next, you may want to run MySQL mysql_secure_installation post installation script by running the following in your terminal: ## mysql_secure_installation Set root password ? [Y/n] Y Remove anonymous users? [Y/n] Y Disallow root login remote ly? [Y/n] Y Remove test database and access to it? [Y/n] Y Reload pr ivilege tables now? [Y/n] Y osTicket INSTALLATION At the time of writing this article, osTicket is at version 1.9.2. That being said, always make sure you get the latest version available and also be sure to change the relevant sections in the commands below: 3 / 4
  • 4. WebSetNet Webmaster Blog http://websetnet.com ## mkdir -p /opt/osticket ## wget http://osticket.com/sites/default/f iles/download/osTicket-v1.9.2.zip -P /tmp ## unzip -d /opt/osticket / tmp/osTicket-v1.9.2.zip ok, next create a symbolic link in /var/www/html/support to osTicket upload directory in /opt/osticket/upload using the following command: ## ln -s /opt/osticket/upload /var/www/html/support At this point you are somewhat ready to start the installation of osTicket, but let’s configure Apache Vhost Directive and use support.mydomain.com to access the osTicket installation on your ssd virtual server. CREATE APACHE VHOST First, make sure name-based virtual hosting is enabled in your Apache webserver. This is usually done by uncommenting NameVirtualHost *:80 in your main Apache configuration file in /etc/httpd/conf/httpd.conf. You can use your favorite editor to edit the configuration file or use the command below to enable this option if it’s not already enabled: ## sed -i "/^#NameVirtualHost *:80$/ s/#NameVirtualHost *:80/NameVirtu alHost *:80/" /etc/httpd/conf/httpd.conf Next, append the section below to /etc/httpd/conf/httpd.conf: DocumentRoot /var/www/html/support ServerName support.mydomain.com ServerAlias www.support.mydomain.com Powered by TCPDF (www.tcpdf.org) 4 / 4