[{"data":1,"prerenderedAt":214},["ShallowReactive",2],{"seo-verification":3,"blog-prestashop-on-a-vps-open-e-commerce-with-no-closed-platform-ma-en":6,"promo-bar-likely":213},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"key":7,"data":8},"blog-prestashop-on-a-vps-open-e-commerce-with-no-closed-platform-ma-en",{"id":9,"slug":10,"slugs":11,"title":15,"excerpt":16,"readTime":17,"views":18,"isPinned":19,"noindex":19,"publishedAt":20,"updatedAt":21,"category":22,"categories":28,"featuredImage":30,"bgImage":31,"posterImage":32,"relatedSolution":33,"intro":36,"sections":37,"ctaTitle":149,"ctaBody":150,"ctaButton":151,"ctaUrl":152,"relatedPosts":153},145,"prestashop-on-a-vps-open-e-commerce-with-no-closed-platform",{"fr":12,"en":10,"ar":13,"es":14},"installer-prestashop-vps","prestashop-على-vps-تجارة-إلكترونية-حرة-دون-منصة-مغلقة","instalar-prestashop-en-un-vps","How to Install PrestaShop on a VPS: Full Guide 2025","Deploy PrestaShop 8.x on a Ubuntu 24.04 VPS with Apache, PHP 8.2, MySQL 8 and SSL. Exact commands, requirements, troubleshooting and optimizations included.",8,0,false,"2026-01-31T00:00:00+00:00","2026-11-09T20:55:18+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":27},7,"Self-hosting","self-hosting","bg-indigo-500\u002F10 text-indigo-400","cloud",[29],{"id":23,"name":24,"slug":25,"color":26,"icon":27},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Finstaller-prestashop-vps-poster.svg",{"categorySlug":34,"appSlug":35},"e-commerce","prestashop","PrestaShop is one of the most widely used open-source e-commerce platforms. Hosted on a VPS, it runs in an isolated environment with allocated resources and full configuration freedom — unlike shared hosting, which quickly bottlenecks growing stores. This guide walks you through every step from server setup to a secure, optimized live store, with commands tested on Ubuntu 24.04 LTS.",[38,42,53,56,81,108,111,123,126,129,132,135,143,146],{"type":39,"title":40,"body":41},"h2","Why Run PrestaShop on a VPS Instead of Shared Hosting?","Shared hosting splits CPU, RAM and MySQL connections across dozens of customers. PrestaShop issues complex SQL queries (catalog joins, per-group pricing, promotion rules) and loads multiple PHP hooks on every page. On shared hosting these peaks are throttled by quotas — the store slows down or throws 503 errors precisely when traffic spikes (sales, Black Friday). On a VPS you get dedicated resources, root access and the freedom to install the PHP extensions PrestaShop needs, enable Redis for session caching or ElasticSearch for product search. Premium modules (advanced faceted search, CDP, connected ERP) run without friction.",{"type":43,"title":44,"items":45},"ul","What a VPS Unlocks for PrestaShop",[46,47,48,49,50,51,52],"**Unconstrained PHP 8.2** — choose the exact version required by your modules and upgrade on your own schedule.","**Redis for session and object caching** — cuts response time by 3–5× on high-traffic catalog pages.","**ElasticSearch \u002F Meilisearch** — instant search across catalogs of 10,000+ products, impossible to host on shared plans.","**Full root access and unrestricted cron** — PrestaShop scheduled tasks (orders, stock, exports), bulk CSV imports, ERP sync scripts.","**Subdomains and multi-store** — one PrestaShop installation can manage multiple stores on different domains from a single back office.","**Independent module licenses** — some modules verify the server IP; a VPS with a dedicated IP avoids license conflicts.","**On-demand snapshots and backups** — on ServOrbit VPS plans, you take snapshots from the client area, within your plan's limit: a restore point before every major update.",{"type":39,"title":54,"body":55},"System Requirements for PrestaShop 8.x","Before running any command, verify your VPS meets the official PrestaShop 8.x requirements (source: devdocs.prestashop-project.org). OS: Ubuntu 24.04 LTS (recommended) or Debian 12. PHP: 8.1 minimum, 8.2 recommended; required extensions: `curl`, `gd`, `intl`, `mbstring`, `zip`, `xml`, `mysql`, `pdo_mysql`, `bcmath`, `fileinfo`. Database: MySQL 8.0+ or MariaDB 10.6+. RAM: 2 GB minimum for stores under 5,000 products; 4 GB with ElasticSearch or 10,000+ SKUs. Disk: 5 GB minimum for the install + product media (plan 20 GB for an active store). Web server: Apache 2.4+ with `mod_rewrite` and `.htaccess` enabled, or Nginx with URL rewriting configured. SSL: HTTPS is mandatory since PrestaShop 1.7.x — a Let's Encrypt certificate is sufficient.",{"type":57,"title":58,"steps":59},"steps","Step 1 — Install Apache, PHP 8.2 and MySQL 8 on Ubuntu 24.04",[60,63,66,69,72,75,78],{"title":61,"body":62},"Connect to your VPS as root and update packages","`apt update && apt upgrade -y`",{"title":64,"body":65},"Install Apache and enable required modules","`apt install -y apache2 && a2enmod rewrite headers expires && systemctl enable --now apache2`",{"title":67,"body":68},"Add the Ondrej PHP PPA (PHP 8.2 is not in Ubuntu 24.04 default repos)","`apt install -y software-properties-common && add-apt-repository ppa:ondrej\u002Fphp -y && apt update`",{"title":70,"body":71},"Install PHP 8.2 and all extensions required by PrestaShop","`apt install -y php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-gd php8.2-intl php8.2-mbstring php8.2-mysql php8.2-xml php8.2-zip php8.2-bcmath php8.2-fileinfo libapache2-mod-php8.2`",{"title":73,"body":74},"Install MySQL 8 and secure the instance","`apt install -y mysql-server && mysql_secure_installation`",{"title":76,"body":77},"Create the PrestaShop database and user","`mysql -u root -p -e \"CREATE DATABASE prestashop CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'psuser'@'localhost' IDENTIFIED BY 'StrongPassword!'; GRANT ALL PRIVILEGES ON prestashop.* TO 'psuser'@'localhost'; FLUSH PRIVILEGES;\"`",{"title":79,"body":80},"Verify installed versions","`php8.2 -v && mysql --version && apache2 -v`",{"type":57,"title":82,"steps":83},"Step 2 — Download and Install PrestaShop",[84,87,90,93,96,99,102,105],{"title":85,"body":86},"Navigate to the web directory and download PrestaShop 8.x (check the latest version on github.com\u002FPrestaShop\u002FPrestaShop\u002Freleases)","`cd \u002Fvar\u002Fwww && wget https:\u002F\u002Fgithub.com\u002FPrestaShop\u002FPrestaShop\u002Freleases\u002Fdownload\u002F8.1.7\u002Fprestashop_8.1.7.zip`",{"title":88,"body":89},"Unzip the archive","`apt install -y unzip && unzip prestashop_8.1.7.zip -d prestashop && cd prestashop`",{"title":91,"body":92},"Unzip the inner archive if present (PrestaShop sometimes ships a zip inside a zip)","`ls *.zip && unzip prestashop.zip -d . 2>\u002Fdev\u002Fnull || true`",{"title":94,"body":95},"Set correct ownership for Apache","`chown -R www-data:www-data \u002Fvar\u002Fwww\u002Fprestashop && find \u002Fvar\u002Fwww\u002Fprestashop -type d -exec chmod 755 {} \\; && find \u002Fvar\u002Fwww\u002Fprestashop -type f -exec chmod 644 {} \\;`",{"title":97,"body":98},"Create the Apache VirtualHost (replace `shop.example.com` with your domain)","`nano \u002Fetc\u002Fapache2\u002Fsites-available\u002Fprestashop.conf`\nPaste:",{"title":100,"body":101},"Enable the site and reload Apache","`a2ensite prestashop.conf && a2dissite 000-default.conf && systemctl reload apache2`",{"title":103,"body":104},"Open `http:\u002F\u002Fshop.example.com` in your browser and follow the installation wizar","Open `http:\u002F\u002Fshop.example.com` in your browser and follow the installation wizard: language, license, database settings (host: `localhost`, database: `prestashop`, user: `psuser`), store information, admin account.",{"title":106,"body":107},"Once installation is complete, delete the `\u002Finstall` folder immediately","`rm -rf \u002Fvar\u002Fwww\u002Fprestashop\u002Finstall`",{"type":39,"title":109,"body":110},"Configure SSL with Let's Encrypt and Certbot","HTTPS is mandatory for PrestaShop: the back office blocks non-secure connections and modern browsers warn your customers. Install Certbot, obtain the certificate and let it renew automatically.",{"type":57,"title":112,"steps":113},"Obtain and Activate an SSL Certificate",[114,117,120],{"title":115,"body":116},"Install Certbot with the Apache plugin","`apt install -y certbot python3-certbot-apache`",{"title":118,"body":119},"Obtain the certificate (replace domain and email)","`certbot --apache -d shop.example.com --email admin@example.com --agree-tos --non-interactive`",{"title":121,"body":122},"Verify automatic renewal","`certbot renew --dry-run`\nCertbot adds a systemd timer automatically — no manual cron required.",{"type":39,"title":124,"body":125},"Optimize php.ini for PrestaShop","PHP's default values are too conservative for a production store. Edit `\u002Fetc\u002Fphp\u002F8.2\u002Fapache2\u002Fphp.ini` and adjust these key directives:\n\n- `memory_limit = 256M` (minimum; 512M with heavy modules)\n- `upload_max_filesize = 32M` (for high-resolution product image imports)\n- `post_max_size = 32M` (must be ≥ `upload_max_filesize`)\n- `max_execution_time = 300` (essential for large CSV catalog imports)\n- `max_input_vars = 5000` (PrestaShop generates many form fields in the back office)\n- `date.timezone = Europe\u002FLondon` (or your timezone)\n\nReload Apache after editing: `systemctl reload apache2`.",{"type":39,"title":127,"body":128},"Configure PrestaShop After Installation","Once logged into the back office (`\u002Fadmin\u003Chash>` — the hash is generated randomly at install time, save it), complete these essential settings: disable debug mode (Advanced Parameters › Performance › Debug mode = NO); enable Smarty cache set to 'Recompile templates only when files are updated'; enable Friendly URLs (Shop Parameters › Traffic & SEO › Friendly URL = YES) then regenerate the `.htaccess` from the same screen; set up caching (PrestaShop 8.x includes a native Redis module — enter `127.0.0.1:6379` if Redis is installed). Essential modules to activate immediately: Security Headers, reCAPTCHA anti-spam, Google Analytics GA4.",{"type":130,"body":131},"tip","Protect the back office at `\u002Fadmin\u003Chash>` by adding an IP restriction in Apache. In your VirtualHost, add a `\u003CLocation \u002Fadmin\u003Chash>>` block with `Require ip YOUR.FIXED.IP`. With a dynamic IP, add HTTP basic authentication as a second layer: `AuthType Basic \u002F AuthName \"Restricted\" \u002F AuthUserFile \u002Fetc\u002Fapache2\u002F.htpasswd \u002F Require valid-user`. Create the file with `htpasswd -c \u002Fetc\u002Fapache2\u002F.htpasswd adminuser`.",{"type":39,"title":133,"body":134},"Troubleshooting — Common Post-Install Errors","Common situations and their solutions:",{"type":43,"title":136,"items":137},"Frequent Issues and Fixes",[138,139,140,141,142],"**White screen on front or back office** — temporarily enable debug mode: edit `\u002Fvar\u002Fwww\u002Fprestashop\u002Fconfig\u002Fdefines.inc.php` and set `_PS_MODE_DEV_` to `true`. Read the displayed error, fix it, then set it back to `false`.","**403 errors on media or images** — permissions are wrong. Fix with `chown -R www-data:www-data \u002Fvar\u002Fwww\u002Fprestashop` then `find \u002Fvar\u002Fwww\u002Fprestashop -type d -exec chmod 755 {} \\;`.","**Slow catalog performance** — install Redis (`apt install -y redis-server`) and configure it under Advanced Parameters › Performance › Caching. Also enable Smarty cache.","**Corrupted override cache after a bad module** — delete autoload cache files: `rm -f \u002Fvar\u002Fwww\u002Fprestashop\u002Fcache\u002Fclass_index.php \u002Fvar\u002Fwww\u002Fprestashop\u002Fcache\u002Fautoload\u002F*.php` and clear the cache from the back office.","**Friendly URLs returning 404 — mod_rewrite not active** — verify `AllowOverride All` is present in the VirtualHost and the module is enabled: `a2enmod rewrite && systemctl reload apache2`.",{"type":39,"title":144,"body":145},"Update PrestaShop Safely","Never update PrestaShop without a prior backup. Recommended procedure: (1) Take a VPS snapshot from the ServOrbit client area. (2) Back up the database: `mysqldump -u psuser -p prestashop > \u002Froot\u002Fbackup_prestashop_$(date +%F).sql`. (3) Install the official *PrestaShop Autoupgrade* module from the PrestaShop Marketplace. (4) Follow the module wizard — it checks third-party module compatibility before applying the update. (5) Test the front end and back office, especially the checkout flow. On failure, restore the snapshot or the SQL dump.",{"type":39,"title":147,"body":148},"Deploy PrestaShop from the ServOrbit Marketplace","If you prefer to skip manual configuration, the ServOrbit Marketplace offers a one-click PrestaShop template: the VPS is provisioned with Apache, PHP 8.2, MySQL 8, Redis and PrestaShop pre-installed, SSL certificate configured. Deployment takes under five minutes. You retain full root access and can apply every optimization described in this guide at your own pace.","Your PrestaShop Store Online in 5 Minutes","Deploy PrestaShop on a ServOrbit VPS with PHP 8.2, MySQL 8 and Redis pre-configured. Dedicated resources, on-demand snapshots, expert support.","Deploy PrestaShop on VPS","\u002Fapplications\u002Fe-commerce\u002Fprestashop",[154,173,189],{"id":155,"slug":156,"slugs":157,"title":161,"excerpt":162,"readTime":163,"views":164,"isPinned":19,"noindex":19,"publishedAt":165,"updatedAt":166,"category":167,"categories":168,"featuredImage":30,"bgImage":31,"posterImage":170,"relatedSolution":171},144,"woocommerce-on-a-vps-a-fast-store-you-control",{"fr":158,"en":156,"ar":159,"es":160},"installer-woocommerce-vps","woocommerce-على-vps-متجر-سريع-وتحت-سيطرتك","instalar-woocommerce-en-un-vps","WooCommerce on a VPS: a fast store you control","Install WooCommerce on a ServOrbit VPS: WordPress, cache, HTTPS, backups and full control of your store.",4,1,"2026-02-01T00:00:00+00:00","2026-09-07T11:26:10+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":27},[169],{"id":23,"name":24,"slug":25,"color":26,"icon":27},"\u002Fblog\u002Fcovers\u002Finstaller-woocommerce-vps-poster.svg",{"categorySlug":34,"appSlug":172},"woocommerce",{"id":174,"slug":175,"slugs":176,"title":180,"excerpt":181,"readTime":23,"views":18,"isPinned":19,"noindex":19,"publishedAt":182,"updatedAt":21,"category":183,"categories":184,"featuredImage":30,"bgImage":31,"posterImage":186,"relatedSolution":187},73,"host-wordpress-on-your-own-vps",{"fr":177,"en":175,"ar":178,"es":179},"heberger-wordpress","استضافة-wordpress-على-خادم-vps-الخاص-بك","alojar-wordpress-en-un-vps","Host WordPress on your own VPS","Host WordPress on your VPS for maximum performance and control: Docker, MariaDB, caching, reverse proxy and SSL.","2026-04-08T00:00:00+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":27},[185],{"id":23,"name":24,"slug":25,"color":26,"icon":27},"\u002Fblog\u002Fcovers\u002Fheberger-wordpress-poster.svg",{"categorySlug":25,"appSlug":188},"wordpress",{"id":190,"slug":191,"slugs":192,"title":196,"excerpt":197,"readTime":198,"views":199,"isPinned":19,"noindex":19,"publishedAt":200,"updatedAt":201,"category":202,"categories":207,"featuredImage":30,"bgImage":31,"posterImage":209,"relatedSolution":210},41,"deploy-your-applications-with-coolify-on-a-vps",{"fr":193,"en":191,"ar":194,"es":195},"deployer-avec-coolify","نشر-تطبيقاتك-باستخدام-coolify-على-vps","desplegar-aplicaciones-con-coolify-en-un-vps","Deploy Your Applications with Coolify on a VPS","Deploy Coolify on a VPS: installation, HTTPS configuration, Git connection, deploying your first application, databases, backups, and troubleshooting.",12,2,"2026-05-10T00:00:00+00:00","2026-10-31T01:54:10+00:00",{"id":203,"name":204,"slug":205,"color":206,"icon":205},3,"Deployment","deploiement","bg-success\u002F10 text-success",[208],{"id":203,"name":204,"slug":205,"color":206,"icon":205},"\u002Fblog\u002Fcovers\u002Fdeployer-avec-coolify-poster.svg",{"categorySlug":211,"appSlug":212},"application-deployment-devops","coolify",true,1794270474076]