# How do I upload my site to my LAMP server?

https://www.seturack.com/en/knowledgebase/article/how-do-i-upload-my-site-to-my-lamp-server

1. In the panel, open **My servers** and click your server.
2. On the **Overview** tab, wait for the **App** row to say "LAMP is ready". The page refreshes itself.
3. Open the link in the **Site address** row. The "Your server is ready" page shows that PHP is working.

## Uploading your site

Your site root is the `/var/www/html` folder. Upload your files over SFTP, using the `root` user and password shown in the panel. Then give them the right owner:

`chown -R www-data:www-data /var/www/html`

The `index.php` in that folder is only a welcome page, so you can delete it. `.htaccess` files work. The PHP upload limit is 64 MB.

## Database

Installation creates a database called `site` and a user with the same name. The **Login** and **Password** rows in the panel belong to this user. Connect from your site using `localhost` as the host. The database is not open to the outside.

## Your own domain

1. Point your domain's A record to your server's IP address.
2. [Connect over SSH](https://www.seturack.com/en/knowledgebase/article/how-to-connect-with-ssh) and get the certificate: `certbot --apache -d yourdomain.com`

Certificates renew by themselves.

Only **80**, **443** and **22** for SSH are open to the outside.

**No server yet?** [Order a server with LAMP installed](https://www.seturack.com/en/lamp-vps): you choose the size and pay for what you choose.
