We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Volt is not working

In Windows 10 this website runs smoothly. Now, I am trying to run in a Virtual Private Server with CentOS but all my volt files are not recognized. In fact I have two issues. First, using any browser my website does not start. I am assuming that I do not have the accurate sentences in my httpd.conf file (I am using the same structure written in the official documentation). If you enter aurora-ec.net in any browser, you get the root directory. So, it is neccesary to enter aurora-ec.net/public in order to get the first screen and this screen is displayed because the initial file is a php file. And, my second issue is: that I got a 404 Not Found error with every single screen that starts from a Volt file. I really appreciate your kindly help.

Please remove phpinfo.php of your public document root. For security reasons is best to move app directory outside apache document root.

virtualhost section without .htaccess:

<VirtualHost *:80>
        ServerName aurora-ec.net
        DocumentRoot "/var/www/aurora-ec.net/public"
        php_admin_value open_basedir /var/www/aurora-ec.net/
        <Directory /var/www/aurora-ec.net/public>
            Options +SymLinksIfOwnerMatch
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]

And if you have selinux active run: restorecon -Rv /var/www/*


https://aurora-ec.net/public/ and https://aurora-ec.net/ currently produce the same page. Is it fixed?