locate php.ini in Cpanel

Asked

Viewed 329 times

6

I need to edit the php.ini no Cpanel, but I can’t find the service configuration panel. I’m trying to send email with codeigniter in the localhost worked using Xampp, but online at Cpanel gives this error:

PHP Error was encountered
Severity: Warning
Message: fsockopen(): Unable to connect to ssl://smtp.googlemail.com:465 (Connection timed out) Filename: Libraries/Email.php
Line Number: 1950
Backtrace:
File: /home/sermulhe/public_html/application/controllers/Frontend_ctrl.php
Line: 261
Function: send
File: /home/sermulhe/public_html/index.php
Line: 292
Function: require_once

  • Just so I understand the problem better, what would be the relation of php.ini with the mentioned error in this case? If it were timeout from the script I would even understand. Your idea is to mess with the connection time of the fsockopen via php.ini?

1 answer

2

It depends on your stay.

Some accommodations allow you to add one PHP.INI at the root of your website’s directory, only with the directives you want to change.

Another tip is, as you use codeigniter, you can try to change the protocol when sending the email, in the file email.php inside the directory application/config, amend the protocol to mail and try to send again.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.