Installing WISECP

4.3k visualizações Markdown

WISECP installs through a wizard in the browser. You create the database yourself beforehand; the wizard does the rest.

Opening the Wizard

Download the package from your license page on wisecp.com (see Choosing Your WISECP Version). Upload the files to the directory the site will be served from, then open install.php in a browser. The wizard runs on its own and does not need a working installation, so it also works on a completely empty server.

Create the database first. WISECP does not create one for you: make a database and a user in your hosting panel (cPanel, Plesk, DirectAdmin), and give that user full access to that database. Use a new, empty database. Moving an existing WISECP 3.x system is a different path: see Upgrading from WISECP 3.x to 5.x.

What Is on the Screen

The wizard is a split window. The left panel shows the logo, a four-part progress bar, the step title and one sentence. The language switcher is at its foot. The form is on the right. The colours are light, or dark when your system uses a dark theme.

AgreementThe terms of service. Begin Setup stays disabled until you tick the acceptance box.
Server checkAppears only when a setting blocks the installation. Each card shows what was detected and how to fix it. Check Again repeats the check, Copy Report copies the full report for support. When nothing blocks, the wizard goes straight to the license.
LicenseYour license key, usually already inside the package. If the key is active on another installation, setup stops here: ask support to reissue the license for this address, then click Verify Again (5.0-beta.3 and earlier go on with a warning). If the license service cannot be reached, setup continues and the license is verified again when the admin panel opens.
DatabaseConnection details. Test Connection and Continue tests the connection, then creates the tables.
AdministratorThe site title and your own account. Region and Admin Panel Address holds four values taken from your server and browser; it opens by itself when the country could not be detected.
FinishedYour admin panel address with a copy button, and Go to the Admin Panel.

Fields

Database

HostDefaults to localhost. Use the host your provider gives you when the database is on another server.
PortDefaults to 3306.
Database NameThe database you created. It has to exist already and be empty. The only database accepted with tables in it is one from this same V5 installation. A database with WISECP 3.x tables is refused; nothing is written to it. With an older package you see “This database already holds WISECP tables. Setup will keep them and continue.” instead. With a 3.x database, stop there: continuing changes 3.x records and leaves the site down.
UsernameA user with full access to that database. Limited privileges stop the installation.
PasswordThat user's password.
CA Certificate PathUnder Advanced Settings. Path of the CA file on this server. When it is set the connection uses TLS; leave it empty for a database on the same machine. A wrong path, or a server certificate this CA did not sign, stops the test with a TLS error.
Verify the Server CertificateOn whenever a CA file is set. Turn it off only for a development server with a self-signed certificate.

Administrator and Site

Site TitleShown on the customer-facing site and in emails.
Full NameYour name as it appears in the panel.
EmailYour login address, and where system notifications go.
PasswordYour login password. A meter under the field shows its strength.
CountrySets the defaults the rest of the installation starts from.
Time ZoneDetected from your browser and pre-selected; correct it if the detection is wrong.
CurrencyYour primary currency; the rates of other currencies are calculated against it. You can add more later.
Admin Panel AddressThe address the admin panel answers on. A suggestion is filled in; change it to something of your own.

Tasks

Install WISECP

  1. Create the database and its user in your hosting panel, and grant that user full access.
  2. Upload the files, open install.php, tick the acceptance box and click Begin Setup. If the server check appears, fix each card in your hosting panel and click Check Again.
  3. Enter your license key and click Verify and Continue, then enter the database details and click Test Connection and Continue.
  4. Fill in the site title and your account, click Complete Setup, and note the admin panel address on the last step.

Result: the database is filled in, coremio/configuration/database.php is written, and the installation is stamped as established, which permanently blocks the wizard from running again.

Install From the Command Line

The wizard's steps can also be run from the command line. This helps when the server has no browser access, or when you install the same system more than once. The installation is the same one: validation, database, administrator account and settings all follow the wizard's path.

Ask whether the server is ready first. This command changes nothing.

requirement check
php install.php --check --url=https://example.com

--url is required. The command line does not know your site address. License verification, the panel address and generated links all come from this value. --accept is the agreement consent. It stands for the box you tick in the wizard, and the install does not start without it.

install
php install.php --install --url=https://example.com --accept \
  --license=WISECP-XXXX-XXXX-XXXX-XXXX \
  --db-name=database --db-user=user --db-pass=password \
  --admin-name="Full Name" [email protected] --admin-pass=yourpassword \
  --title="Your Site"

Result: each step is shown as it runs, and your admin panel and site addresses appear at the end. The exit code is 0 on success and 1 on failure. The admin folder is generated at random unless you set it with --admin-folder. A license key active on another installation stops the command with “license was not verified”.

Finish the Setup

Set up the cron job first, then add a payment method, configure email delivery and create your first product.

Things to Watch

Check that the installer removed itself

The wizard deletes its own entry point at the end and tells you the outcome. When the delete succeeds, the last step says the setup files were deleted from the server. If a file could not be deleted, a card names it instead; remove that file by hand. A reachable install.php on a live system is a real hole.

Setup needs HTTPS

Signing in to the admin panel and the client area only works over HTTPS, so setup does not start without it. If the address does not answer over HTTPS with a valid certificate, the server check shows the HTTPS (SSL Certificate) card. Install an SSL certificate, open the site with https:// and click Check Again. In 5.0-beta.3 and earlier, setup completes over HTTP with a warning, and signing in fails afterwards.

The wizard stops if the server does not keep the session

Each step relies on the setup session saved on the previous request. Otherwise the step stops with “The server did not keep the setup session from the previous step”. Check that the session directory (session.save_path) exists and is writable. Also check that the browser accepts cookies, then refresh the page. In 5.0-beta.3 and earlier, the wizard returns to the agreement without a message. The cause and the fix are the same.

Nothing runs on schedule until you add the cron job

Invoicing, renewals, suspensions, reminders and provisioning all wait on scheduled tasks. A fresh installation with no cron entry looks healthy and quietly does nothing.

Two checks the command line cannot make

Session writing and mod_rewrite can only be measured on a real browser request, so the command line skips them. Rewriting stays unmeasured, so the URL structure falls back to the one that asks nothing of the server. Addresses then carry index.php?route=. If you know mod_rewrite works, add --rich-url=on or change it from the panel afterwards.

The wizard cannot be re-run

Once the installation is stamped, opening install.php shows a locked page instead of the first step. That is deliberate: a second run would overwrite a live configuration.

Record numbers start at five digits

The installer starts client, order, service, ticket and invoice numbers each at a random five-digit value. It also turns on Sequential Order Numbers, so an order's number is its order ID. Both can be changed under Advanced Settings.

Este artigo foi útil?

Agradecemos pelo feedback!

Ainda precisa de ajuda?

Nossa equipe de suporte está disponível a qualquer hora para ajudar com o que você não encontrou acima.