{"id":1677,"date":"2023-11-12T10:53:28","date_gmt":"2025-11-03T04:32:12","guid":{"rendered":""},"modified":"2025-02-02T00:46:17","modified_gmt":"2025-02-01T23:46:17","slug":"installera-osticket-med-nginx-p-debian-11","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/installera-osticket-med-nginx-p-debian-11\/","title":{"rendered":"Installera osTicket med Nginx p\u00e5 Debian 11"},"content":{"rendered":"<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<p>I den h\u00e4r guiden g\u00e5r vi igenom hur du installerar osTicket, ett popul\u00e4rt support- och helpdesk-system, med Nginx p\u00e5 Debian 11. Denna installation kan vara s\u00e4rskilt anv\u00e4ndbar f\u00f6r anv\u00e4ndare av en <a href=\"https:\/\/netcloud24.com?language=swedish&amp;currency=4\">VPS-server<\/a>.<\/p>\n<h2>F\u00f6ruts\u00e4ttningar<\/h2>\n<ul>\n<li>Debian 11 installerat p\u00e5 din server.<\/li>\n<li>Root-\u00e5tkomst eller sudo-r\u00e4ttigheter.<\/li>\n<li>En aktiv internetanslutning.<\/li>\n<li>Nginx installerat.<\/li>\n<li>PHP och n\u00f6dv\u00e4ndiga PHP-till\u00e4gg installerade.<\/li>\n<li>MySQL eller MariaDB installerat.<\/li>\n<\/ul>\n<h2>Steg 1: Uppdatera systemet<\/h2>\n<p>\u00d6ppna terminalen och k\u00f6r f\u00f6ljande kommando f\u00f6r att uppdatera systempaketen:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<h2>Steg 2: Installera n\u00f6dv\u00e4ndiga paket<\/h2>\n<p>K\u00f6r f\u00f6ljande kommando f\u00f6r att installera PHP och n\u00f6dv\u00e4ndiga till\u00e4gg:<\/p>\n<pre><code>sudo apt install php php-mysql php-mbstring php-xml php-curl php-gd -y<\/code><\/pre>\n<h2>Steg 3: Ladda ner osTicket<\/h2>\n<p>Ladda ner den senaste versionen av osTicket:<\/p>\n<pre><code>wget https:\/\/github.com\/osTicket\/osTicket\/releases\/download\/v1.17\/osTicket-v1.17.zip<\/code><\/pre>\n<p>Extrahera zip-filen:<\/p>\n<pre><code>unzip osTicket-v1.17.zip -d \/var\/www\/html\/osticket<\/code><\/pre>\n<h2>Steg 4: St\u00e4ll in r\u00e4ttigheterna<\/h2>\n<p>S\u00e4tt r\u00e4ttigheterna f\u00f6r osTicket-mappen:<\/p>\n<pre><code>sudo chown -R www-data:www-data \/var\/www\/html\/osticket\r\nsudo chmod -R 755 \/var\/www\/html\/osticket<\/code><\/pre>\n<h2>Steg 5: Skapa en databas f\u00f6r osTicket<\/h2>\n<p>Anslut till MySQL\/MariaDB:<\/p>\n<pre><code>sudo mysql -u root -p<\/code><\/pre>\n<p>Skapa en databas och anv\u00e4ndare f\u00f6r osTicket:<\/p>\n<pre><code>CREATE DATABASE osticket;\r\nCREATE USER 'osticketuser'@'localhost' IDENTIFIED BY 'your_password';\r\nGRANT ALL PRIVILEGES ON osticket.* TO 'osticketuser'@'localhost';\r\nFLUSH PRIVILEGES;\r\nEXIT;<\/code><\/pre>\n<h2>Steg 6: Konfigurera Nginx f\u00f6r osTicket<\/h2>\n<p>Skapa en ny konfigurationsfil f\u00f6r Nginx:<\/p>\n<pre><code>sudo nano \/etc\/nginx\/sites-available\/osticket<\/code><\/pre>\n<p>L\u00e4gg till f\u00f6ljande konfiguration i filen:<\/p>\n<pre><code>server {\r\n        listen 80;\r\n        server_name your_domain_or_IP;\r\n\r\n        root \/var\/www\/html\/osticket\/upload;\r\n        index index.php;\r\n\r\n        location \/ {\r\n            try_files $uri $uri\/ \/index.php?$query_string;\r\n        }\r\n\r\n        location ~ \\.php$ {\r\n            include snippets\/fastcgi-php.conf;\r\n            fastcgi_pass unix:\/var\/run\/php\/php7.4-fpm.sock; # Kontrollera PHP-version\r\n            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n            include fastcgi_params;\r\n        }\r\n\r\n        location ~ \/\\.ht {\r\n            deny all;\r\n        }\r\n    }<\/code><\/pre>\n<p>Ers\u00e4tt `<code>your_domain_or_IP<\/code>` med din faktiska dom\u00e4n eller serverns IP-adress.<\/p>\n<h2>Steg 7: Aktivera konfigurationen och starta om Nginx<\/h2>\n<p>K\u00f6r f\u00f6ljande kommandon f\u00f6r att aktivera konfigurationen och starta om Nginx:<\/p>\n<pre><code>sudo ln -s \/etc\/nginx\/sites-available\/osticket \/etc\/nginx\/sites-enabled\/\r\nsudo systemctl restart nginx<\/code><\/pre>\n<h2>Steg 8: Slutf\u00f6r installationen via webbl\u00e4saren<\/h2>\n<p>Navigera till f\u00f6ljande URL i din webbl\u00e4sare f\u00f6r att slutf\u00f6ra installationen av osTicket:<\/p>\n<pre><code>http:\/\/your_domain_or_IP\/setup\/index.php<\/code><\/pre>\n<h2>Avslutning<\/h2>\n<p>Ditt osTicket-system \u00e4r nu installerat och klart f\u00f6r anv\u00e4ndning. Genom att anv\u00e4nda denna metod kan du enkelt hantera din supportl\u00f6sning fr\u00e5n en <a href=\"https:\/\/netcloud24.com?language=swedish&amp;currency=4\">VPS-server<\/a>.<\/p>\n<p>\u00a0<\/p>\n<p><a href=\"https:\/\/de.netcloud24.com\/\" target=\"_blank\">Windows VPS Deutschland<\/a><\/p>\n<p><a href=\"https:\/\/es.netcloud24.com\/\" target=\"_blank\">Windows VPS Espa\u00f1a<\/a><\/p>\n<p><a href=\"https:\/\/nl.netcloud24.com\/\" target=\"_blank\">Windows VPS Nederland<\/a><\/p>\n<p><a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\">Windows VPS Italia<\/a><\/p>\n<p><a href=\"https:\/\/pt.netcloud24.com\/\" target=\"_blank\">Windows VPS Portugal<\/a><\/p>\n<p><a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\">VPS Windows Italia<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS Sverige<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS Norge<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS T\u00fcrkiye<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows RDS (Remote Desktop Services)<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 I den h\u00e4r guiden g\u00e5r vi igenom hur du installerar osTicket, ett popul\u00e4rt support- och helpdesk-system, med Nginx p\u00e5 Debian 11. Denna installation kan vara\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-1677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1677"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1677\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}