After upgrading to Joomla 2.5 so that I could use the latest version of Virtuemart, the system emails no longer work.
I have checked the Sendmail path against the entry in the php.ini file. (/usr/sbin/sendmail).
If I try Joomla’s Sendmail option I get Could not execute: /usr/sbin/sendmail.
If I try PHP Mail I get Could not instantiate mail function.
Also, I can no longer upload templates:
JFolder::create: Could not create directory
Warning: Failed to move file!
I understand that I can 777 all the relevant folders to get this to work, but this isn’t acceptable. Also, this certainly doesn’t help with the mail problem.
File permissions appear the same as they were previously. What does my web host need to change to allow Joomla to do what it did before my upgrade?
Thanks,
Andy
[edit] I copied the site, exported the SQL and migrated to a different server to test. Everything worked fine, so I can confirm that the problem isn’t with my Joomla install, but with the server environment.
The web host have resolved the issue. I’m quoting their solution here:
“In servers global php.ini file we’ve disabled some functions for security reasons, so to override this you can simply create a custom php.ini file under the document root folder (under public_html folder) and update/change/enable the values in order to get your website working.
Please note that this is done for security to avoid any external hacks/malwares etc.
You’ll just need to copy/paste the php.ini (uploaded in public_html folder) to the directory location of other domain accounts where you are running application.
Even if turn off the values in local php.ini the script/application will work properly as it override the values in the globally php.ini file. Please note that since suPHP is enabled on the server hence users have option to create their own custom php.ini file and override the actual values set in globally.
I’ve uploaded the custom php.ini file under public_html folder and then sendmail started working.”