Nginx 502 codeigniter set_userdata error

Hi,

I am having “502 Bad Gateway” error when executing php page with set_userdata. Some solutions in the web indicates to update “/etc/nginx/nginx.conf”

http {

fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;

}

as I do not have access I updated .htaccessbut did not work:

php_value output_buffering 120M
php_value post_max_size 120M
php_value upload_max_filesize 120M
php_value fastcgi_buffers 16k
php_value fastcgi_buffer_size 32k
php_value memory_limit 256M
php_value realpath_cache_size 256M

Hi @mgranella!

000webhost does not offer sudo access to server’s back-end. Also, it is stated that Codeigniter requires the traditional MySQL database system, however we are using MariaDB system.

Please change your PHP version: 000webhost cPanel > Settings > General > Change PHP version > 5.6

If this does not solve the problem, you should consider upgrading either to a paid plan, or a VPS:




Hi,

thanks for you quick response.

The application is working fine but failing some functionalities. There is no issues with DB, it working fine. I already changed PHP version. Seems the issue is in the http request header size. Is there a way to modify it?

Seems the issue is in the http request header size. Is there a way to modify it?

This is a server setting. Unfortunately, you can’t.