A complete installation walkthrough for AI PHP Apps products, covering domains and subdomains, file uploads, MySQL setup, application configuration, the installer, OpenAI connection testing, post-install checks, and common installation problems.
AI PHP Apps products are designed for self-hosted PHP and MySQL environments. If you have installed a PHP application before, the process will feel familiar. If this is your first self-hosted application, this guide explains not only what to do but why each step matters.
Have the following available before starting:
You can typically install a self-hosted application in one of three places:
https://example.com/https://example.com/app/https://app.example.com/A subdomain is often a clean choice for a business tool because it keeps the application separate from the main marketing website. A subdirectory can be convenient when everything should remain under one domain.
Whichever location you choose, make sure the domain or subdomain points to the directory where the application files will actually be stored.
Most hosting control panels include a File Manager. You can also use FTP or SFTP.
A common installation mistake is extracting an archive and leaving the actual application inside an unnecessary extra directory.
For example, if you want the application at example.com/my-app/, this may be wrong:
public_html/my-app/my-app/index.php while this is typically the intended structure:
public_html/my-app/index.php If opening the expected URL produces a directory listing, 404 error, or the wrong page, verify the folder structure before changing code.
Your application stores persistent information in MySQL. Hosting control panels use different labels, but the process usually has four parts:
Save the following information:
Depending on the product version, installation may ask you for database information through an installer or require you to create or edit a configuration file.
Enter the database values exactly as provided by the host.
localhost, but not always.Do not guess the database host. If your provider gives you a specific hostname, use it.
Open the installation URL provided with your product. For releases that include the standard installer, this is typically the application's installation entry point.
The installer may verify items such as:
Read any installer warning rather than clicking through it automatically. A failed requirement is easier to fix before the application contains important data.
After the base application is installed, add the OpenAI API credential through the product settings when required.
If this is your first time configuring the OpenAI API, use the OpenAI API Key Setup guide. It explains API billing, keys, security, and first-connection testing.
Do not consider the installation complete just because the dashboard loads.
Perform a real but small test of the product's primary function. For an AI-assisted tool, submit a simple request and verify that a valid response is returned.
Depending on the product, also test:
Open the final application URL with https:// and verify that the browser reports a valid secure connection.
If both HTTP and HTTPS versions are accessible, configure your hosting environment so normal visitors are directed to HTTPS.
After installation:
Once the application is installed and tested, create a known-good backup of both the application files and the MySQL database.
This gives you a clean recovery point before you begin accumulating important business data or making custom changes.
| Symptom | What to Check First |
|---|---|
| 404 / page not found | Document root, folder structure, URL, and rewrite configuration |
| 500 server error | PHP/server error log, PHP version, required extensions, and server configuration |
| Blank page | PHP error log and application requirements |
| Database connection failed | Host, database name, username, password, and user assignment |
| Database tables missing | Installer/migration completion and database permissions |
| AI request fails | API key, API billing, outbound HTTPS access, and the exact provider error |
| Upload fails | PHP upload limits, file permissions, disk space, and product limits |
| Email does not arrive | SMTP/mail settings, DNS records, spam folder, and hosting mail restrictions |
The exact error message is usually far more useful than a description such as "it doesn't work." Save the message, page URL, and what you were doing when it appeared.
Do not post passwords, database credentials, API keys, or other secrets when asking for help.
If your installation is complete but an AI request returns an error, continue with Common OpenAI Errors.
If you have questions about setting up an AI PHP Apps product, contact support and we’ll help point you in the right direction.
Contact Support