Skip to content
Advertisement

Tag: heroku

Heroku 403 Forbidden Error

I deployed a PHP application and when I hit the url, I get the following error: I guess it tries to go into the app/ directory but it can’t. My project structure: What the log shows: Procfile .htaccess Answer Ehhmm so I found the solution. My Procfile had a .txt extension (so Procfile.txt) whereas it needs to be only Procfile.

heroku local does not find pdo_postgres driver

I am trying to use heroku local on mac to run a Symfony project. But unfortunately it does not find the postgresql driver… which is found when I run php app/console server:run Here is the resulting output. How can I solve this? Answer Did you see these ? http://www.somacon.com/p520.php http://www.unixmen.com/solved-php-warning-module-pdo-already-loaded-in-unknown-on-line-0/ Point is that if you have postgres compiled into php

Use Heroku config vars with PHP?

I’ve been able to find information on how to use config vars in Heroku for Python, node.js, and some other languages, but not for PHP. Can you use them with PHP, or is it not supported? This article shows how to do it for Python, Java, and Ruby, but not PHP. Answer Config vars on heroku manifest themselves as environment

Heroku: PHP Fatal error for valid function – mb_check_encoding

I have the following statement: This works on my local setup of PHP 5.4.17 and my shared host which has PHP 5.3.xx But when I deploy this app to Heroku (which has PHP 5.3.10), it gives the following error in the logs: 2012-12-26T09:55:28+00:00 app[web.1]: [Wed Dec 26 09:55:27 2012] [error] [client 10.119.79.71] PHP Fatal error: Call to undefined function mb_check_encoding()

Advertisement