{"id":12731,"date":"2025-01-24T14:46:11","date_gmt":"2025-01-24T14:46:11","guid":{"rendered":"https:\/\/myprojects.advchaweb.com\/?p=12731"},"modified":"2025-09-25T04:37:15","modified_gmt":"2025-09-25T04:37:15","slug":"install-osticket","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2025\/01\/24\/install-osticket\/","title":{"rendered":"Install osTicket"},"content":{"rendered":"<p>Ref: https:\/\/www.rosehosting.com\/blog\/how-to-install-osticket-on-ubuntu-22-04\/<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"ZBuWDbE3RE\"><p><a href=\"https:\/\/osticket.com\/download\/\">Download<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Download&#8221; &#8212; osTicket | Support Ticketing System\" src=\"https:\/\/osticket.com\/download\/embed\/#?secret=fx05O79Whe#?secret=ZBuWDbE3RE\" data-secret=\"ZBuWDbE3RE\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p><strong>Install osTicket 1.10<\/strong><\/p>\n<p>LOCAL SETUP (I uses PHP 7.4)<\/p>\n<p>I tried to setup a virtualhost:<\/p>\n<p>sudo gedit \/etc\/apache2\/sites-available\/osticket-v1.10.test.conf<\/p>\n<p>Here is the file osticket-v1.10.test.conf:<\/p>\n<p>[codesyntax lang=&#8221;text&#8221;]<\/p>\n<pre>&lt;VirtualHost osticket-v1.10.test:80&gt;\r\n    ServerName osticket-v1.10.test\r\n    ServerAlias www.osticket-v1.10.test\r\n    DocumentRoot \"\/home\/satria\/Documents\/projects\/osticket-v1.10\/upload\"\r\n    DirectoryIndex index.php\r\n    &lt;Directory \"\/home\/satria\/Documents\/projects\/osticket-v1.10\"&gt;\r\n        AllowOverride All\r\n        Allow from All\r\n        Require all granted\r\n    &lt;\/Directory&gt;\r\n    ErrorLog \/var\/log\/apache2\/osticket-v1.10.error.log \r\n    CustomLog \/var\/log\/apache2\/osticket-v1.10.access.log combined\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>[\/codesyntax]<\/p>\n<p>activate it:<\/p>\n<p>sudo a2ensite osticket-v1.10.test<\/p>\n<p>Restart\/reload the server:<\/p>\n<p>sudo systemctl reload apache2<\/p>\n<p>Insert osticket-v1.10.test in my local host:<\/p>\n<p>sudo gedit \/etc\/hosts<\/p>\n<p>Here is the entry that need to be put in:<\/p>\n<p>127.0.0.1 osticket-v1.10.test<\/p>\n<p>Restart\/reload the server:<\/p>\n<p>sudo systemctl reload apache2<\/p>\n<p>Change the files &amp; dir permission:<br \/>\nsatria@teddy:~\/Documents\/projects\/osticket-v1.10$ sudo chmod -R 777 .<\/p>\n<p>I need to install some php 7.4 extensions missing:<br \/>\nsudo apt install php7.4-imap &amp;&amp; sudo apt install php7.4-apcu<\/p>\n<p>Now the site is http:\/\/osticket-v1.10.test<br \/>\nSETUP:<br \/>\nrename\/copy<br \/>\nfrom:<br \/>\n\/home\/satria\/Documents\/projects\/osticket-v1.10\/upload\/include\/ost-sampleconfig.php<br \/>\nto:<br \/>\n\/home\/satria\/Documents\/projects\/osticket-v1.10\/upload\/include\/ost-config.php<\/p>\n<p>create a new database : osticket_110<\/p>\n<p>set user account<br \/>\nusername: adminOT<br \/>\npassword: adminOT<\/p>\n<p>after the successful installation:<br \/>\nsatria@teddy:~\/Documents\/projects\/osticket-v1.10$ sudo chmod 0644 upload\/include\/ost-config.php<\/p>\n<p>Your osTicket URL:<br \/>\nhttp:\/\/osticket-v1.10.test\/<\/p>\n<p>Your Staff Control Panel or admin:<br \/>\nhttp:\/\/osticket-v1.10.test\/scp<\/p>\n<p>after the admin login, I got &#8216;Valid CSRF Token Required&#8217;<br \/>\nSOLUTION:<br \/>\nREF: https:\/\/stackoverflow.com\/questions\/41542268\/valid-csrf-token-required-in-osticket-after-login<br \/>\nin include\/class.ostsession.php<\/p>\n<p>Just add this line:<\/p>\n<p>$this-&gt;data-&gt;session_data = &#8220;&#8221;;<br \/>\nAfter:<\/p>\n<p>catch (DoesNotExist $e) {<br \/>\n$this-&gt;data = new SessionData([&#8216;session_id&#8217; =&gt; $id]);<br \/>\n}<\/p>\n<p>So it will be:<\/p>\n<p>catch (DoesNotExist $e) {<br \/>\n$this-&gt;data = new SessionData([&#8216;session_id&#8217; =&gt; $id]);<br \/>\n$this-&gt;data-&gt;session_data = &#8220;&#8221;;<br \/>\n}<\/p>\n<p>Then try to login from scratch, don&#8217;t just refresh the submission.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12733\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2025\/01\/screenshot-osticket-v1_10_test-2025_01_24-21_46_52.png\" alt=\"\" width=\"1003\" height=\"395\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2025\/01\/screenshot-osticket-v1_10_test-2025_01_24-21_46_52.png 1003w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2025\/01\/screenshot-osticket-v1_10_test-2025_01_24-21_46_52-300x118.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2025\/01\/screenshot-osticket-v1_10_test-2025_01_24-21_46_52-768x302.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p><strong>Install osTicket 1.18.1<\/strong><\/p>\n<p>LOCAL SETUP (I uses PHP 8.2)<br \/>\n[codesyntax lang=&#8221;bash&#8221;]<\/p>\n<pre>sudo a2dismod php7.4 \r\nsudo systemctl reload apache2 \r\n\r\nsudo a2enmod php8.2\r\nsudo systemctl reload apache2<\/pre>\n<p>[\/codesyntax]<\/p>\n<p>I tried to setup a virtualhost:<\/p>\n<p>sudo gedit \/etc\/apache2\/sites-available\/osticket-v1.18.1.test.conf<\/p>\n<p>Here is the file osticket-v1.18.1.test.conf:<\/p>\n<p>[codesyntax lang=&#8221;text&#8221;]<\/p>\n<pre>&lt;VirtualHost osticket-v1.18.1.test:80&gt;\r\n    ServerName osticket-v1.18.1.test\r\n    ServerAlias www.osticket-v1.18.1.test\r\n    DocumentRoot \"\/home\/satria\/Documents\/projects\/osticket-v1.18.1\/osticket-v1.18.1\/upload\"\r\n    DirectoryIndex index.php\r\n    &lt;Directory \"\/home\/satria\/Documents\/projects\/osticket-v1.18.1\"&gt;\r\n        AllowOverride All\r\n        Allow from All\r\n        Require all granted\r\n    &lt;\/Directory&gt;\r\n    ErrorLog \/var\/log\/apache2\/osticket-v1.18.1.error.log \r\n    CustomLog \/var\/log\/apache2\/osticket-v1.18.1.access.log combined\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>[\/codesyntax]<\/p>\n<p>activate it:<\/p>\n<p>sudo a2ensite osticket-v1.18.1.test<\/p>\n<p>Restart\/reload the server:<\/p>\n<p>sudo systemctl reload apache2<\/p>\n<p>Insert osticket-v1.18.1.test in my local host:<\/p>\n<p>sudo gedit \/etc\/hosts<\/p>\n<p>Here is the entry that need to be put in:<\/p>\n<p>127.0.0.1 osticket-v1.18.1.test<\/p>\n<p>Restart\/reload the server:<\/p>\n<p>sudo systemctl reload apache2<\/p>\n<p>Change the files &amp; dir permission:<br \/>\nsatria@teddy:~\/Documents\/projects\/osticket-v1.18.1$ sudo chmod -R 777 .<\/p>\n<p>I need to install some php 8.2 extensions missing (if not exist):<br \/>\nsudo apt install php8.2-imap &amp;&amp; sudo apt install php8.2-apcu<\/p>\n<p>Now the site is http:\/\/osticket-v1.18.1.test<br \/>\nSETUP:<br \/>\nrename\/copy<br \/>\nfrom:<br \/>\n\/home\/satria\/Documents\/projects\/osticket-v1.18.1\/osticket-v1.18.1\/upload\/include\/ost-sampleconfig.php<br \/>\nto:<br \/>\n\/home\/satria\/Documents\/projects\/osticket-v1.18.1\/osticket-v1.18.1\/upload\/include\/ost-config.php<\/p>\n<p>create a new database : osticket_1181<\/p>\n<p>set user account<br \/>\nusername: adminOT<br \/>\npassword: adminOT<\/p>\n<p>after the successful installation:<br \/>\nsatria@teddy:~\/Documents\/projects\/osticket-v1.18.1\/osticket-v1.18.1\/$ sudo chmod 0644 upload\/include\/ost-config.php<\/p>\n<p>Your osTicket URL:<br \/>\nhttp:\/\/osticket-v1.18.1.test\/<\/p>\n<p>Your Staff Control Panel or admin:<br \/>\nhttp:\/\/osticket-v1.18.1.test\/scp<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12737\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2025\/01\/screenshot-osticket-v1_18_1_test-2025_01_24-22_05_59.png\" alt=\"\" width=\"991\" height=\"384\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2025\/01\/screenshot-osticket-v1_18_1_test-2025_01_24-22_05_59.png 991w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2025\/01\/screenshot-osticket-v1_18_1_test-2025_01_24-22_05_59-300x116.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2025\/01\/screenshot-osticket-v1_18_1_test-2025_01_24-22_05_59-768x298.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/p>\n<p>THE EMAIL SETTING:<\/p>\n<p>configure emails setting (http:\/\/osticket-v1.18.1.test\/scp\/emails.php)<br \/>\nNote: Create a few emails alias for satria@advchaweb.com on the hostinger like osticket1@advchaweb.com, osticket2@advchaweb.com, osticket3@advchaweb.com<\/p>\n<p>Create a new email -&gt;<\/p>\n<p>Account Tab:<br \/>\nEmail Address: osticket1@advchaweb.com<br \/>\nEmail Name: osticket1@advchaweb.com<br \/>\nDepartment:<br \/>\nPriority: Normal<br \/>\nHelp Topic:<br \/>\nAuto Response: (unchecked)<\/p>\n<p>Remote Mailbox Tab:<br \/>\nMailbox Setting:<br \/>\nHostname: imap.hostinger.com<br \/>\nPort Number: 993<br \/>\nMail Folder: INBOX<br \/>\nProtocol: IMAP<br \/>\nAuthentication: Basic Authentication -&gt; Click &#8216;Config&#8217; button<br \/>\n&#8211;&gt;<br \/>\nEmail Address: satria@advchaweb.com<br \/>\npassword: +PL5x8mQ<\/p>\n<p>Email Fetching:<br \/>\nStatus: Enable\u00a0 &#8211;&gt; to fetch the incoming email<br \/>\nFetch Frequency: 15 minutes<br \/>\nEmails Per Fetch: 50<br \/>\nFetched Emails: Archive &#8211; move to folder -&gt; 2023OstFetched<\/p>\n<p>Outgoing (SMTP) Tab:<br \/>\nStatus: Enable &#8211;&gt; MUST BE<br \/>\nHostname: smtp.hostinger.com &#8211;&gt; NO. USE THE smtp-relay.brevo.com SETTING BELOW<br \/>\nPort Number:\u00a0465<br \/>\nAuthentication: Same as Remote Mailbox<br \/>\nHeader Spoofing: (checked) Allow for this email<\/p>\n<span class=\"rcp-restricted-content-message\">SORRY, ONLY ADMIN CAN SHOW THIS!<\/span>\n","protected":false},"excerpt":{"rendered":"<p>Ref: https:\/\/www.rosehosting.com\/blog\/how-to-install-osticket-on-ubuntu-22-04\/ Download Install osTicket 1.10 LOCAL SETUP (I uses PHP 7.4) I tried to setup a virtualhost: sudo gedit \/etc\/apache2\/sites-available\/osticket-v1.10.test.conf Here is the file osticket-v1.10.test.conf: [codesyntax lang=&#8221;text&#8221;] &lt;VirtualHost osticket-v1.10.test:80&gt; ServerName osticket-v1.10.test ServerAlias www.osticket-v1.10.test DocumentRoot &#8220;\/home\/satria\/Documents\/projects\/osticket-v1.10\/upload&#8221; DirectoryIndex index.php &lt;Directory &#8220;\/home\/satria\/Documents\/projects\/osticket-v1.10&#8221;&gt; AllowOverride All Allow from All Require all granted &lt;\/Directory&gt; ErrorLog \/var\/log\/apache2\/osticket-v1.10.error.log CustomLog \/var\/log\/apache2\/osticket-v1.10.access.log combined &lt;\/VirtualHost&gt; &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2025\/01\/24\/install-osticket\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install osTicket&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,17],"tags":[],"class_list":["post-12731","post","type-post","status-publish","format-standard","hentry","category-tutorial","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/12731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=12731"}],"version-history":[{"count":7,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/12731\/revisions"}],"predecessor-version":[{"id":13674,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/12731\/revisions\/13674"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=12731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=12731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=12731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}