{"id":467,"date":"2023-07-30T20:33:17","date_gmt":"2023-07-30T18:33:17","guid":{"rendered":"https:\/\/schoppe.it\/wiki\/?p=467"},"modified":"2024-09-03T08:50:58","modified_gmt":"2024-09-03T06:50:58","slug":"wordpress-auf-debian-12-installieren","status":"publish","type":"post","link":"https:\/\/schoppe.it\/wiki\/wordpress-auf-debian-12-installieren\/","title":{"rendered":"WordPress auf Debian 12 installieren"},"content":{"rendered":"<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\napt update\napt upgrade\napt-get install nginx\nsystemctl start nginx\nsystemctl enable nginx\nsystemctl status nginx\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"217\" src=\"https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-193625.png\" alt=\"\" class=\"wp-image-468\" srcset=\"https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-193625.png 560w, https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-193625-300x116.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\napt-get install php php-mysql php-fpm php-curl php-gd php-intl php-mbstring php-soap php-xml php-xmlrpc php-zip mariadb-server mariadb-client\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsystemctl start mariadb\nsystemctl enable mariadb\nsystemctl status mariadb\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsystemctl start php8.2-fpm\nsystemctl enable php8.2-fpm\nsystemctl status php8.2-fpm\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmysql_secure_installation\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"1010\" src=\"https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-194309.png\" alt=\"\" class=\"wp-image-469\" srcset=\"https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-194309.png 624w, https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-194309-185x300.png 185w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmysql\n\nCREATE DATABASE wordpress_db;\nCREATE USER &#039;wordpress_db_user&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;\nGRANT ALL PRIVILEGES ON wordpress_db.* to wordpress_db_user@&#039;localhost&#039;;\nFLUSH PRIVILEGES;\nexit\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwget -O \/tmp\/wordpress.tar.gz https:\/\/wordpress.org\/latest.tar.gz\n\ntar -xzvf \/tmp\/wordpress.tar.gz -C \/var\/www\/html\n\nchown -R www-data.www-data \/var\/www\/html\/wordpress\nchmod -R 755 \/var\/www\/html\/wordpress\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnano \/etc\/nginx\/conf.d\/wordpress.conf\n\nserver {\n        listen 80;\n        listen &#x5B;::]:80;\n        root \/var\/www\/html\/wordpress;\n        index index.php index.html index.htm;\n        error_log \/var\/log\/nginx\/wordpress_error.log;\n        access_log \/var\/log\/nginx\/wordpres_access.log;\n        client_max_body_size 100M;\n        location \/ {\n                try_files $uri $uri\/ \/index.php?$args;\n        }\n        location ~ \\.php$ {\n                include snippets\/fastcgi-php.conf;\n                fastcgi_pass unix:\/run\/php\/php7.4-fpm.sock;\n                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        }\n}\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nrm \/etc\/nginx\/sites-enabled\/default\nrm \/etc\/nginx\/sites-available\/default\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnginx -t\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsystemctl reload nginx\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"489\" height=\"726\" src=\"https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-202409.png\" alt=\"\" class=\"wp-image-470\" srcset=\"https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-202409.png 489w, https:\/\/schoppe.it\/wiki\/wp-content\/uploads\/sites\/2\/2023\/07\/Screenshot-2023-07-30-202409-202x300.png 202w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":470,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118,14],"tags":[],"powershell":[],"wordpress":[],"exchange":[],"linux":[91,111,104,174,176,178,177,175,173,121,179,156,161,93],"class_list":["post-467","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-wordpress","linux-apt-install","linux-apt-update","linux-apt-upgrade","linux-create-database","linux-create-user","linux-flush-privileges","linux-grant-all-privileges","linux-mysql","linux-mysql_secure_installation","linux-nano","linux-nginx","linux-rm","linux-systemctl","linux-wget","entry"],"_links":{"self":[{"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":1,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":471,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/posts\/467\/revisions\/471"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/media\/470"}],"wp:attachment":[{"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/tags?post=467"},{"taxonomy":"powershell","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/powershell?post=467"},{"taxonomy":"wordpress","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/wordpress?post=467"},{"taxonomy":"exchange","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/exchange?post=467"},{"taxonomy":"linux","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/linux?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}