Re: RE: Safe_mode installation
patrice <[email protected]> Tue, 21 Oct 2003 11:27:42 +0200
| Newsgroups | gmane.comp.audio.netjuke.user |
|---|---|
| Message-ID | <[email protected]> |
||| Michael Maymann a =E9crit :>>>
> It gives me the following when running installer.php:
> Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in
> <mydir>/musik/installer/lib/inc-generate.php line 164
> Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in
> <mydir>/musik/installer/lib/inc-generate.php line 165
> Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in
> <mydir>/musik/installer/lib/inc-generate.php line 166
> Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in
> <mydir>/musik/installer/lib/inc-generate.php line 167
> Warning: mysql_pconnect(): Can't connect to local MySQL server through
> socket '/tmp/mysql.sock' (2)
> in <mydir>/musik/lib/adodb/drivers/adodb-mysql.inc.php on line 227
in archives i could find that (which could help me with a similar problem=
,=20
and that resolved my problem, maybe there was something else, but i don't=
=20
remember anymore):
-------------------------------------------------------------------------=
-
> Warning: Cannot execute using backquotes in safe mode in
> /home/virtual/site3/fst/var/www/html/musics/installer/lib/inc-generate=
.php
> on line 164
The installer executes the following shell commands to determine where
certain programs are installed in installer/lib/inc-generate.php:
=20
$zip =3D substr (`which zip`, 0, -1);
$tar =3D substr (`which tar`, 0, -1);
$stuff =3D substr (`which stuff`, 0, -1);
$vorbiscomment =3D substr (`which vorbiscomment`, 0, -1);
=20
Apparently your php is configured in safe-mode which doesn't allow the
backticks `` to be used to execute shell-commands. You can either try
to replace to code with the following commands....
=20
$zip =3D substr (exec("which zip"), 0, -1);
$tar =3D substr (exec("which tar"), 0, -1);
$stuff =3D substr (exec("which stuff"), 0, -1);
$vorbiscomment =3D substr (exec("which vorbiscomment"), 0, -1);
=20
-------------------------------------------------------------------------=
-=20
pat
> Hi all,
>
> First of all thanks for a great product !!!!!
> How about making it a "plugin" to www.tikiwiki.org ? :-)
>
> I am trying to install NetJuke on a safe_mode enabled webhosting serv=
er
> with only ftp and http access.
> It is currently installed on www.boxseat.dk/musik.
>
> Can anyone help me out ?
>
> Thanks in advance
> Maymann
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54