|
|||
|
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. |
|
|||
|
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 |
|
|||
|
You can first try editing the server wide php.ini at /usr/local/lib/php.ini
|
|
||||
|
Quote:
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.
__________________
My Server Expert: Server support, security, and management! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |