Go Back   cPanel Forums > General Discussion > cPanel Newbies

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2009, 05:18 PM
Registered User
 
Join Date: Jun 2009
Posts: 1
gupta.geeti is on a distinguished road
how to customize php.ini or alternative way to send an email?

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-21-2009, 09:38 PM
Registered User
 
Join Date: Oct 2008
Posts: 49
JPC-Shaun is on a distinguished road
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.
__________________
JaguarPC
jaguarpc.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-21-2009, 10:40 PM
Registered User
 
Join Date: Jul 2005
Location: New Jersey, USA
Posts: 385
PlatinumServerM is on a distinguished road
You can first try editing the server wide php.ini at /usr/local/lib/php.ini
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-22-2009, 12:17 PM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
Lightbulb

Quote:
Originally Posted by JPC-Shaun View Post
However if you are running Suphp on the server then you can customize the php.ini directly after copying it inside the particular account.
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
php.ini and override default php.ini areh cPanel and WHM Discussions 6 08-24-2009 06:45 PM
Send Email From PHP Using SMTP Authentication (Guide) WhmSonic cPanel and WHM Discussions 4 10-23-2008 11:43 AM
PHP email - not able to send externally zerokarma cPanel and WHM Discussions 10 10-16-2008 03:48 PM
Customize email CPanel send birkoss cPanel Newbies 2 03-12-2005 05:21 PM
Forcing PHP users to send email via SendMail trparky cPanel and WHM Discussions 3 02-09-2005 04:38 AM


All times are GMT -5. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc