Hi, a have problem with php in simple configuration domain example: http://piastczluchow.pl/index.php i have ERROR 500 - Internal Server Error! but if i put this same file on /var/www/index.php on adress http://62.244.140.2/index.php i don't have this problem. Please help me !
Hi erosbk, Yes I using fast-cgi with su-exec enabled? if i change to mod-php for my site, offcourse site working fine, but why doesn't working with su-exec ?
Most likely a problem with file permissions. E.g. if the file is owned by root, then you get a 500 error as this is a security violation for apache suexec. Ensure that the index.php file and all other files inside the web directory are owned by the web user and client group of this website. Additionaly you should chmod the file to 755.
Simple index.php code: <?php phpinfo(); ?> dosen't work with su-exec if I change to mod-php everything is fine and ok, but why dosen't work as fast-cgi mode ? file owner is user domain and wgat of course 777 privileges
Please read my post above carefully, chmod should be 755 and not 777 and the file has to be owned by the website user and client group of this website and not a user called domain or the apache user! The detailed eason for the error can also be found in the error.log of the website.