<MG>CP
06-30-2007, 01:42 AM
Getting a couple errors maybe someone can identify. Here comes the story...
When adding a game i get these type of errors:
Warning: fopen(nameofgame.php) [function.fopen]: failed to open stream: Permission denied in /arcade/functions/tar.php on line 394
Warning: require() [function.require]: Unable to access /home/websitepath/public_html/forums/arcade/tmp/gamename.php in /admincp/arcade.php on line 2862
I was hoping a simple permission error, but folders are properly Chmoded for /arcade and subdirectories. Many games actually DO install, but many also installed, yet fail to run. Files appear to all be correct size. Safe mode is on and is something we need on.
Finally, ran this past our PHP guy, who is much smarter then me on this stuff and wanted to pass on his thoughts to the coders of this mod:
Look like that the script is trying to unpack tar.gz archives and fails due limited permissions. I assume that this plug-in is not fully compatible with PHP safe mode.
PHP is more strict in this mode and allows only to access files within the majorgeeks directory and owned by that user. It looks like that the script is using full paths (/home/user/public_html...) instead of a local path (example: ./arcade/tmp/). This may conflict with the safe mode concept after the full path is technically outside of the majorgeeks site directory.
Is this a known issue with safe mode, otherwise, any idea how I can fix this?
When adding a game i get these type of errors:
Warning: fopen(nameofgame.php) [function.fopen]: failed to open stream: Permission denied in /arcade/functions/tar.php on line 394
Warning: require() [function.require]: Unable to access /home/websitepath/public_html/forums/arcade/tmp/gamename.php in /admincp/arcade.php on line 2862
I was hoping a simple permission error, but folders are properly Chmoded for /arcade and subdirectories. Many games actually DO install, but many also installed, yet fail to run. Files appear to all be correct size. Safe mode is on and is something we need on.
Finally, ran this past our PHP guy, who is much smarter then me on this stuff and wanted to pass on his thoughts to the coders of this mod:
Look like that the script is trying to unpack tar.gz archives and fails due limited permissions. I assume that this plug-in is not fully compatible with PHP safe mode.
PHP is more strict in this mode and allows only to access files within the majorgeeks directory and owned by that user. It looks like that the script is using full paths (/home/user/public_html...) instead of a local path (example: ./arcade/tmp/). This may conflict with the safe mode concept after the full path is technically outside of the majorgeeks site directory.
Is this a known issue with safe mode, otherwise, any idea how I can fix this?