How to host a PHP website

schedule 5 min read signal_cellular_alt Beginner

This guide walks you through publishing a PHP website on nysr.host. You will create a project, add a simple index.php file, upload it, and open the live URL.

checklist

Before you start, prepare a small PHP file or use the example below. You do not need Git, SSH, or server setup.

1 Create an account

Go to nysr.host/register and create your account. After logging in, open the dashboard. This is where your projects are listed.

nysr.host dashboard showing the New Project button

2 Create a project

In the dashboard, click New Project. Choose a short name for the project. This name becomes part of your free nysr.host subdomain:

https://your-project.nysr.host
lightbulb

Use lowercase letters, numbers, and dashes for the project name. You can connect a custom domain later.

Create project modal with project name field

3 Upload your files

After the project appears on the dashboard, click the Files button for that project. This opens the file manager for that website. Upload your files into the main/root folder, not inside another folder unless your app requires it.

Project card showing the Files button
delete

New projects include a default index.html. If you are publishing a PHP site, delete that file first so your index.php becomes the homepage.

For a PHP site, the first page should usually be named index.php. If you do not have a file yet, create one with this example:

<?php
echo "<h1>Hello from " . htmlspecialchars($_GET['name'] ?? 'nysr.host') . "</h1>";
File manager showing the upload button and index.php file

4 Open your live site

Open your project URL in the browser. If you see your PHP page, your site is live. If you see a 404 page, the most common reason is that index.php or index.html is missing from the project root.

Live project URL open in a browser
warning

Seeing a 404 instead of a 403 for missing pages is expected: projects without an index file return 404, not a directory listing.

5 Optional: custom domain and database

6 Quick troubleshooting

Ready to deploy?

Create your first project and have it online in minutes.

Start Deploying for Free