# Apache deployment — Y. E. Transport & Contructors

The Apache **DocumentRoot MUST point to this project's `public/` directory**, not the project root.

Example:

```apache
<VirtualHost *:80>
    ServerName netkik.com
    ServerAlias www.netkik.com
    DocumentRoot /var/www/yetc/public

    <Directory /var/www/yetc/public>
        AllowOverride All
        Require all granted
        Options FollowSymLinks
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/yetc_error.log
    CustomLog ${APACHE_LOG_DIR}/yetc_access.log combined
</VirtualHost>
```

Enable rewrite and reload Apache:

```bash
sudo a2enmod rewrite
sudo apache2ctl configtest
sudo systemctl reload apache2
```

Then install PHP dependencies from the project root:

```bash
composer install --no-dev --optimize-autoloader
cp .env.example .env
php artisan key:generate
```

Configure PostgreSQL credentials in `.env` and visit:

`http(s)://your-domain/install`

There is **no install.php**. `/install` is a Laravel route. The root URL `/` automatically redirects to `/install` while the installation marker is absent.
