I'm running 2 magento apps on my web server and I accidently set "chown -R www-data:www-data *" from the root of the server. Meaning, all the files were owned by the user root.
This immediately spawned problems on the magento websites, namely: mysql didn't connect because it was supposed to use the "mysql" user.
I since fixed that, and set the web page files to be owned by www-data.
The websites run fine now, but when I try to finalize an order, it hangs there for a minute before timing out. The order registers on the backoffice but it doesn't display the "Order sucessuful page" as it is supposed to.
I'm running nginx & php-fpm, and the php-fpm log reads:
[22-Mar-2013 13:31:24] WARNING: [pool www] child 1791, script '/var/www/website.com/index.php' (request: "POST /index.php") execution timed out (1436.378897 sec), terminating [22-Mar-2013 13:31:24] WARNING: [pool www] child 1791 exited on signal 15 (SIGTERM) after 1600.011818 seconds from start [22-Mar-2013 13:31:24] NOTICE: [pool www] child 2717 started
What's happening? Can this be occuring because some files aren't owned by their proper owner? If so, which files/folders are those and what owner is it supposed to have?
Edit: It must be something to do with postfix. A normal php script echoing "Hello World" renders just fine, when I put a mail() function in there it hangs.