The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to customize php.ini or alternative way to send an email?

Discussion in 'E-mail Discussions' started by gupta.geeti, Jun 21, 2009.

  1. gupta.geeti

    gupta.geeti Registered

    Joined:
    Jun 21, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    In our application(PHP), we have to send an email, but after uploading the application on cPanel, when we try to send the email we get an error as follows:

    SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (0)
    SMTP Error: Could not connect to SMTP host.

    For this we have to make a small change in php.ini. We are not able to customize php.ini.

    Can somebody please provide us with directions on how to proceed with this? Or may be an alternative by which we can send email through the application without having to make changes to php.ini.

    Thank You.
     
  2. JPC-Shaun

    JPC-Shaun Well-Known Member

    Joined:
    Oct 29, 2008
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Hi;

    Editing the php.ini on the server depends on how you have compiled PHP/Apache on the server. If you are running php as an apache module (DSO) then php.ini won't work (customized) and php parameters need to be changed in .htaccess file inside the particular account.

    However if you are running Suphp on the server then you can customize the php.ini directly after copying it inside the particular account.
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Actually what you describe is for phpSuExec which is an older method
    of CGI owner based execution of PHP scripts that parsed PHP.INI files
    automatically from the user's account.

    SuPHP does have a provision for custom PHP.INI but it need not be
    in the user's account and could be wherever the administrator chooses
    based upon the directive added to the user's account configuration.

    The third method of PHP setting customization is that of .HTACCESS
    and Apache directives in httpd.conf which was the common method
    for PHP running as a DSO (Apache module).

    Although limited in use, the forth method of PHP setting changes is
    by the use of "ini_set()" within the PHP scripts themselves.
     
Loading...

Share This Page