popen() can't use

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ac3000
Forum Newbie
Posts: 6
Joined: Sat Aug 03, 2002 12:54 pm

popen() can't use

Post by ac3000 »

Hi everybody ! I got a problem with Postnuke 7.14. Since I use the modules MyDBbackup in Adminstration mode, but there is an error saying that
your server disabled popen() function in php4
how should I do to enable this function?

please help me!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

is safe_mode enabled?
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

What does Postnuke do that it want's to open a process?
User avatar
ac3000
Forum Newbie
Posts: 6
Joined: Sat Aug 03, 2002 12:54 pm

Post by ac3000 »

volka wrote:is safe_mode enabled?
thank for your reply , but I wonder How can I know I'm in safe mode? and How can I open the popen() function restriction and make it work? 8O 8O
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Run a file on your server that has:

Code: Select all

<?php
phpinfo();
?>
to see how PHP is configured on your server.

Mac
User avatar
ac3000
Forum Newbie
Posts: 6
Joined: Sat Aug 03, 2002 12:54 pm

Post by ac3000 »

this is info() on my server. so what should I do?
http://acad.dynup.net/info.php

tks :roll: :oops:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

from Chapter 23. Safe Mode
(same link as above ;) )
The configuration directives that control safe mode are:
safe_mode = Off
safe_mode_gid = 0
safe_mode_include_dir =
safe_mode_exec_dir =
open_basedir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
in php.ini
either your server is down or you haven't registered it again at the ip-service :(
User avatar
ac3000
Forum Newbie
Posts: 6
Joined: Sat Aug 03, 2002 12:54 pm

register it ?

Post by ac3000 »

Hi Voka
I recived your reply but I don't understand that
register it again at ip-service
what does it mean? what can I do ? :roll: :wink: :cry:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

When I tried to visit http://acad.dynup.net/info.php it was down and thought .dynup.net is a service like dyndns where you 'register' a dns-entry and update it with a client according to your current ip every time you dial up (like I do with kernschmelze.dyndns.org - only sometimes ;) ). Should have marked this "btw:" or "---" :roll:

concerning your problem I suggested to open php.ini and see wether safe_mode is turned on or off. Try again with safe_mode = Off
User avatar
ac3000
Forum Newbie
Posts: 6
Joined: Sat Aug 03, 2002 12:54 pm

Can't work

Post by ac3000 »

Since I use this MyDBbackup modules for postnuke popen() function was error, so I have a idea, would you like to write a test php for me to run on my server to test php is correctly installed? :roll: :roll: :wink:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

ac3000 I edited your post because a whole bunch of text had been replaced with stuff like  use  so something had gone a bit nuts somewhere.

But to the problem in hand - it may be an idea to ask your host why popen() has been disabled. It could be that they've disabled it for security reasons.

Mac
Post Reply