Control Web Panel

WebPanel => PHP => Topic started by: teknohan on September 19, 2014, 07:04:35 AM

Title: PHP fopen doesn`t work in domains or /usr/local/apache/htdocs/.
Post by: teknohan on September 19, 2014, 07:04:35 AM
i ddisable SElinux,  give file permission 777  and upload files from each user ftp account
still doesn`t work  can`t create files for W mode please help
Title: Re: PHP fopen doesn`t work in domains or /usr/local/apache/htdocs/.
Post by: teknohan on September 19, 2014, 07:42:44 AM
When i try 777 i get error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, info@rgbimage.com.au and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I only can make it 754

Title: Re: PHP fopen doesn`t work in domains or /usr/local/apache/htdocs/.
Post by: teknohan on September 19, 2014, 08:47:40 AM
solved by myself thanks to google and my 3 hours
Title: Re: PHP fopen doesn`t work in domains or /usr/local/apache/htdocs/.
Post by: teknohan on September 19, 2014, 09:00:23 AM
777 mod problem still continue when i change mod to 777 i got server internal error  :(
Title: Re: PHP fopen doesn`t work in domains or /usr/local/apache/htdocs/.
Post by: Administrator on September 19, 2014, 12:29:24 PM
please read instructions on the forum, you have also file permission fixer in the panel if you do not know how to set permissions.

http://forum.centos-webpanel.com/php/suphp-500-internal-server-error/

/usr/local/apache/htdocs must have nobody:nobody ownership.
Title: Re: PHP fopen doesn`t work in domains or /usr/local/apache/htdocs/.
Post by: teknohan on September 22, 2014, 02:54:08 AM
thanks used fix user file permission tool and problem was i was using root sftp to give permission to other users