Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vandyczech's avatar

Please help me with Apache2 virtual host configuration

My Laravel run on http://84.242.117.60:9000/ Apache server is Apache/2.4.25 (Raspbian) How should the right basic configuration file look? Whats wrong in configuration? I see error 500

<VirtualHost *:9000>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/friede/public

    <Directory "/var/www/friede/public">
            Options FollowSymLinks
            ReWriteEngine On
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<Directory "/var/www/friede/public">
        Options FollowSymLinks MultiViews
        ReWriteEngine On
</Directory>
0 likes
1 reply
mushood's avatar

Can you access the error log for the 500 error Found at this path: ErrorLog ${APACHE_LOG_DIR}/error.log

Make sure you have the correct phpversion for your project Moreover, you need to make sure you've run composer install on the project

1 like

Please or to participate in this conversation.