[PHP] Compiling PHP on AIX 5.3 works fine except for Apache module...

2005-06-29 Thread Sebastien Roy

Hi guys...

I compiled PHP 4.3.9 on AIX 5.3 ML02 with this command...

# ./configure --enable-calendar --enable-ftp --with-gd --with-gettext 
--enable-mime-magic --with-mysql --with-iconv --enable-mbstring=all 
--enable-mbregex --with-apxs=/opt/apps/apache/1.3.33/bin/apxs 
--with-zlib-dir=/usr/local/lib --with-zlib --with-png-dir 
--with-freetype-dir

# make
# make install

Everything works perfectly except for the apache module  when I try 
to start apache with that module I got this error:


Syntax error on line 205 of /opt/apps/apache/1.3.33/conf/httpd.conf:
Cannot load /opt/apps/apache/1.3.33/libexec/libphp4.so into server: 
0509-130 Symbol resolution failed for 
/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../libz.so 
because:
   0509-136   Symbol _GLOBAL__F__Unwind_GetLanguageSpecificData 
(number 23) is not exported from
  dependent module 
/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../libgcc_s.a(shr.o).
   0509-022 Cannot load module 
/opt/apps/apache/1.3.33/libexec/libphp4.so.
   0509-026 System error: Cannot run a file that does not have a 
valid format.

   0509-192 Examine .loader section symbols with the
'dump -Tv' command.
/opt/apps/apache/1.3.33/bin/apachectl start: httpd could not be started

But the /usr/local/bin/php command works fine ...

# /usr/local/bin/php -v
PHP 4.3.11 (cli) (built: Jun 28 2005 23:47:50)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

# /usr/local/bin/php -m
[PHP Modules]
calendar
ctype
ftp
gd
gettext
iconv
mbstring
mysql
overload
pcre
posix
session
standard
tokenizer
xml
zlib

[Zend Modules]




Anyone have an idea why the module is not working ?

Thanks

Sébastien Roy
Administrateur de Systèmes Senior / Senior System Administrator
PointPub Communications. - Laval, Canada
(514) 867-1079
[EMAIL PROTECTED]
www.pointpub.net

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



[PHP] Browsers anachy !!!!!!!!!!!!

2001-05-02 Thread Sebastien Roy

Hi all,

I'm having a strange problem. I volontary create an infinite loop in one
of my PHP script. I was just wondering how Apache and PHP will react and
if the "max_execution_time" directive would trap the loop. I was
agreably suprised to see that the opera browser give me an error message
"Fatal error: Maximun execution time of 5 seconds exceeded in ". The
same occured with MS explorer and Mozilla. But, with Netscape, there is
nothing to do. It loops forever and I add to restart my linux box
($%^!$) witch is something I almost never do.  I really hate that
browser, but I must deal with it...

Is there something particular I have to do to avoid this problem with
the Netscape browser?



Regards,

Sebastien Roy
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] restrict access of Copy command

2001-05-02 Thread Sebastien Roy

Hi

I got the same setup as you with safe_mode = On  and I try to use the copy
function between 2 virtual host. When I copy from one virtual host to another,
I got an error message telling me that the copy function is not allowed :

Warning: SAFE MODE Restriction in effect. The script whose uid is 88 is not
allowed to access /home/host/yourdomain owned by uid 98 in
home/www/host/127.0.0.1:8080/html/index.php on line 37

His your virtual host have all the same users?


Regards,

Sebastien Roy


PanDragon wrote:

> Thanks for the suggestion, but I need to be able to use the copy command, I
> just do not want it to be able to read from one virtual host to another. I
> would imagine that lots of web hosters running php with virtual hosts would
> have the same problem.
>
> Sebastien Roy <[EMAIL PROTECTED]> wrote in message
> news:<[EMAIL PROTECTED]>...
> > Hi,
> >
> > There is a section in the php.ini where you can specified the function you
> > don't whant to use  :
> >
> > disable_functions : copy; ...
> >
> > I never used it, but I think it's what you are looking for.
> >
> >
> > Regards,
> >
> > Sebastien Roy
> > [EMAIL PROTECTED]
> >
> >
> > PanDragon wrote:
> >
> > > I am running an apache server with virtual hosts and need to prevent the
> php
> > > Copy command from being able to copy from one virtual host dir to
> another.
> > >
> > > The server is in php safe mode and the doc_root, and basedir are set
> > > correctly, at least they prevent "includes" and "opendir" and such from
> > > working, but "copy" still works.
> > >
> > > I sure would appreciate any suggestions.
> > >
> > > Pan
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> Sebastien Roy <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > There is a section in the php.ini where you can specified the function you
> > don't whant to use  :
> >
> > disable_functions : copy; ...
> >
> > I never used it, but I think it's what you are looking for.
> >
> >
> > Regards,
> >
> > Sebastien Roy
> > [EMAIL PROTECTED]
> >
> >
> > PanDragon wrote:
> >
> > > I am running an apache server with virtual hosts and need to prevent the
> php
> > > Copy command from being able to copy from one virtual host dir to
> another.
> > >
> > > The server is in php safe mode and the doc_root, and basedir are set
> > > correctly, at least they prevent "includes" and "opendir" and such from
> > > working, but "copy" still works.
> > >
> > > I sure would appreciate any suggestions.
> > >
> > > Pan
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] restrict access of Copy command

2001-05-01 Thread Sebastien Roy

Hi,

There is a section in the php.ini where you can specified the function you
don't whant to use  :

disable_functions : copy; ...

I never used it, but I think it's what you are looking for.


Regards,

Sebastien Roy
[EMAIL PROTECTED]


PanDragon wrote:

> I am running an apache server with virtual hosts and need to prevent the php
> Copy command from being able to copy from one virtual host dir to another.
>
> The server is in php safe mode and the doc_root, and basedir are set
> correctly, at least they prevent "includes" and "opendir" and such from
> working, but "copy" still works.
>
> I sure would appreciate any suggestions.
>
> Pan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to modify xml files using php

2001-04-20 Thread Sebastien Roy

Hi,

Use the dom xml function privided with the --with-dom=/usr/local/libxml
(witch is the path to the libxml library). There is a good tutorial about
DOM at www.phpbuilder.com.

Enjoy!

Sebastien Roy
[EMAIL PROTECTED]


Serge Vleugels wrote:

> hi,
>
> I've got to change a XML document,
> so read the file, display it, provide a way to modify it and then write
> the modifications.
> has anyone done this allready or has any experiance ?
>
> thx
>
> Serge "Zeddicus Zu'l Zorandre" Vleugels
>
> -- freedom is the wizard's only choice --
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] XML

2001-04-04 Thread Sebastien Roy

Sorry, but i'm not sure to understand your response... (maybe it's the question
that I don't understand)

I thought that the question was ansking for a simple way to validate a xml document
with his associated dtd by a php script. It would be very useful for me to validate
the xml document once it has been created. Only to be sure that it is still
well-formed after that I made my changes on it.

Regards,

Sebastien Roy
[EMAIL PROTECTED]

Joe Stump wrote:

> AFAIK php doesn't care about extensions (ie .html vs .htm) - if it's valid
> XML and expat supports it then you should be good to go. I've parsed .rdf just
> fine...
>
> --Joe
>
> On Wed, Apr 04, 2001 at 03:09:36PM +0200, Andreas Sisask wrote:
> > Hello,
> >
> > Does php have some feature of using .dtd or .xsd in parsing an .xml file?
> > I mean for example if I parse some .xml (which refers to some .dtd) it
> > checks that the .xml is correct or if not then
> > gives quite exact error about it.
> >
> > Andreas
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> /**\
>  *Joe Stump - PHP/SQL/HTML Developer  *
>  * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
>  * "Better to double your money on mediocrity than lose it all on a dream."   *
> \**/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] XML

2001-04-04 Thread Sebastien Roy

Hi Andreas,

Please let me know if you find something about that, it would be really
nice!

Regards,

Sebastien Roy
[EMAIL PROTECTED]


Andreas Sisask wrote:

> Hello,
>
> Does php have some feature of using .dtd or .xsd in parsing an .xml file?
> I mean for example if I parse some .xml (which refers to some .dtd) it
> checks that the .xml is correct or if not then
> gives quite exact error about it.
>
> Andreas
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Giving my script the power!

2001-03-29 Thread Sebastien Roy

Hi,

I'm doing the exact same thing as you and I got the exact same problem. After
getting almost crazy with trying everything possible to run a script as root,
someone told me that I'm limited to the server permission. So I decided to
simply create a java deamon wich run as root. This deamon wait on a port for
commands (encrypted) to be executed.via fsockopen(...).  Surprisly, it was
easy and it work prety well...

Hope it helps

Sebastien Roy
[EMAIL PROTECTED]


Brandon Orther wrote:

> Hello,
>
> I am trying to make a script that can add users and multiple things to a
> linux box.  I have all teh programming issues solved except I need to make
> this script root, or make it able to run anyhting it want to.  Is there a
> way to make my php script liek a super user?
>
> INFO: Redhat 7 Apache1.?
>
> Thanks
> Brandon Orther
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A problem under Solaris

2001-03-22 Thread Sebastien Roy

There it is : http://www.spiral303.com/solaris/frex254a.shtml


Regards

Sebastien Roy


Emiliano Marmonti wrote:

> Thank you Sebastian,
> but I want to know what is flex (and I don´t know where could I obtain it).
>
> Thanks again.
> Emiliano.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A problem under Solaris

2001-03-22 Thread Sebastien Roy

I got the same problem as you did,

Just pick-up flex on a gnu mirror and your problem will be corrected!

Regards,

Sebastien Roy
www.galeasec.com


Emiliano Marmonti wrote:

> Hello all
>
>   I´m trying to compile PHP 4.0 under Solaris 8.0 - SPARC 250. When I try to 
>configure using the appropiate script, it test for the existence of one package 
>called lex and another called flex, both couldn´t be found and the script can´t 
>continue. Anybody has be in the same trouble? Any idea? What are those packages?
>
> Thanks in advance
> Emiliano


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] undefined symbol: xmlXPtrNewContext

2001-03-05 Thread Sebastien Roy

I'm having the exact same problem, did someone find a way to correct that
problem Evething looks good when compiling, the error occured when I
try to start Apache.

I am using sablotron 0.51 with libxmlparse and libxmltok that came from the
Sablotron RPM version 0.44 (because I could not find them anywhere else).

Regards,

Sebastien Roy
PHP programmer
[EMAIL PROTECTED]


Jack Lauman wrote:

> I get the following error when I attempt to start Apache 1.3.19
> (RedHad 7.0):
>
> apachectl start
>
> Syntax error on line 230 of /etc/httpd/conf/httpd.conf:
> Cannot load /usr/lib/apache/libphp4.so into server:
> /usr/lib/apache/libphp4.so:
> undefined symbol: xmlXPtrNewContext
> /usr/sbin/apachectl start: httpd could not be started
>
> I'm using libxml 2.3.3, and I assume the error is from the ./configure
> statement --xith-dom
>
> I'd appreciate any suggestions on how to resolve it.
>
> TIA
>
> Jack
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]