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

install on ubutu 14.04 LTS

Hi everyone,
I install phalcon ok, but htaccess file seem not execute.
Exam: type "localhost/invo" => it is not run.
type "localhost/invo/public" => it is run.
the file: /etc/apache2/sites-available/default is

<Directory /var/www/html>
          Options Indexes FollowSymLinks MultiViews                                
          AllowOverride All                                                   
          Order allow,deny                                      
          allow from all                                             
</Directory>

and /var/www/html/invo/.htaccess is

<IfModule mod_rewrite.c>
   RewriteEngine on                           
   RewriteRule  ^$ public/    [L]                                  
   RewriteRule  (.*) public/$1 [L]                           
</IfModule>

I have check mod_rewrite, it is already enable
Help me please.



43.9k

Hi,

check if mod_rewrite is enabled



33.8k
Accepted
answer

Yeah, your server root starts from localhost. So you don't access automatically public by writting invo in the URL. You need to set up a virtual server, whose root is /var/www/invo/public, set a ServerName (like invo.es) and modify your /etc/host/ file to add that virtual server (located in localhost).

I think that's the issue.