Setup PrestaShop
Setup PrestaShop
This example installs PrestaShop 8 inside the Devilbox PHP container, creates a MySQL database, and serves the project through the standard htdocs document root.
Overview
| Project name | Container path | Database | TLD_SUFFIX | Project URL |
|---|---|---|---|---|
my-presta | /shared/httpd/my-presta | my_presta | lvh.me | http://my-presta.lvh.me / https://my-presta.lvh.me |
Projects live in /shared/httpd/ in the PHP container and ./data/www/ on the host.
Prerequisites
- Devilbox with a PHP version supported by your PrestaShop 8 patch release.
- HTTPD, MySQL, and Bind services.
- Composer and Git available in the PHP container.
Start the stack:
./dvl.sh up php httpd mysql bindWalk through
It will be ready in seven steps:
- Enter the PHP container.
- Create a new virtual host directory.
- Install PrestaShop 8.
- Link the document root.
- Add the MySQL database.
- Verify DNS.
- Open the installer.
1. Enter the PHP container
./dvl.sh shell php832. Create the vhost directory
mkdir -p /shared/httpd/my-prestacd /shared/httpd/my-presta3. Install PrestaShop 8
Download a current PrestaShop 8 release archive or clone the repository and check out a stable 8.x tag:
git clone https://github.com/PrestaShop/PrestaShopcd PrestaShopgit checkout 8.2.0composer installExpected structure from the vhost directory:
tree -L 1.└── PrestaShop4. Link the document root
cd /shared/httpd/my-prestaln -s PrestaShop htdocs5. Add the MySQL database
mysql -u root -h 127.0.0.1 -p -e 'CREATE DATABASE my_presta CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'6. Verify DNS
my-presta.lvh.me resolves to localhost by default. Add a hosts entry only for custom suffixes.
7. Open the installer
Visit http://my-presta.lvh.me or https://my-presta.lvh.me and follow the installation steps.
Use these database values:
- Database server:
127.0.0.1 - Database user:
root - Database password: your
.envvalue - Database name:
my_presta
Next steps
- Remove the installer directory if PrestaShop requires manual cleanup.
- Use Adminer or phpMyAdmin from the Devilbox intranet for database checks.
- Configure HTTPS trust and mail settings for local testing.