Resource

Hosting Guide

A practical guide to choosing hosting for a self-hosted PHP AI application, including PHP and MySQL requirements, SSL, outbound API connections, email, cron jobs, backups, performance, and questions to ask a hosting provider.

Hosting Guide for AI PHP Apps

AI PHP Apps products are self-hosted PHP and MySQL applications. That means the software runs on a hosting account you control rather than on a monthly SaaS platform managed by someone else.

You do not need an expensive enterprise server to get started. Many small-business installations can run well on quality shared hosting. The important part is choosing a host that supports the application requirements and gives you enough control to manage PHP, MySQL, SSL, files, and outbound HTTPS connections.

What Your Hosting Needs to Provide

Before purchasing or using a hosting plan, confirm that it supports the requirements listed for your specific AI PHP Apps product. A typical installation needs:

  • PHP 8.1 or newer, subject to the requirements of the specific product release
  • MySQL 8.0 or a compatible database environment
  • HTTPS and a valid SSL certificate
  • PHP cURL or another supported method for outbound HTTPS requests
  • Ability to create MySQL databases and database users
  • File Manager, FTP, or SFTP access
  • Reasonable PHP memory and execution limits
  • Email sending capability when the product uses email features
  • Cron-job support when a product or optional feature requires scheduled tasks
Tip: Do not choose a plan based only on storage space or the word "unlimited." For an AI application, PHP configuration, database access, outbound HTTPS requests, reliability, and support quality matter more.

Shared Hosting, VPS, or Managed Cloud?

Shared Hosting

Shared hosting places multiple customer accounts on the same server. It is usually the easiest and least expensive option.

Shared hosting is often a good fit when:

  • You are a small business or individual user.
  • Traffic and application activity are modest.
  • You want a control panel and do not want to administer a server.
  • Your hosting provider allows the PHP configuration and outbound connections the application needs.

Potential limitations: lower memory or execution limits, stricter resource caps, less control over server configuration, and performance that can vary between providers.

VPS Hosting

A virtual private server provides more control and dedicated resources than typical shared hosting, but it also brings more administrative responsibility.

A VPS may make sense when your application traffic is growing, you need server-level configuration changes, or your shared-hosting resource limits are becoming restrictive.

Do not assume a VPS is automatically better for a small application. An unmanaged VPS can create more security and maintenance work than many small businesses need.

Managed Cloud or Managed VPS

Managed hosting can provide stronger isolation, performance, and scalability while the provider handles more of the server administration. It normally costs more than ordinary shared hosting but can be worthwhile for businesses with higher traffic or greater reliability requirements.

PHP Requirements Matter

Your server executes the PHP application. The exact PHP version and required extensions may vary by product release, so always check the product requirements.

Useful PHP capabilities commonly include:

  • cURL: commonly used for secure outbound API connections.
  • PDO / PDO MySQL: used for secure database communication.
  • OpenSSL: supports encrypted connections.
  • mbstring: commonly used for reliable text handling.
  • JSON: required for exchanging structured API data.

Your host should also provide reasonable settings for memory, upload size, request size, and execution time. Applications that process larger files may require higher limits than a simple contact form or brochure website.

MySQL and Database Access

The database stores application information such as settings, records, activity, and other product-specific data. Your hosting plan should allow you to create a database, create a database user, assign the user to the database, and manage the database through a tool such as phpMyAdmin.

Database performance is influenced by much more than the MySQL version. Server load, disk performance, available memory, query design, and hosting quality can all affect response time.

Outbound HTTPS Connections Are Essential

A self-hosted AI application must be able to communicate from your web server to the AI provider over HTTPS. Some restrictive hosting environments block or limit outbound connections.

Before choosing an unfamiliar host, ask whether PHP applications are allowed to make outbound HTTPS requests using cURL. If those requests are blocked, the application may install correctly but fail when it tries to generate an AI response.

SSL and HTTPS

Use a valid SSL certificate and access the application through HTTPS. HTTPS encrypts traffic between a visitor's browser and your server and is an important part of protecting logins, form submissions, and other data in transit.

Many hosts include automated SSL certificates. Confirm that HTTPS is supported on the exact domain or subdomain where you plan to install the product.

Email Capability

Some AI PHP Apps products may send notifications, customer messages, password resets, or other email. Hosting environments differ significantly in how they handle outgoing mail.

For dependable business email, SMTP is generally preferable to relying only on basic server mail. Confirm that your host allows the SMTP connection you plan to use and that your domain's DNS records are configured appropriately for email delivery.

What Is a Cron Job?

A cron job is a scheduled command that runs automatically on the server. It may be used for maintenance, scheduled notifications, cleanup tasks, or other background operations.

Not every product requires cron jobs, but having cron support gives you more flexibility as your application grows.

File Storage and Uploads

Do not evaluate storage only by the size of the application ZIP file. If a product accepts document uploads or creates stored files, usage can grow over time.

Check:

  • Total account storage
  • Maximum upload size
  • PHP POST/request limits
  • File-count or inode limits
  • Whether backups count against the same storage allocation

Backups

Find out what your hosting provider backs up, how often backups run, how long they are retained, and whether restoration costs extra.

A host-provided backup is useful, but it should not be your only recovery plan. Maintain your own current copy of important application files and the MySQL database.

Security Features Worth Having

  • Free or automated SSL certificates
  • Two-factor authentication for the hosting account
  • SFTP or another secure file-transfer option
  • Malware or file-change monitoring
  • Reliable server and software patching
  • Account-level backup and restore tools
  • Access to PHP error logs

Questions to Ask a Hosting Provider

If you are unsure whether a plan will work, send the provider this checklist before purchasing:

  • Can I run PHP 8.1 or later?
  • Can PHP make outbound HTTPS requests using cURL?
  • Can I create MySQL databases and database users?
  • Is phpMyAdmin or an equivalent database tool available?
  • Can I adjust PHP memory, upload, and execution limits if needed?
  • Is SSL included for my domain or subdomain?
  • Do you support cron jobs?
  • Can I use external SMTP services?
  • How often are backups created and how long are they retained?
  • Can I access PHP and server error logs?

What About "Unlimited" Hosting?

Unlimited storage or bandwidth usually remains subject to acceptable-use and server-resource policies. CPU, memory, process, database, and file-count limits may still apply.

For a business application, a clearly documented plan from a reliable provider is more valuable than a large marketing number.

How Much Hosting Do You Need?

Start with a plan that comfortably meets the product requirements and your expected usage. You do not need to buy for hypothetical traffic years in advance.

If your application later reaches resource limits, a good provider should make it possible to move to a larger plan, VPS, or managed environment without rebuilding the application from scratch.

Hosting Checklist

  • Supported PHP version and required extensions
  • MySQL database access
  • Outbound HTTPS/cURL access
  • SSL certificate
  • File Manager or secure file-transfer access
  • Appropriate PHP resource limits
  • Email/SMTP support if required
  • Cron support if required
  • Backups and restore capability
  • Error-log access

Next Step

Once your hosting environment is ready, continue with the Installing AI PHP Apps guide.

Need more help?

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