CodeIgniter Forums
codeigniter not works with CGI/FastCGI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: codeigniter not works with CGI/FastCGI (/showthread.php?tid=60670)



codeigniter not works with CGI/FastCGI - El Forum - 05-26-2014

[eluser]Unknown[/eluser]
hi,
happy with codeiginter and it works out of the box on most webhoster.

but lately many webhoster switching to CGI/FastCGI and now its the second time i cant bring
it up.

this is the error log i get from the hoster:

146)Connection refused: FastCGI: "/home/strato/http/fastcgi/rid/53/75/54045375/htdocs/index.php" aborted: read failed (0 bytes) after 2 sec


there is no .htaccess include only the datamapper









codeigniter not works with CGI/FastCGI - El Forum - 05-27-2014

[eluser]InsiteFX[/eluser]
Look at your link in the error message.



codeigniter not works with CGI/FastCGI - El Forum - 05-27-2014

[eluser]Unknown[/eluser]
thanks,
the apache error link was misleading, the cause is somewhere with the database access, after access remotely to another server db all works ok,

codeigniter gave this error


ERROR - 2014-05-27 14:26:18 --> Severity: 8192 --> mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead /mnt/webc/d3/75/54045375/htdocs/system/databa\
se/drivers/mysql/mysql_driver.php 73
ERROR - 2014-05-27 14:26:18 --> Severity: Warning --> mysql_connect(): Can't connect to MySQL server on 'rdbms.web.com' (4) /mnt/webc/d3/75/54045375/htdocs/system/database/drivers/mysql/mysql_driver.php \
73





codeigniter not works with CGI/FastCGI - El Forum - 05-27-2014

[eluser]CroNiX[/eluser]
Codeigniter isn't giving that error, PHP is.

Yes, so as the error says, use the mysqli driver, not mysql driver. In the version of PHP you are using, mysql driver has been deprecated and it's not a CI issue.

http://php.net/manual/en/migration55.deprecated.php