To learn and publish
Your first PHP project, outside your computer.
Publishing an app requires more than just copying a folder. Separate public files, credentials and database to go from the local environment to an accessible web.
Download PHP example ↓1. Check what your practice needs
Check the PHP version, extensions, and type of database your application uses. A project that works in XAMPP or on your computer may depend on routes, modules or services that do not exist in the hosting.
This guide uses PHP with PDO and a MySQL compatible database. The downloadable example queries three fictional projects: it has no public forms, user registration, or administration functions. It is a starting point for learning the connection, not a complete application.
2. Create the database and keep the full names
Enter panel.weebing.com with your accommodation details and open DB. Create a database if you have a place available. The panel adds a prefix to the name and user: use the full values it shows you, not just the name you typed.
Save a unique password. Open phpMyAdmin from the dashboard and import the example file schema.sql into the empty database. Do not import a test structure on top of a database with information that you want to preserve.
3. Put each file in its place
The usual public directory for the domain is web/YOUR_DOMAIN/public_html within your account. In the file manager, identify the correct domain and keep a copy of the existing content before replacing it.
Copy index.php of the example into public_html. The file student-config.php must be one level above public_html, within the domain folder. Do not upload schema.sql, ZIP files, or instructions to the public directory. If your manager doesn't allow you to place the configuration outside of public_html, check with support before continuing.
Edit the private configuration with the database host indicated by your service, full name, user, and password. The example searches for that configuration with a relative path to the file; you don't need to post credentials or save them in JavaScript.
4. Test data and errors before sharing
Open the domain for HTTPS when its DNS and certificate are ready. The example should show the test projects. If a connection error appears, check full names, password and host; don't post the exception or the password to ask for help.
The example uses a prepared query and escapes the text when generating HTML. Maintain these practices when adding filters or user data. Don't use real passwords from other services or personal information in a public demo.
To test a bug, test it in your development environment or in a test copy. Also check accented characters, links, and mobile view. Remove diagnostics like phpinfo and any copies of configuration you uploaded in error.
5. Save a version that you can recover
Preserve the code and a database export before changing the application. Files and data form the same version: restoring only part of it can leave it incompatible.
The official PHP references and Hestia linked at the end expand on these steps. The names of some buttons may vary with the panel language. If your application uses Composer, a framework, or a different public folder, review its specific deployment procedure.
If you are looking for somewhere to publish this PHP and MySQL project, explore hosting for students to check whether the Eco resources match your application.
Official references
Content reviewed on 2026-12-05 · Weebing team