|
|||
|
security php fopen chmod 777
Hi
If using php in a cPanel account the only way I can write to a file is to CHMOD as writable to everybody . I would have thought this is a security issue, enabling anyone to write to that file. Can someone please clarify? I have read somwhere that for some reason this is still secure, but I question that. eg $fileH = fopen("/home/path/to/file","w"); comes up with Warning: fopen(/home/path/to/file): failed to open stream: Permission denied in /home/path/to/file on line 2 unless CHMOD xx6 or xx7 Many Thanks Sky |
|
|||
|
We have an issue on a server which we upgraded php and after running /scripts/convert2maildir
Warning: fopen(/tmp/horde_32001.log): failed to open stream: Permission denied in /usr/local/cpanel/3rdparty/lib/php/Log/file.php on line 202 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/3rdparty/lib/php/Log/file.php:202) in /usr/local/cpanel/base/horde/login.php on line 96 |
|
||||
|
Quote:
Quote:
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|