php-install Digest 4 Apr 2003 03:49:19 -0000 Issue 1320
Topics (messages 10479 through 10499):
Oracle 8 problem
10479 by: Frédéric Lhoest
10485 by: Jim Thome
10486 by: Jim Thome
PHP not accepting variables
10480 by: Anton Piatek
10481 by: Matt Schroebel
10482 by: Rich Gray
10483 by: Anton Piatek
10484 by: Matt Schroebel
Safe_mode / PHP3 and 4
10487 by: Ronan Lucio
OS Versions PHP compiles with
10488 by: Kevin Angus
10489 by: Rasmus Lerdorf
PHP with PDFlib installation on Windows
10490 by: Bill Hudspeth
10491 by: Matt Schroebel
mail function is not working
10492 by: Dorian Szekely
10493 by: Michael Scappa
10494 by: Dorian Szekely
Re: PHP on Apache on WinXP
10495 by: John
Re: PHP on Apache for Windows
10496 by: John
Re: "GET" method can not get variables
10497 by: John
Re: Apache 1.3.1 PHP4 Win XP troubles
10498 by: John
php upgrade truncates text
10499 by: Ronald Wiplinger
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 ---
Help !
I cannot install php with oci8 on my second server ... on the first one it was very
easy ... Anyone can help ?
Here is the dump :
---
[...]
alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo
Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo
Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo
Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo
Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo
Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo
Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo
main/internal_functions_cli.lo -lcrypt -lcrypt -lpng -lz -lz -lresolv -lm -ldl -lnsl
-ldl -lm -lclntsh -lcrypt -lcrypt -o sapi/cli/php
/lib/libpthread.so.0: undefined reference to `_rtld_global'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[EMAIL PROTECTED]/php-4.3.2RC1]# ll
---
Error occurs when configuring from :
./configure --with-oci8=$ORACLE_HOME --with-apache=../apache_1.3.27 --enable-ftp
--without-mysql --with-gd --with-zlib --enable-sigchild
I really need help!!!!
_________________________________
Frederic Lhoest, IT Assistant
CCA - Centrale de Communications Africaines S.A.
Avenue Jean Mermoz, 30
6041 Gosselies, Belgium
Web Site : http://www.ccafrique.net/
--- End Message ---
--- Begin Message ---
/lib/libpthread.so.0: undefined reference to
[EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to
[EMAIL PROTECTED]'
/lib/libpt
hread.so.0: undefined reference to
[EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to
[EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to
[EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[EMAIL PROTECTED]/php-4.3.2RC1]# ll
---
Error occurs when configuring from :
./configure --with-oci8=$ORACLE_HOME --with-apache=../apache_1.3.27
--enable-ftp --without-mysql --with-gd --with-zlib --enable-sigchild
I really need help!!!!
_________________________________
Frederic Lhoest, IT Assistant
CCA - CentraleReceived: from FC1-MTA by gwmail.ci.fort-collins.co.us
de Communications Africaines S.A.
Avenue Jean Mermoz, 30
6041 Gosselies, Belgium
Web Site : http://www.ccafrique.net/
--- End Message ---
--- Begin Message ---
/lib/libpthread.so.0: undefined reference to
[EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to
[EMAIL PROTECTED]'
/lib/libpthread
.so.0: undefined reference to
[EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to
[EMAIL PROTECTED]'
/lib/libpthread.so.0: undefined reference to
[EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[EMAIL PROTECTED]/php-4.3.2RC1]# ll
---
Error occurs when configuring from :
./configure --with-oci8=$ORACLE_HOME --with-apache=../apache_1.3.27
--enable-ftp --without-mysql --with-gd --with-zlib --enable-sigchild
I really need help!!!!
_________________________________
Frederic Lhoest, IT Assistant
CCA - CentraleReceived: from FC1-MTA by gwmail.ci.fort-collins.co.us
de Communications Africaines S.A.
Avenue Jean Mermoz, 30
6041 Gosselies, Belgium
Web Site : http://www.ccafrique.net/
--- End Message ---
--- Begin Message ---
Hi,
I just installed php on apache 1.3 under SUSE 8.1 (all the SUSE rpms) and it
doesnt seem to like passing variables in the http request...
eg. http://piatek.kicks-ass.net/tanzania2001/diary/index.php?Open=day06.php the
index.php page doesnt seem to get passed that variable... and i have no idea why...
(btw, that url may not be valid... I dont have a static ip yet... )
Does anyone know if there is an option i should be looking at in the php.ini?
Anton
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Anton Piatek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP not accepting variables
>
>
> Hi,
> I just installed php on apache 1.3 under SUSE 8.1 (all
> the SUSE rpms) and it doesnt seem to like passing variables
> in the http request...
You don't say what version of php you are using, so take a look at see
that register_globals is on. Or change how you access the variables to
the new way , of $_GET['Open'] instead.
--- End Message ---
--- Begin Message ---
> Hi,
> I just installed php on apache 1.3 under SUSE 8.1 (all the
> SUSE rpms) and it doesnt seem to like passing variables in the
> http request...
>
> eg.
> http://piatek.kicks-ass.net/tanzania2001/diary/index.php?Open=day0
> 6.php the index.php page doesnt seem to get passed that
> variable... and i have no idea why... (btw, that url may not be
> valid... I dont have a static ip yet... )
>
> Does anyone know if there is an option i should be looking at in
> the php.ini?
>
> Anton
Anton
I'd guess it is because register_globals is off by default in php.ini
http://www.php.net/manual/en/security.registerglobals.php
Try echo $_GET['Open'] in your index.php script...
HTH
Rich
--- End Message ---
--- Begin Message ---
Sorry, PHP v 4.2.2
and register_globals is off... id rather not have to rewrite all my pages
again, so would like to get it working.
funny though... i installed gallery (gallery.sourceforge.net) and it works
fine using the variables...
eg http://piatek.kicks-ass.net/gallery/view_album.php?set_albumName=album01
seems to work fine... wheras
. http://piatek.kicks-ass.net/tanzania2001/diary/index.php?Open=day06.php
doesnt...
i dont understand why... is it likely to be a coding issue? (the letter url
runs on my old webserver, (i have just moved from windows to linux))
Anton
----- Original Message -----
From: "Matt Schroebel" <[EMAIL PROTECTED]>
To: "Anton Piatek" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 5:09 PM
Subject: RE: [PHP-INST] PHP not accepting variables
> -----Original Message-----
> From: Anton Piatek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP not accepting variables
>
>
> Hi,
> I just installed php on apache 1.3 under SUSE 8.1 (all
> the SUSE rpms) and it doesnt seem to like passing variables
> in the http request...
You don't say what version of php you are using, so take a look at see
that register_globals is on. Or change how you access the variables to
the new way , of $_GET['Open'] instead.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Anton Piatek [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 11:26 AM
> To: Matt Schroebel; [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] PHP not accepting variables
>
>
> Sorry, PHP v 4.2.2
>
> and register_globals is off... id rather not have to rewrite
> all my pages
> again, so would like to get it working.
Turn it on, either in php.ini,
or in .htaccess as:
php_value register_globals 1
--- End Message ---
--- Begin Message ---
Hello,
I installed Apache-1.3.27 + PHP-4.3.1 as static.
So, I have two doubts:
1. Someone has told me that Safe_mode don't permit
any intaration with the system like phpinfo()
and the users couldn't execute a cat, ls and so on.
I enabled PHP safe_mode and executed a test with
phpinfo() and it showed the system informations... :-/
What exactly safe_mode does?
How can I deny any interation between PHP and the OS
commands?
2. I'd like to install support for PHP3 and PHP4.
reading the manuals, it says to compile apache
with the option --with-apx, but it didn't work
with parameter --with-apache.
Can I install PHP3 and PHP4 with apache in static mode?
How can I do it?
Thank's
Ronan
--- End Message ---
--- Begin Message ---
I just installed yoper and tried to get PHP-4.3.2RC1 to compile but MAKE
keeps failing with an error on my_tempnam, I hunted around and found some
bogus bug reports about the error but nothing that would help me. Apache
2.045 compiled without any problems.
The yoper people say "glibc-2.3.2 is hopefully supported soon by your
version of php" ?
Is there any workarounds for this?
Thanks
--- End Message ---
--- Begin Message ---
Are you sure it is an error?
On Thu, 3 Apr 2003, Kevin Angus wrote:
> I just installed yoper and tried to get PHP-4.3.2RC1 to compile but MAKE
> keeps failing with an error on my_tempnam, I hunted around and found some
> bogus bug reports about the error but nothing that would help me. Apache
> 2.045 compiled without any problems.
> The yoper people say "glibc-2.3.2 is hopefully supported soon by your
> version of php" ?
> Is there any workarounds for this?
> Thanks
>
--- End Message ---
--- Begin Message ---
Hello,
I am having problems getting the PDF extension to work with PHP on Windows.
I am running PHP 4.2.3 on Windows NT 4.0 using IIS as my internet server. I
have enabled the PDF extension in the php.ini file, with no apparent
success. When I try to load the page, I get an empty screen (i.e., no error
messages or undefined functions). It was my understanding that the Windows
module version of PHP had PDFLib libraries already built in. What might be
my problem?
Thanks, Bill
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Bill Hudspeth [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 03, 2003 2:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP with PDFlib installation on Windows
>
> I am having problems getting the PDF extension to work with
> PHP on Windows.
> I am running PHP 4.2.3 on Windows NT 4.0 using IIS as my
> internet server. I
> have enabled the PDF extension in the php.ini file, with no apparent
> success. When I try to load the page, I get an empty screen
> (i.e., no error
> messages or undefined functions). It was my understanding
> that the Windows
> module version of PHP had PDFLib libraries already built in.
> What might be
> my problem?
No windows pdflib experience here, but try taking out the
application/pdf header. Then you can see any error message from php.
Those would blow the pdf format, and cause a blank page or a broken
icon. Also I've found that once that happens IE remembers the ppage is
pdf, and you have to close and reopen the browser to switch content
types.
--- End Message ---
--- Begin Message ---
Hi all,
i installed PHP 4.3.1 on a fresh Apache 2.0.44 on Suse Linux 7.3
after configuration of the php.ini:
sendmail_path = /usr/sbin/sendmal -t
sendmail_from = [EMAIL PROTECTED]
i started to write a simple script to test the mail() function, but nothing
happens - no error message
the returncode of the function is FALSE.
what could be the reason for this?
how do i get an error message why its not working?
greetings
Dorian
PS: Apache and PHP is compiled and installed on Suse Linux 7.2
sendmail is working normaly
--- End Message ---
--- Begin Message ---
Dorian, it could be your 'sendmail from' line in there. Sometimes sendmail
will reject sending emails from invalid from addresses. Make it a real
address on your server and make sure apache is allowed to send from that
address (its in the trusted-users) file of your /etc/mail folder. I'm
willing to bet its sendmail rejecting the message to being sent.
-Mike
----- Original Message -----
From: "Dorian Szekely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 2:42 PM
Subject: [PHP-INST] mail function is not working
> Hi all,
>
> i installed PHP 4.3.1 on a fresh Apache 2.0.44 on Suse Linux 7.3
>
> after configuration of the php.ini:
>
> sendmail_path = /usr/sbin/sendmal -t
> sendmail_from = [EMAIL PROTECTED]
>
> i started to write a simple script to test the mail() function, but
nothing
> happens - no error message
> the returncode of the function is FALSE.
>
>
> what could be the reason for this?
>
> how do i get an error message why its not working?
>
> greetings
>
> Dorian
>
> PS: Apache and PHP is compiled and installed on Suse Linux 7.2
> sendmail is working normaly
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
hi,
that's it, sendmail rejects the message with an error:
Apr 3 22:52:25 chicago231 sendmail[17259]: NOQUEUE: SYSERR(wwwrun):
/etc/sendmail.cf: line 71: readcf: DontBlameSendmail option:
GroupReadableSASLFile unrecognized
i will switch to the sendmail newsgroup to get this fixed ;-)
apache runs as user wwwrun and is in the trusted user,
greetings
dorian
"Michael Scappa" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Dorian, it could be your 'sendmail from' line in there. Sometimes sendmail
> will reject sending emails from invalid from addresses. Make it a real
> address on your server and make sure apache is allowed to send from that
> address (its in the trusted-users) file of your /etc/mail folder. I'm
> willing to bet its sendmail rejecting the message to being sent.
>
> -Mike
>
> ----- Original Message -----
> From: "Dorian Szekely" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 03, 2003 2:42 PM
> Subject: [PHP-INST] mail function is not working
>
>
> > Hi all,
> >
> > i installed PHP 4.3.1 on a fresh Apache 2.0.44 on Suse Linux 7.3
> >
> > after configuration of the php.ini:
> >
> > sendmail_path = /usr/sbin/sendmal -t
> > sendmail_from = [EMAIL PROTECTED]
> >
> > i started to write a simple script to test the mail() function, but
> nothing
> > happens - no error message
> > the returncode of the function is FALSE.
> >
> >
> > what could be the reason for this?
> >
> > how do i get an error message why its not working?
> >
> > greetings
> >
> > Dorian
> >
> > PS: Apache and PHP is compiled and installed on Suse Linux 7.2
> > sendmail is working normaly
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Try turning off ZLIB compression or in PHP.INI (zlib.output_compression =
Off)
"Wade" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Okay, I wrote in the other day and so far have not solved my problem, so
> here is some more info.
>
> I installed Apache 1.3 with PHP 4.3 on my Windows XP system. Apache is
> installed in the default C:\Program Files\Apache Group\Apache directory.
> PHP is installed to C:\PHP. My root folder for my web files is C:\HTTP.
>
> I have been using IE6 as my web browser. When I try to access any PHP
files
> on my machine, it attempts to download them instead of interpreting. I
> downloaded Opera to see if it was a IE6 problem. Opera does the same
thing.
>
> php4ts.dll, php4ts.lib, php.exe, php4apache.dll are all in the directory
> C:\php\
>
> Here are the changes I made to various files.
>
> ***c:\program files\apache group\apache\conf\httpd.conf***
>
> # Code added by Wade to add PHP support to apache.
> LoadModule php4_module c:/php/php4apache.dll
> ###AddModule mod_php4.c ### Removed this line because it was saying that
it
> was already added.
> AddType application/x-httpd-php .php .phtml
> # End Code Added by Wade
>
> #
> # DocumentRoot: The directory out of which you will serve your
> # documents. By default, all requests are taken from this directory, but
> # symbolic links and aliases may be used to point to other locations.
> #
> DocumentRoot "C:\HTTP"
>
> #
> # This should be changed to whatever you set DocumentRoot to.
> #
> <Directory "C:\HTTP">
>
> ***c:\windows\php.ini***
>
> ; The root of the PHP pages, used only if nonempty.
> ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
> ; if you are running php as a CGI under any web server (other than IIS)
> ; see documentation for security issues. The alternate is to use the
> ; cgi.force_redirect configuration below
> doc_root = "c:\http"
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = "c:\php\extensions"
>
>
--- End Message ---
--- Begin Message ---
Turn off zlib compression in PHP.INI
"Wade" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Note: I am using Apache 1.3 with PHP 4.3
>
> "Wade" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Bear with me, I am new to this.
> >
> > I am trying to install PHP on an Apache Server running on Windows XP. I
> > have installed the server, and it appears to be working correctly. I
have
> > followed the instructions for installing PHP which I obtained here:
> >
> > http://www.ricocheting.com/server/php.html
> >
> > I also followed the instructions in the install.txt file.
> > I created a sample php file in my localhost directory. The file is
> > attached. When I try to access the file, my browser (IE 6) does not
> > interpret the file, rather it tries to download it. Have I missed
> > configuring something?
> >
> > Wade
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
You must define your variables in the FOO.PHP page. Try this:
<?php
$uname=($_GET['username']);
$mail=($_GET['email]);
print ("hello, username = $uname, $mail");
?>
Also, POST is probably a better choice than GET.
"E.E. Jan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Could anybody give me a pointer for my problem?
> I just installed php 4.3.1 on my w2k platform
> I also installed Apache 2.0.43.
> I can get "hello world" and "phpinfo()" working.
> However, when I try a simple form like this following:
>
>
> <html>
> <title> test </title>
> <body>
> <form action="foo.php" method="get">
> Name: <input type="text" name="username"><br>
> Email: <input type="text" name="email"><br>
> <input type="submit" name="submit" value="Submit me!">
> <input type="reset" name="reset" value="reset!">
> </form>
> </body>
> </html>
>
>
> and my foo.php is
> <?php
> print ("hello, username = $username");
> ?>
> I got : hello, username =
> The $username is alwasy empty.....
> I know my form and GET action is working. I saw the following query string
> in url after I hit submit button:
>
http://localhost/myphp/foo.php?username=qwe&[EMAIL PROTECTED]&submit=Submit+me%21
> However, php is not able to get varialbe $username and $email
>
> Any ideas?
>
> I tried the same script is ipower website, it works...
> Do I miss any thing in php.ini?
> I also switch to apache 1.37, I got the same results. The variable is
still
> empty.
>
> Thanks
> E.E.
>
>
>
--- End Message ---
--- Begin Message ---
Make sure you are saving this as .PHP. (I know it's a dumb thing to check,
but make sure Windows or Homesite or notepad or whatever is not appending
.TXT onto the end of it.)
Make sure you can see the extensions of your files.
"Leigh Hall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So far my installation has been
> 1) Installed Apache1.3.19. Succesful
> 2) Extracted PHP 4.0.4 to c:\php
> 3) Renamed php.ini-dist to php.ini and opened in HomeSite making these
> changes:
> a) doc_root = c:\Apache\htdocs
> b) extension_dir = c:\php\extensions\ [was .\]
> 4) Moved new php.ini to c:\WINDOWS\
> 5) Moved php4ts.dll & php4ts.lib to c:\WINDOWS\SYSTEM32\
> 6)Opened c:\Apache\conf\httpd.conf and added
>
> LoadModule php4-module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php
> 7) Copied php4ts.dll and
> php4ts.lib to SYSTEM32.
>
> when i run the script below:
>
> <?php
> echo "PHP Rules!";
> ?>
>
> when i run the page in the browser i see the script as it is written in
the
> file.
>
> <?php
> echo "PHP Rules!";
> ?>
>
>
> whats happening, its driving me nuts!!!!
>
> cheers
>
>
>
--- End Message ---
--- Begin Message ---
I have upgraded apache to 2.0.44, mysql to 4.0.12 (binary) and php to
4.3.2RC1
I encountered that on one machine it is working without any visible
problems. (SUSE 8.0)
On another SuSE 8.0 it shows the same errors like on a RedHat 7.3 machine.
The problems:
1. text in phpnuke will be truncated, if it is over a cetain length (600
characters or so)
2. the template of text in buttons are not working anymore
I have attached all info that might help to solve the problem. I cant
see it - after a week trying to find the differences of these three
machines.
php: configure
==========
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-zlib-dir=/lib/ \
--enable-versioning \
--enable-track-vars=yes \
--enable-url-includes \
--enable-trans-sid \
--enable-sysvshm=yes \
--enable-sysvsem=yes \
--enable-ftp \
--with-config-file-path=/etc \
--datadir=/usr/share/php \
--bindir=/usr/bin \
--libdir=/usr/share \
--includedir=/usr/include \
--with-exec-dir=/usr/lib/php/bin \
--disable-debug \
--enable-bcmath \
--enable-calendar \
--enable-ctype \
--enable-dbase \
--enable-discard-path \
--enable-exif \
--enable-filepro \
--enable-force-cgi-redirect \
--enable-gd-imstrttf \
--enable-gd-native-ttf \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstr-enc-trans \
--enable-mbstring \
--enable-memory-limit \
--enable-safe-mode \
--enable-shmop \
--enable-sigchild \
--enable-wddx \
--enable-bz2 \
--with-ftp \
--with-gdbm \
--with-gettext \
--with-gmp \
--with-ndbm \
--with-xml \
--with-openssl \
--with-xslt-sablot \
--with-mm \
i386-suse-linux
php.ini:
========
[PHP]
engine = On
short_open_tag = On
asp_tags = Off
precision = 12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = "EGPCS"
register_globals = Off
register_argc_argv = On
post_max_size = 8M
gpc_order = "GPC"
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
extension_dir = ./
enable_dl = On
file_uploads = On
upload_max_filesize = 2M
allow_url_fopen = On
default_socket_timeout = 60
[Syslog]
define_syslog_variables = Off
[mail function]
SMTP = localhost
sendmail_from = [EMAIL PROTECTED]
[Java]
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = -1
mysql.trace_mode = Off
[mSQL]
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase]
sybase.allow_persistent = On
sybase.max_persistent = -1
sybase.max_links = -1
sybase.min_error_severity = 10
sybase.min_message_severity = 10
sybase.compatability_mode = Off
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[dbx]
dbx.colnames_case = "unchanged"
[bcmath]
bcmath.scale = 0
[browscap]
[Informix]
ifx.default_host =
ifx.default_user =
ifx.default_password =
ifx.allow_persistent = On
ifx.max_persistent = -1
ifx.max_links = -1
ifx.textasvarchar = 0
ifx.byteasvarchar = 0
ifx.charasvarchar = 0
ifx.blobinfile = 0
ifx.nullformat = 0
[Session]
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_dividend = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[Ingres II]
ingres.allow_persistent = On
ingres.max_persistent = -1
ingres.max_links = -1
ingres.default_database =
ingres.default_user =
ingres.default_password =
[Verisign Payflow Pro]
pfpro.defaulthost = "test-payflow.verisign.com"
pfpro.defaultport = 443
pfpro.defaulttimeout = 30
[Sockets]
sockets.use_system_read = On
[com]
[Printer]
[mbstring]
[FrontBase]
[Crack]
[exif]
my.cnf
======
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
set-variable = key_buffer=16M
set-variable = max_allowed_packet=1M
set-variable = table_cache=64
set-variable = sort_buffer=512K
set-variable = net_buffer_length=8K
set-variable = myisam_sort_buffer_size=8M
log-bin
server-id = 1
[mysqldump]
quick
set-variable = max_allowed_packet=16M
[mysql]
no-auto-rehash
[isamchk]
set-variable = key_buffer=20M
set-variable = sort_buffer=20M
set-variable = read_buffer=2M
set-variable = write_buffer=2M
[myisamchk]
set-variable = key_buffer=20M
set-variable = sort_buffer=20M
set-variable = read_buffer=2M
set-variable = write_buffer=2M
[mysqlhotcopy]
interactive-timeout
http.conf
=========
ServerRoot "/usr/local/apache2"
<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
</IfModule>
</IfModule>
<IfModule !mpm_netware.c>
<IfModule !perchild.c>
</IfModule>
</IfModule>
<IfModule !mpm_netware.c>
PidFile logs/httpd.pid
</IfModule>
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 50
MinSpareServers 10
MaxSpareServers 20
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule worker.c>
StartServers 20
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
<IfModule beos.c>
StartThreads 10
MaxClients 50
MaxRequestsPerThread 10000
</IfModule>
<IfModule mpm_netware.c>
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
</IfModule>
<IfModule mpmt_os2.c>
StartServers 2
MinSpareThreads 5
MaxSpareThreads 10
MaxRequestsPerChild 0
</IfModule>
Listen 80
LoadModule perl_module modules/mod_perl.so
LoadModule php4_module modules/libphp4.so
<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
User wwwrun
Group wwwrun
</IfModule>
</IfModule>
ServerAdmin [EMAIL PROTECTED]
UseCanonicalName Off
DocumentRoot "/usr/local/apache2/htdocs"
<Directory />
AuthUserFile /etc/httpd/passwd
AuthGroupFile /etc/httpd/group
Options +FollowSymLinks +Includes +Multiviews
AllowOverride None
</Directory>
<Directory "/usr/local/apache2/htdocs">
Options Indexes -FollowSymLinks +Includes +Multiviews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php index.html index.htm index.cgi index.html.var
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
TypesConfig conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined
ServerTokens Full
ServerSignature EMail
Alias /icons/ "/usr/local/apache2/icons/"
<Directory "/usr/local/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /manual "/usr/local/apache2/manual"
<Directory "/usr/local/apache2/manual">
Options Indexes FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
<IfModule mod_cgid.c>
</IfModule>
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage he .he
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw
AddLanguage hr .hr
LanguagePriority en tw da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv
ForceLanguagePriority Prefer Fallback
AddDefaultCharset Big5
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddHandler cgi-script .cgi
AddHandler type-map var
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from .ortv.com
</Location>
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from .ortv.com
</Location>
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
NameVirtualHost *
<VirtualHost *>
UseCanonicalName Off
Options +FollowSymLinks +Includes +Multiviews
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog logs/virtual_access_log vcommon
VirtualDocumentRoot /usr/local/httpd2/virtual/%0/htdocs
VirtualScriptAlias /usr/local/httpd2/virtual/%0/cgi-bin
</VirtualHost>
--
Ronald Wiplinger
Consultant, IT department
http://www.ortv.com
T: +886 (0)2 2533-8082, F: +886 (0)2 2532-6406, M: +886 (0)915 653-452
--- End Message ---