Easy install (rental server)
How to put Exment on a rental server (Xserver, Sakura Internet and others) by uploading one file and opening it in the browser. No SSH and no composer.
It is for people who rent a server and want to install Exment on it themselves.
To install it yourself with SSH, see Rental server.
What you need
- PHP 8.2 or later (chosen in the control panel of the server)
- An empty database: MySQL 8.0 or later, or MariaDB 10.11 or later
- FTP, or the file manager of the server (to upload and open files)
- About 400 MB of free space
Steps
- Download exment-installer.zip, unpack it, and take out
exment-installer.php. The SHA-256 of the zip is shown in exment-installer.zip.sha256 (now9954da9ff53685451ac2b9376063fd92fc6b5559bc9e010048ddde72b884e5f1). - Upload
exment-installer.phpinto the folder Exment should be in.- At the top of the domain:
public_html(wwwon Sakura) - In a folder:
public_html/exmentand so on. Use an empty folder.
- At the top of the domain:
- Open it in the browser (for example
https://example.com/exment-installer.php). - Enter the key. The installer makes
exment-installer-key.phpin the same folder. Open that file by FTP or with the file manager and enter what followsKEY:.
This file shows nothing in a browser: only who can see the files (the owner of the server) can go on. - Look at the server check. For a ✗, change what it says and press "Check again" (the PHP version, memory_limit and so on). A ⚠ does not stop the install.
- Press "Download". The installer downloads Exment from exment.net, checks its content (sha256), unpacks and places it. It takes a few minutes. If it stops, open the page again and press "Continue": it goes on where it stopped.
- Database: make the database as the page says and press "Test the connection". The values are not kept.
- Press "Go to the installer of Exment". The installer deletes itself (and its key and work files) and opens the installer of Exment. Then follow Installation steps.
Where it puts Exment
- Exment itself goes into a folder not published on the web (for example
exmentnext topublic_html; forpublic_html/t721,exment_t721). - Only the content of Exment's
publicgoes into the published folder. - On a server that allows writing only in the published folder, Exment goes into
exment-appinside it, closed to the web by.htaccess. - The
.envgets a key of its own (APP_KEY),APP_ENV=productionandAPP_DEBUG=false.
Notes for each server
Xserver
- PHP version: server panel → "PHP Ver.切替"
- Database: in server panel → "MySQL設定", make a database and a user, and give the user access to the database. The host is the name shown in "MySQL設定".
- On the installer of Exment, choose "MariaDB" as the database. The databases of Xserver are MariaDB; with "MySQL" it stops with "Your database is MariaDB, but MySQL is selected...".
Sakura Internet
- PHP version: control panel → script settings
- Database: control panel → databases → add (character set utf8mb4). The user is your account name; the host is the
mysqlNNN.db.sakura.ne.jpshown in the list.
What the installer never does
- It never writes over an Exment or another site (it stops when the folder has files or Exment is already there). To update, see Update.
- It does not use a database with tables (the connection test refuses it).
- It takes files only from exment.net. A file whose content (sha256) is not the release is deleted, never used.
- It never keeps or shows the password of the database.
- Nothing of it stays at the end (if it cannot delete itself, delete it by FTP as the page says).
When it does not work
- "This release needs PHP 8.x or later": raise the PHP version in the control panel, open the page again and press "Continue".
- Too many wrong keys: wait about 10 minutes and enter it again.
- To start again: press "Start again" at the bottom of the page (the Exment files placed are deleted too).
- For other errors, see Errors at install.
Next
- Installation procedure (easy installation): the screens that come after the installer
- Initial setting
