{"id":5797,"date":"2025-12-25T12:38:04","date_gmt":"2025-12-25T12:38:04","guid":{"rendered":"https:\/\/puvox.software\/blog\/?p=5797"},"modified":"2025-12-25T12:38:05","modified_gmt":"2025-12-25T12:38:05","slug":"configure-lamp-on-vps","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/configure-lamp-on-vps\/","title":{"rendered":"Configure LAMP on VPS"},"content":{"rendered":"<div class=\"default-content-clss content_5797 type_post \">\n<ul class=\"wp-block-list\">\n<li><\/li>\n\n\n\n<li><strong><em>LAMP<\/em> (APACHE &amp; MYSQL &amp; PHP)<\/strong>:<br>Now, instead of the combined articles (i.e. <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-22-04\">install-lamp-1<\/a> or <a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-a-lamp-stack-on-ubuntu-18-04\/\">install-lamp-2<\/a> ) I advise more specific oriented articles:<br>&#8211;\u00a0<a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-the-apache-web-server-on-ubuntu-22-04\">install apache<\/a><br>&#8211; <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-mysql-on-ubuntu-22-04\">install mysql<\/a><br>&#8211; install php: 1) Install <a href=\"https:\/\/github.com\/phpbrew\/phpbrew\/\">phpbrew<\/a>\u00a0 2) try\u00a0 <a href=\"https:\/\/puvox.software\/blog\/docker-php-8-zts-apache-swoole-parallel\/\">blog\/docker-php-8-zts-apache-swoole-parallel<\/a> &amp; <a href=\"https:\/\/github.com\/ccxt\/ccxt\/issues\/9708\">gmp install<\/a> 3) might need to add <code>AddType application\/x-httpd-php .php<\/code> in <code>\/etc\/apache2\/mods-available\/php.load<\/code><\/li>\n\n\n\n<li><strong>WordPress<\/strong> (with mysql):<br>&#8211; <a href=\"https:\/\/ubuntu.com\/tutorials\/install-and-configure-wordpress#1-overview\">ubuntu tutorial<\/a><br>&#8211; <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-wordpress-on-ubuntu-22-04-with-a-lamp-stack\">do.com\/wordpress-on-ubuntu<\/a><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>[PHP]:<br>&#8211; Install <a href=\"https:\/\/puvox.software\/blog\/install-redis-cache-for-php-8\">Redis Cache<\/a><br>&#8211; Install MBstring : <code>sudo apt-get install php-mbstring php8.1-mbstring php-gettext libapache2-mod-php8.1<\/code><\/li>\n\n\n\n<li>Install &amp; Configure mail: <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-configure-postfix-on-ubuntu-18-04\">article1<\/a> | <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04\">article2<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">### MYSQL ###<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add\/Create user: CREATE USER &#8216;myuser1&#8217;@&#8217;192.168.1.123&#8217; IDENTIFIED BY &#8216;password123&#8217;;<br>GRANT ALL PRIVILEGES ON dbnamee.* TO &#8216;myuser1&#8217;@&#8217;192.168.1.123&#8217;;<br>FLUSH Privileges;<\/li>\n\n\n\n<li>reset root pass;<\/li>\n\n\n\n<li>user password change :\u00a0<br><code>ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxxxxxxx';<\/code><\/li>\n\n\n\n<li><strong>disable mysql-logs<\/strong> : <a href=\"https:\/\/dba.stackexchange.com\/questions\/41050\/is-it-safe-to-delete-mysql-bin-files\">se.com\/delete-mysql-bin-files<\/a> &amp; <a href=\"https:\/\/dba.stackexchange.com\/questions\/72770\/disable-mysql-binary-logging-with-log-bin-variable\">se.com\/disable-mysql-logging<\/a><br>\/etc\/mysql\/my.cnf &#8211; ><br>[mysqld]<br>max_allowed_packet = 512M<br>skip-log-bin<br>binlog_expire_logs_seconds=1600 In mysql:\u00a0 SHOW VARIABLES LIKE &#8216;max_allowed_packet&#8217;;<br>SET @@global.max_allowed_packet = 16777215;<br>SHOW VARIABLES LIKE &#8216;max_allowed_packet&#8217;;<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_5797 type_post \"><p>### MYSQL ###<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[],"class_list":["post-5797","post","type-post","status-publish","format-standard","hentry","category-coding"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/5797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=5797"}],"version-history":[{"count":1,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/5797\/revisions"}],"predecessor-version":[{"id":5798,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/5797\/revisions\/5798"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=5797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=5797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=5797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}