Current time: 11-26-2024, 03:20 AM Hello There, Guest! (LoginRegister)


Post Reply 
Warning: fopen() - Warning: shell_exec()
Author Message
xalupeao Offline
Junior Member
*

Posts: 18
Joined: Jul 2008
Reputation: 0
Post: #1
Warning: fopen() - Warning: shell_exec()
I have two problems >.<!

whit shell_exec():

Quote:Warning: shell_exec() has been disabled for security reasons in /var/www/virtual/ccentral.cl/htdocs/panel/games/mohaa/stop.php on line 26

and fopen():
Quote:Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/var/www/virtual/ccentral.cl/:/usr/share/php/) in /var/www/virtual/ccentral.cl/htdocs/panel/start.php on line 31

Warning: fopen(/proc/meminfo) [function.fopen]: failed to open stream: Operation not permitted in /var/www/virtual/ccentral.cl/htdocs/panel/start.php on line 31

what it is solution ? .....

Thanks Big Grin
(This post was last modified: 08-06-2008 04:48 AM by xalupeao.)
08-06-2008 04:43 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: Warning: fopen() - Warning: shell_exec()
You must edit php.ini corresponding to your site. In debian it will be in /var/www/fcgi/ccentral.cl/php5
(This post was last modified: 08-06-2008 04:57 AM by sci2tech.)
08-06-2008 04:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
xalupeao Offline
Junior Member
*

Posts: 18
Joined: Jul 2008
Reputation: 0
Post: #3
RE: Warning: fopen() - Warning: shell_exec()
Perfect :B

but one problem

<br />
<b>Warning</b>: fopen(/root/mohaa/main/server.cfg) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/var/www/virtual/ccentral.cl/htdocs/panel/games/mohaa/edit.php</b> on line <b>394</b><br />
08-06-2008 05:37 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #4
RE: Warning: fopen() - Warning: shell_exec()
fix the permissions on this file.
Remember your php is running with a different user.
(vu20XX)
08-06-2008 05:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #5
RE: Warning: fopen() - Warning: shell_exec()
Also you need to modify open_basedir in php.ini and add /root/mohaa/main/ folder:
open_basedir = "/var/www/virtual/ccentral.cl/:/usr/share/php/:/root/mohaa/main/" . Consider assumed security risk.
//Later:
Permission denied
You already did that. Sorry
(This post was last modified: 08-06-2008 05:55 AM by sci2tech.)
08-06-2008 05:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
xalupeao Offline
Junior Member
*

Posts: 18
Joined: Jul 2008
Reputation: 0
Post: #6
RE: Warning: fopen() - Warning: shell_exec()
No =\ use you seetings sci2tech is not work >.<

Quote:<br />
<b>Warning</b>: fopen(/root/mohaa/main/server.cfg) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/var/www/virtual/ccentral.cl/htdocs/panel/games/mohaa/edit.php</b> on line <b>394</b><br />
08-06-2008 06:41 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #7
RE: Warning: fopen() - Warning: shell_exec()
Quote:chmod -R go+r+x /root
BIG SECURITY RISK!!!
08-06-2008 06:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
xalupeao Offline
Junior Member
*

Posts: 18
Joined: Jul 2008
Reputation: 0
Post: #8
RE: Warning: fopen() - Warning: shell_exec()
sci2tech Wrote:
Quote:chmod -R go+r+x /root
BIG SECURITY RISK!!!

I leave the directory as normal once applied that command?
08-06-2008 10:28 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)