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

Phalcon webapi not working after deployment on Linux Server

I have made a web API using the PHP phalcon framework which is running perfectly on localhost. But when I upload it to a Linux server it's not working. I think it's because of my .htaccess file.

Can you take look? My .htaccess file looks like this:

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L] </IfModule>



79.0k
Accepted
answer

There are various reasons why Phalcon project might not work, with your htaccess rules being the least possible.

Provide more details about production environment, and your development as well.



1.6k

There are various reasons why Phalcon project might not work, with your htaccess rules being the least possible.

Provide more details about production environment, and your development as well.



1.6k

thanks but i solved it... can you tell me how to connect with 2 dbs in webapi?

You need to use 2 different database servers, or just databases on the same server?