php-install Digest 9 Oct 2002 21:31:36 -0000 Issue 1062

Topics (messages 8732 through 8746):

Re:
        8732 by: Chris Hewitt
        8736 by: Chris Hewitt
        8739 by: Miguel Carvalho
        8742 by: Chris Hewitt
        8743 by: Chris Hewitt

PHP 4.2.3 AND PHPNUKE 6.0 WONT WORK PLEASE HELP
        8733 by: HALUK YETKIN

Re: Archives ?
        8734 by: Stuart Dallas

Apache 1.3 and PHP 4.2 deployment (Linux)- need some advice
        8735 by: Amadej Bukorovic

Re: RedHat 8.0 cannot load MySQL extension
        8737 by: John Thorne

Re: Further problems with ldap_connect
        8738 by: Dirk Kastens

Not able to load the php page
        8740 by: Francois Desautels

Re: General PHP4 question
        8741 by: Miguel Carvalho

Lost connection to MySQL server during query
        8744 by: John Thorne
        8745 by: Rasmus Lerdorf

missing mod_so.c (fwd)
        8746 by: Tim Legg

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Thiago Vinhas wrote:

>Em Tue, 08 Oct 2002 19:41:37 +0100, Chris Hewitt escreveu:
>
>  You (or someone on your shared server, if you share it) would have to 
>
>>put this code onto it in order for it to happen. Yes there are
>>
>settings 
>
>>in php.ini to help prevent this sort of thing.
>>
>How can I control this on php.ini ?
>
safe_mode, open_basedir, safe_mode_exec_dir, safe_mode_allowed_env_vars, 
safe_mode_protected_env_vars, disable_functions.

HTH
Chris

>

--- End Message ---
--- Begin Message ---
Thiago Vinhas de Moraes wrote:

>I'm sorry if I look like a stupid lamer, but what exactly should I put on 
>php.ini? I use the default php.ini provided on the source tarball.
>I tried to put Safe Mode = On, and on disable_functions, I've put all you 
>write bellow, but I can still browse all my partition. Please, help me!
>
I don't use the safe_mode settings, but according to the manual they 
should do what you want (it could be me being the stupid lamer :-). They 
are only of use if you share a server (I assume you would not put code 
on your server that you do not approve of). Have you restarted Apache?

HTH
Chris

--- End Message ---
--- Begin Message ---
> Thiago Vinhas de Moraes wrote:
>
>>I'm sorry if I look like a stupid lamer, but what exactly should I put
>>on  php.ini? I use the default php.ini provided on the source tarball.
>>I tried to put Safe Mode = On, and on disable_functions, I've put all
>>you  write bellow, but I can still browse all my partition. Please,
>>help me!
>>
> I don't use the safe_mode settings, but according to the manual they
> should do what you want (it could be me being the stupid lamer :-).
> They  are only of use if you share a server (I assume you would not put
> code  on your server that you do not approve of). Have you restarted
> Apache?
>
> HTH
> Chris

Are you shure you have changed the right php.ini?
Take a look to the output of function phpinfo() to be shure of the right
php.ini to change.
Miguel


--- End Message ---
--- Begin Message ---
Thiago Vinhas de Moraes wrote:

>Em Wed, 9 Oct 2002 15:36:18 +0100 (WEST), "Miguel Carvalho" escreveu:
>
>>>I don't use the safe_mode settings, but according to the manual they
>>>should do what you want (it could be me being the stupid lamer :-).
>>>They  are only of use if you share a server (I assume you would not put
>>>code  on your server that you do not approve of). Have you restarted
>>>Apache?
>>>
>>Are you shure you have changed the right php.ini?
>>Take a look to the output of function phpinfo() to be shure of the right
>>php.ini to change.
>>
>I'm running a webserver that has about 300 websites. I saw the phpinfo
>output, and it should work. Could you please take a look at
>http://milenio.simpleweb.com.br/info.php ? 
>I've already restarted the apache server.
>
Your phpinfo shows /usr/lib/php.ini

HTH
Chris
PS Your clock is still at 1970 so its easy to miss your posts.


--- End Message ---
--- Begin Message ---
Thiago Vinhas de Moraes wrote:

>Em Wed, 9 Oct 2002 15:36:18 +0100 (WEST), "Miguel Carvalho" escreveu:
>
>I'm running a webserver that has about 300 websites. I saw the phpinfo
>output, and it should work. Could you please take a look at
>http://milenio.simpleweb.com.br/info.php ? 
>I've already restarted the apache server.
>
I've tried running your code here. I've turned register_globals on for 
this test. Even with safe_mode Off, I can only scan directories or see 
files that my Apache user "nobody" is allowed to read. With safe_mode On 
and open_basedir = /var/www/html I can only see the single directory / 
and no directories within it (i.e. not dev, lost+found, home, usr etc).

This is with php 4.1.2 on a RedHat 7.3 linux system.

Do you get the same (you had not set open_basedir) or are we looking at 
a php 4.2.3 problem?

HTH
Chris


--- End Message ---
--- Begin Message ---
My hosting company upgraded php to version 4.2.3 but my phpnuke wont work
now .  You can check my hosting php info from
http://www.crmhaber.com/testenv.php  .   other php file working fine on
server but phpnuke files wont work.

Please help me about it.


--- End Message ---
--- Begin Message ---
Christophe Beyer wrote:
> I'd like to know if the archives of this list are available ?

http://marc.theaimsgroup.com/?l=php-install

-- 
Stuart

--- End Message ---
--- Begin Message ---
Hello everyone
I need some advice about running/installing Apache 1.3 with PHP 4.2 in safe
mode (on Linux). I'm trying to determine the best
way of managing several websites on one server. The requirements are that it
should be as user friendly as possible but also
secure (well then again that's what we all want isn't it :) ).

The basic concept of having users with ftp/shell access to their home
directory and a special directory for web to which DocumentRoot of a virtual
host on Apache points to is a bit unsuitable. The reason for this is that a
lot of hosted web sites have content managers written
in PHP, which means that files are being stored by the web server which
later need to be displayed online.
And if PHP runs in safe mode that becomes a problem since (per default)
Apache runs as nobody/nobody and all the files uploaded
therefore belong to the same user/group, meanwhile users have their own
group (let's say users as in per default).

The only possible way, that I thought of, to avoid this would be to make a
special group for all www users, which would also include the user under
which Apache would run under. For instance: Apache would run as user apache
and would belong to group www, all the users would be user1, user2, user3...
and would also belong to group www.

But I have second thoughts about this since the apache daemon would
potentially have more access than the default install (where apache runs
under it's own user and group). I can't really think of any now, but I'm
sure I overlooked something and would regret it in the long run (or would
I?).

Any suggestion on this topic and my problem would be greatly appreciated. I
did read somewhere that Apache 2.0.x supports running child processes with
different users/groups, which would fully eliminate my problem if I would
upgrade from version 1.3.x (if that is true I could just define it to run
under the same user/group as is the virtual host "owner"), and enable me to
run in strict safe mode checks (and not "downgrade" to GID checks). Can
anyone confirm that?

Thanks in advance,
Amadej.




--- End Message ---
--- Begin Message ---
The problem is php_mysql is not installed with the "default" web
applications
in 8.0. Installed the php_mysql rpm and mysql now appears in the phpinfo
page.
But the problem now is when trying to access mysql thru phpmyadmin I get an
error:
Lost connection to MySQL server during query
??
jrt


"John Thorne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Apache 2.0.40 / php 4.2.2 / mySQL 3.23.52
>
> Getting the following error trying to open
> phpmysqladmin:
>
> cannot load MySQL extension,
> please check PHP Configuration
>
> I can display phpinfo
> and mysql  is listed under dbx suppoeted databases
>
> What am i missing ??
>
> Can someone point me to a setup howto
>
> thanks
>
> jrt
>
>


--- End Message ---
--- Begin Message ---
Hi,

"Stig Venaas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Thu, Oct 03, 2002 at 09:27:36AM -0400, Stewart Dean wrote:
> > Gentlebeings:
> >
> > I talked with the IBM SecureWay Directory support folks on this problem
(Please see my "Problems
> > with ldap_connect" post, which <ahem> no one has responded to yet), and
in the initial poking around
> > discovered that it doesn't seem that IBM doesn't supports ldap_connect
calls, but rather ldap_open
> > and ldap_init.  Before everyone starts crowing about IBM departures from
Open Standards, take a look
> > at the original LDAP RFC1823, which specifies ldap_open...and nothing
else. I have been unable to
> > find any subsequent RFC specifying anything for either ldap_init or
ldap_connect.

This has nothing to do with IBM. We have an IBM (now called) Directory
Server 4.1
installed and the ldap_connect and ldap_bind functions of PHP work as
expected.

Dirk Kastens


--- End Message ---
--- Begin Message ---
Hi,

I've installed php 4 with apache 1.3.20, apache seems to work fine, but when
I point to a *.php file, it keeps on asking me to save the file.

All I put in the file is
<html>
<body>
<? echo "Hello World" ?>
</body>
</html>

I have edited the httpd.conf, uncommenting the line.

Any help would be appreciated.


--- End Message ---
--- Begin Message ---
>> Hi,
>>
>> I just got PHP4 and Apache 1.3.26 working (sort of I think) after 4
>> days of messing around, but something is still not right. When I run
>> the test <?phpinfo()?> it works fine, but when I run a previous test
>> file I created, it doesn't work. I know the syntax is correct as it
>> works on the machine at work, but no go here. All it does is take a
>> form to input addresses and outputs it to a php file, but it is not
>> passing the variables. There are some "if" statements in the php file
>> that are also not working. You can see what I mean at
>> http://beauford.dyndns.org/info.htm.
>>
>> I am thinking that there is still something I am missing in httpd.conf
>
>> or php.ini, but any input is appreciated.
>>
>> TIA
>>
>> Oh, by the way. I'm running FreeBSD 4.6.2 as is the machine at work.
> Check the register globals on the one at home in your php.ini file.
>
> It was off and I turned it to on and the same thing.

Have you restarted Apache?

try a print_r( $_GLOBALS ) and see if it displays.
You variable name is shown as a item of the $_GLOBALS array.

Miguel



--- End Message ---
--- Begin Message ---
Working with new clean install of Redhat 8.0 and
Apache 2.0.40 / php 4.2.2 / mySQL 3.23.52

I have a phpinfo page and mySQL is setup

When ever I try to attach to mySQL
thru php (DreamweaverMX/phpmysqladmin)
I get the following error:

Lost connection to MySQL server during query

Is there an article on setting up these new versions of
Apache/mySQL/PHP someone could point me to

I must be missing something in one of the conf files

thanks

jrt


--- End Message ---
--- Begin Message ---
Which Apache2 MPM?

Apache2+PHP is extremely unstable.  I would strongly suggest installing
Apache 1.3.x.

-Rasmus

On Wed, 9 Oct 2002, John Thorne wrote:

> Working with new clean install of Redhat 8.0 and
> Apache 2.0.40 / php 4.2.2 / mySQL 3.23.52
>
> I have a phpinfo page and mySQL is setup
>
> When ever I try to attach to mySQL
> thru php (DreamweaverMX/phpmysqladmin)
> I get the following error:
>
> Lost connection to MySQL server during query
>
> Is there an article on setting up these new versions of
> Apache/mySQL/PHP someone could point me to
>
> I must be missing something in one of the conf files
>
> thanks
>
> jrt
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I am having a difficult time believing that nobody knows how to do this.

I have gotten absolutely no feedback.

Any ideas/alternatives?  Should I try a more advanced list?

---------- Forwarded message ----------
Date: Mon, 7 Oct 2002 13:42:57 -0500 (CDT)
From: Tim Legg <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP-INST] missing mod_so.c

FreeBSD 4.6    //
Apache 1.3.26  //
Mailman 2.0.13 //Gnu mailing list management software
MySQL 3.23.52  //


Hello,

When I run 'httpd -l', mod_so.c is not in the list of installed modules.
I dare not proceed for that reason.  INSTALL doesn't tell how to get it
installed.  I actually have a copy of mod_so.c in the source of my version
of apache.

I would strongly prefer to not reinstall Apache because I have Mailman
that depends on Apache and I can't afford the risk of breaking my mailing
list.

Any suggestions?


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---

Reply via email to