php-install Digest 1 Jun 2002 05:50:22 -0000 Issue 863
Topics (messages 7183 through 7201):
where is my php binary?
7183 by: chad kellerman
7184 by: Jim Thome
Re: Apache not processing php under Red Hat Linux x86
7185 by: Erik
Unix.h compile error?
7186 by: Jeremy Coates
debugging
7187 by: P. Jourdan
7188 by: PJourdan
7189 by: Rasmus Lerdorf
7191 by: P. Jourdan
7192 by: Rasmus Lerdorf
7193 by: P. Jourdan
7195 by: PJourdan
7197 by: Rasmus Lerdorf
7199 by: P. Jourdan
problem when changing from CGI to Server Module in Apache
7190 by: Subzero
Install PHP on PWS (or else)
7194 by: Velling
7196 by: P. Jourdan
PHP and pdflib
7198 by: Brian Vogt
Installing PHP 4.2.1 ISAPI on Windows 2000 Advanced Server - No Extensions
7200 by: Michael Haggerty
gd doesn' work anymore
7201 by: Erik
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 ---
Good afternoon,
Hello, I have compiled php 4.2.1 a few ways. I have noticed that the way I
am building it the php binary is not created.. I would ex[ect to be in
usr/local/bin with the other binaries that were created, pear, php-config,
phptar etc.
Is there something i am missing?
Here is my configure line.
./configure --enable-force-cgi-redirect --disable-debug \
--enable-pic --disable-rpath --enable-inline-optimization \
--with-gd=/usr/local --enable-dbase --enable-gd-native-ttf \
--with-gdbm=/usr/local --with-gettext --with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local --with-regex=system --with-ttf \
--with-xml --with-zlib --enable-bcmath --enable-debugger \
--enable-ftp --enable-magic-quotes --enable-sockets \
--enable-track-vars --enable-trans-sid \
--with-mysql=/usr/local/mysql-3.23.49 \
--with-cybercash=/usr/local/cybercash/mck-3.2.0.6-i586-pc-linux-gnulibc2.1 \
--disable-posix-threads --with-mcrypt=/usr/local \
--with-apxs=/etc/httpd/bin/apxs --with-curl=/usr/local
Oh, one other thing I did a find in the php src directory and did not find
one. And it did not install it in another bin directory. I checked.. ;^)
thanks for the help...
Chad Kellerman
--- End Message ---
--- Begin Message ---
You built a DSO. It should be located in /path/to/apache/libexec/libphp4.so. You
must now modify your httpd.conf file to have Apache load it.
Read this: http://www.php.net/manual/en/install.apache.php for more info on
configuring Apache to load the DSO.
--Jim
>>> chad kellerman <[EMAIL PROTECTED]> 05/31/02 09:45AM >>>
Good afternoon,
Hello, I have compiled php 4.2.1 a few ways. I have noticed that the way I
am building it the php binary is not created.. I would ex[ect to be in
usr/local/bin with the other binaries that were created, pear, php-config,
phptar etc.
Is there something i am missing?
Here is my configure line.
./configure --enable-force-cgi-redirect --disable-debug \
--enable-pic --disable-rpath --enable-inline-optimization \
--with-gd=/usr/local --enable-dbase --enable-gd-native-ttf \
--with-gdbm=/usr/local --with-gettext --with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local --with-regex=system --with-ttf \
--with-xml --with-zlib --enable-bcmath --enable-debugger \
--enable-ftp --enable-magic-quotes --enable-sockets \
--enable-track-vars --enable-trans-sid \
--with-mysql=/usr/local/mysql-3.23.49 \
--with-cybercash=/usr/local/cybercash/mck-3.2.0.6-i586-pc-linux-gnulibc2.1 \
--disable-posix-threads --with-mcrypt=/usr/local \
--with-apxs=/etc/httpd/bin/apxs --with-curl=/usr/local
Oh, one other thing I did a find in the php src directory and did not find
one. And it did not install it in another bin directory. I checked.. ;^)
thanks for the help...
Chad Kellerman
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
hi,
1) typing error it is
<?phpinfo();?>
and not <?php info(); ?>
not spaces allowed in the function name also php files must have a extension
that you associated with php
.php .php3 .php4 .phtml or whatever but it must be there in httpd.conf also
the mime type must be there
AddType application/x-httpd-php .php .php3 .php4 .phtml
if this line is missing add it and try again
did you installed from rpm's ?
regards Erik
"Michael Knauf/Niles" <[EMAIL PROTECTED]> schreef in bericht
OF05B7C443.31AC6C1C-ON85256BC9.00685A85@LocalDomain">news:OF05B7C443.31AC6C1C-ON85256BC9.00685A85@LocalDomain...
> It looked like I could select the php4 and apache packages when I
installed
> Red Hat Linux 7, and sure enough apache is up and working, and php4 seems
> to be there also, but the php info function
>
> <? php info(); ?>
>
> inside an html file is rendered exactly like that by the browser... the
> httpd.conf file looks like it's got the correct add module etc lines as
> well, what should I look for?
>
> Michael
>
--- End Message ---
--- Begin Message ---
Hi All,
I've got a problem with installing PHP 4.2.1 (or 4.1.2, 4.2.0 etc):
The system is RedHat 7.2.
The configure works fine, but when I come to compile there's an error. The
file in question is unix.h (from the IMAP stuff) is exactly the same as
another RH7.2 system (done a diff!) so I'm sure it relates to something else
that's not setup properly.
Any ideas?
Regards,
Jeremy
./configure --prefix=/usr/local --with-mysql=/usr/local/mysql
--enable-track-vars --enable-safe-mode --with-apxs=/usr/local/apache/bin/apxs
--with-zlib --with-gd --with-gd-dir=/usr --with-jpeg-dir=/usr
--with-png-dir=/usr --enable-shared --enable-xslt --with-xslt-sablot
--with-xml --with-imap=/usr/local --with-openssl --with-kerberos
--with-iconv=/usr/local --with-expat=/usr/lib
make
Making all in Zend
make[1]: Entering directory `/home/jeremy/web_server/php-4.2.1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main -DLINUX=22 -DMOD_SSL=208108 -DUSE_HSREGEX -DEAPI -I../TSRM -g
-O2 -prefer-pic -c -o zend_language_parser.lo `test -f zend_language_parser.c
|| echo './'`zend_language_parser.c
In file included from zend.h:55,
from zend_compile.h:24,
from zend_language_parser.c:147:
/usr/local/include/unix.h:182: parse error before `MAILSTREAM'
/usr/local/include/unix.h:182: warning: no semicolon at end of struct or
union
/usr/local/include/unix.h:189: parse error before `}'
/usr/local/include/unix.h:189: warning: data definition has no type or
storage class /usr/local/include/unix.h:193: parse error before `*'
/usr/local/include/unix.h:193: warning: data definition has no type or
storage class
/usr/local/include/unix.h:196: parse error before `*'
/usr/local/include/unix.h:197: parse error before `*'
/usr/local/include/unix.h:198: parse error before `*'
/usr/local/include/unix.h:199: parse error before `*'
/usr/local/include/unix.h:200: parse error before `*'
/usr/local/include/unix.h:201: parse error before `*'
/usr/local/include/unix.h:202: parse error before `*'
/usr/local/include/unix.h:202: parse error before `*'
/usr/local/include/unix.h:202: warning: data definition has no type or
storage class
/usr/local/include/unix.h:203: parse error before `*'
/usr/local/include/unix.h:204: parse error before `*'
/usr/local/include/unix.h:206: parse error before `*'
/usr/local/include/unix.h:207: parse error before `*'
/usr/local/include/unix.h:209: parse error before `*'
/usr/local/include/unix.h:210: parse error before `*'
/usr/local/include/unix.h:211: parse error before `*'
/usr/local/include/unix.h:212: parse error before `*'
/usr/local/include/unix.h:213: parse error before `*'
/usr/local/include/unix.h:214: parse error before `*'
/usr/local/include/unix.h:215: parse error before `*'
/usr/local/include/unix.h:216: parse error before `*'
/usr/local/include/unix.h:219: parse error before `*'
/usr/local/include/unix.h:221: parse error before `DOTLOCK'
/usr/local/include/unix.h:222: parse error before `MAILSTREAM'
/usr/local/include/unix.h:223: parse error before `*'
/usr/local/include/unix.h:224: parse error before `*'
/usr/local/include/unix.h:225: parse error before `*'
/usr/local/include/unix.h:226: parse error before `*'
/usr/local/include/unix.h:228: parse error before `*'
/usr/local/include/unix.h:229: parse error before `*'
/usr/local/include/unix.h:230: parse error before `*'
/usr/local/include/unix.h:231: parse error before `*'
make[1]: *** [zend_language_parser.lo] Error 1
make[1]: Leaving directory `/home/jeremy/web_server/php-4.2.1/Zend'
make: *** [all-recursive] Error 1
--
--- End Message ---
--- Begin Message ---
I am afraid I have to debug my whole site since updating the global
variables or turning on the ""register_globals"in php.ini does not work.
Problem is I am running apache1.13.24 on FreeBSD with php as a module. It
looks to me that installing dbg & phped is going to be a houmungus
undertaking as it seems to be aimed more for Linux :(( .
Since I use the FreeBSD machine as a delvelopmental server and access the
site from a Windows2kpro machine, is there not a simmpler way to debug than
reinstall php4 + dbg etc., etc.
Please help... :))
Thanks,
Philip
--- End Message ---
--- Begin Message ---
I am afraid I have to debug my whole site since updating the global
variables or turning on the ""register_globals"in php.ini does not work.
Problem is I am running apache1.13.24 on FreeBSD with php as a module. It
looks to me that installing dbg & phped is going to be a houmungus
undertaking as it seems to be aimed more for Linux :(( .
Since I use the FreeBSD machine as a delvelopmental server and access the
site from a Windows2kpro machine, is there not a simmpler way to debug than
reinstall php4 + dbg etc., etc.
Please help... :))
Thanks,
Philip
--- End Message ---
--- Begin Message ---
First, did you edit the right php.ini file? Check phpinfo() to see if
register_globals is actually on and also check the location of the php.ini
file.
-Rasmus
On Fri, 31 May 2002, PJourdan wrote:
> I am afraid I have to debug my whole site since updating the global
> variables or turning on the ""register_globals"in php.ini does not work.
> Problem is I am running apache1.13.24 on FreeBSD with php as a module. It
> looks to me that installing dbg & phped is going to be a houmungus
> undertaking as it seems to be aimed more for Linux :(( .
> Since I use the FreeBSD machine as a delvelopmental server and access the
> site from a Windows2kpro machine, is there not a simmpler way to debug than
> reinstall php4 + dbg etc., etc.
> Please help... :))
> Thanks,
> Philip
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi Rasmus,
Thanks. For some reason the php.ini file was not where it should have been.
But that still does not solve my problem.
I have now updated the globals (I can restore the old ones), but it still
does not work. I don't understand if the globals should be on or off for
the newer variables. By default, they're off.
Maybe I can just insert breaks in the files and trace that way. The server
is completely independent and under my control.
Any suggestions?
thanks, Phil
At 12:23 PM 5/31/2002 -0700, Rasmus wrote:
>First, did you edit the right php.ini file? Check phpinfo() to see if
>register_globals is actually on and also check the location of the php.ini
>file.
>
>-Rasmus
>
>On Fri, 31 May 2002, PJourdan wrote:
>
> > I am afraid I have to debug my whole site since updating the global
> > variables or turning on the ""register_globals"in php.ini does not work.
> > Problem is I am running apache1.13.24 on FreeBSD with php as a module. It
> > looks to me that installing dbg & phped is going to be a houmungus
> > undertaking as it seems to be aimed more for Linux :(( .
> > Since I use the FreeBSD machine as a delvelopmental server and access the
> > site from a Windows2kpro machine, is there not a simmpler way to debug than
> > reinstall php4 + dbg etc., etc.
> > Please help... :))
> > Thanks,
> > Philip
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
--- End Message ---
--- Begin Message ---
What is the actual code that isn't working?
On Fri, 31 May 2002, P. Jourdan wrote:
> Hi Rasmus,
> Thanks. For some reason the php.ini file was not where it should have been.
> But that still does not solve my problem.
> I have now updated the globals (I can restore the old ones), but it still
> does not work. I don't understand if the globals should be on or off for
> the newer variables. By default, they're off.
> Maybe I can just insert breaks in the files and trace that way. The server
> is completely independent and under my control.
> Any suggestions?
> thanks, Phil
>
> At 12:23 PM 5/31/2002 -0700, Rasmus wrote:
> >First, did you edit the right php.ini file? Check phpinfo() to see if
> >register_globals is actually on and also check the location of the php.ini
> >file.
> >
> >-Rasmus
> >
> >On Fri, 31 May 2002, PJourdan wrote:
> >
> > > I am afraid I have to debug my whole site since updating the global
> > > variables or turning on the ""register_globals"in php.ini does not work.
> > > Problem is I am running apache1.13.24 on FreeBSD with php as a module. It
> > > looks to me that installing dbg & phped is going to be a houmungus
> > > undertaking as it seems to be aimed more for Linux :(( .
> > > Since I use the FreeBSD machine as a delvelopmental server and access the
> > > site from a Windows2kpro machine, is there not a simmpler way to debug than
> > > reinstall php4 + dbg etc., etc.
> > > Please help... :))
> > > Thanks,
> > > Philip
> > >
> > >
> > >
> > > --
> > > PHP Install Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
>
>
--- End Message ---
--- Begin Message ---
At 12:54 PM 5/31/2002 -0700, Rasmus wrote:
>What is the actual code that isn't working?
Basically, it is the configuration stuff included from the main.conf
files with a log of global variables and the php files that are included
from the main.conf file.
Fist action is the verification of the user (accessing the site) with
checks to the database, and then the setup of the first page of the site.
With the current php4 module everything sort-of went topsy-turvy and I
started to get these errors. It worked fine until the update of php. The
code was written by someone else, so I now have to redo the whole thing, I
suppose. I have to modify it anyway, now it just gets more complicated. :((
How can I insert breaks to step through the processing of the files?
Phil
On Fri, 31 May 2002, P. Jourdan wrote:
> > Hi Rasmus,
> > Thanks. For some reason the php.ini file was not where it should have been.
> > But that still does not solve my problem.
> > I have now updated the globals (I can restore the old ones), but it still
> > does not work. I don't understand if the globals should be on or off for
> > the newer variables. By default, they're off.
> > Maybe I can just insert breaks in the files and trace that way. The server
> > is completely independent and under my control.
> > Any suggestions?
> > thanks, Phil
> >
--- End Message ---
--- Begin Message ---
In order to set up DBG, the php debugger, the instructgion call for
installing the phpsource code. Does that mean that I should unistall the
php4 module and install from the source code with all the required
configurations?
I presume it would be stupid to install without unistalling the module.
It seems rather tortured to have to undo a functioning setup to incorporate
debugging... :((
Phil
--- End Message ---
--- Begin Message ---
Nothing has changed with respect to normal global variables. The only
thing that changed was the register_globals default setting, but if you
have turned that back on in your php.ini and a phpinfo() page shows you
did that right, then nothing should have changed that broke your script.
To insert debug code, well just insert it. PHP is an interpreted
language, so the concept of inserting breaks makes no sense.
-Rasmus
On Fri, 31 May 2002, P. Jourdan wrote:
> At 12:54 PM 5/31/2002 -0700, Rasmus wrote:
> >What is the actual code that isn't working?
>
>
>
> Basically, it is the configuration stuff included from the main.conf
> files with a log of global variables and the php files that are included
> from the main.conf file.
> Fist action is the verification of the user (accessing the site) with
> checks to the database, and then the setup of the first page of the site.
> With the current php4 module everything sort-of went topsy-turvy and I
> started to get these errors. It worked fine until the update of php. The
> code was written by someone else, so I now have to redo the whole thing, I
> suppose. I have to modify it anyway, now it just gets more complicated. :((
> How can I insert breaks to step through the processing of the files?
> Phil
> On Fri, 31 May 2002, P. Jourdan wrote:
>
>
>
> > > Hi Rasmus,
> > > Thanks. For some reason the php.ini file was not where it should have been.
> > > But that still does not solve my problem.
> > > I have now updated the globals (I can restore the old ones), but it still
> > > does not work. I don't understand if the globals should be on or off for
> > > the newer variables. By default, they're off.
> > > Maybe I can just insert breaks in the files and trace that way. The server
> > > is completely independent and under my control.
> > > Any suggestions?
> > > thanks, Phil
> > >
>
>
--- End Message ---
--- Begin Message ---
At 02:30 PM 5/31/2002 -0700, Rasmus wrote:
>Nothing has changed with respect to normal global variables. The only
>thing that changed was the register_globals default setting, but if you
>have turned that back on in your php.ini and a phpinfo() page shows you
>did that right, then nothing should have changed that broke your script.
>
>To insert debug code, well just insert it. PHP is an interpreted
>language, so the concept of inserting breaks makes no sense.
Well, I feel a little dumb. I reinstalled the original files I had changed
and now it works.
Thanks. Strightened me out juist fine.
Phil
--- End Message ---
--- Begin Message ---
i'm running PHP (newest version) on Win2k adv server with Apache (newest version)
I changed from the CGI Binary because verytime someone went to a page on my site with
a php script on it, then it left php.exe running, and the next time a php script was
accesed, it started up another php.exe.. so at the time i noticed it, i had 60
instances of php.exe runnign and my server was a bit throttled to say the least..
I changed to the server module and i did what it says in the install.txt and i have
double.checked it just now..
the problem i have, is with two php scripts, a statistics script for my counter-strike
server (psychostats) and the other one is a list of cheaters caught on the server..
in the player stats section of the server stats, i can click the links for page one,
two and 'next' to see more players.. those doesn't work..
also, there are a search function to search for players, and it doesn't work either.
in the second script, the cheaterlist, there are 50 cheaters / page, so there are
links to see cheater 50-100, 100-50 and so on. Those links doesn't work either..
What could be the problem???
the stats is at:
http://www.spiderweb.tk/cs/
the cheaterlist is at:
http://www.spiderweb.tk/servers/main/main_cheaters.php (the background is wierd
because it's not made to be in a separate window)
Some help on this matter would be very appreciated..
/Subzero
--- End Message ---
--- Begin Message ---
Hi,
I have just started learning PHP within the last 48 hours.
I didn't know what was required to run and write PHP, so I downloaded the
PHP installer (I already have PWS).
I installed PHP, and set it up as they said in the install.txt, but when i
try to run a PHP file, it gives me "Error 403.1" 'No access to executable
programs' or something like that. (I know it's error 403.1, but I have a
danish version of PWS, so the error was on Danish, therefore i do not know
if the translation is correct).
Can anyone help me?
It doesn't necesarely have to be a suggestion on how to solve this problem,
but can also be instructions on how to install PHP (from the beginning. I do
not care if that means that i have to uninstall something). I use windows
98, so if anyone who got a perfectly installed and running version PHP on
Win 98, please tell me how you installed!
I'd be very happy!!!
Regards
Mathias
PS: I use Windows 98, PHP 4.2.1 and PWS
--- End Message ---
--- Begin Message ---
At 11:14 PM 5/31/2002 +0200, Mathias wrote:
>Hi,
>
>I have just started learning PHP within the last 48 hours.
>I didn't know what was required to run and write PHP, so I downloaded the
>PHP installer (I already have PWS).
>I installed PHP, and set it up as they said in the install.txt, but when i
>try to run a PHP file, it gives me "Error 403.1" 'No access to executable
>programs' or something like that. (I know it's error 403.1, but I have a
>danish version of PWS, so the error was on Danish, therefore i do not know
>if the translation is correct).
>
>Can anyone help me?
>
>It doesn't necesarely have to be a suggestion on how to solve this problem,
>but can also be instructions on how to install PHP (from the beginning. I do
>not care if that means that i have to uninstall something). I use windows
>98, so if anyone who got a perfectly installed and running version PHP on
>Win 98, please tell me how you installed!
>
>I'd be very happy!!!
>
>Regards
>Mathias
>
>PS: I use Windows 98, PHP 4.2.1 and PWS
I'm a bit new to this too, but to use php you have to be running apache.
There is a windows version, but I don't knowif it works on 98.
Hope this helps a little. Check out the apache website www.apache.org
Phil
--- End Message ---
--- Begin Message ---
I'm trying to get odflib and php speaking to each other happily. I've run configure
with these options:
./configure
--prefix=/rc48/d38/pubsdev
--enable-force-cgi-redirect
--without-gd
--without-pear
--with-mysql=/rc48/d38/pubsdev/mysql
--with-pdflib=/rc48/d38/pubsdev/pdflib-4.0.2-AIX/bind/c
--with-zlib-dir=/rc48/d38/pubsdev
configure executes without errors, but make dies:
Making all in .
/bin/sh /rc48/d38/pubsdev/php-4.1.1/libtool --silent --mode=link gcc -I.
-I/rc48/d38/pubsdev/php-4.1.1/ -I/rc48/d38/pubsdev/php-4.1.1/main -I/rc48/d38/p
ubsdev/php-4.1.1 -I/rc48/d38/pubsdev/php-4.1.1/Zend -I/rc48/d38/pubsdev/include
-I/rc48/d38/pubsdev/mysql/include -I/rc48/d38/pubsdev/pdflib-4.0.2-AIX/bind/c/in
clude -I/rc48/d38/pubsdev/php-4.1.1/ext/xml/expat -I/rc48/d38/pubsdev/php-4.1.1
/TSRM -O2 -o php -export-dynamic stub.lo libphp4.la
ld: 0711-317 ERROR: Undefined symbol: pdf_module_entry
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Any ideas why?
Thanks!
--Brian
--- End Message ---
--- Begin Message ---
I am running into some problems trying to install PHP 4.2.1 ISAPI version on
Windows 2000 Advanced Server w/ SP2. I can get the base install working just
fine, but when I try to load an extension (any externsion), I start getting
500 errors and the occasionally the following:
"Invalid access to memory location. "
If I reset IIS, the problem is still there. Every time this happens I have
to restart the computer.
I went through the bug lists on php.net and found a couple of similar
sounding problems but not an identical one.
I am now working on about my tenth hour with this problem. Anyone have any
thoughts?
Michael Haggerty
--- End Message ---
--- Begin Message ---
hi,
gd librarly refuses to work it worked before phpinfo(); says enabled
(everything) at the gd section and still it doesn't work <hen i try to call
a php script that uses gd i get an error message "connection to host is
broken" also my counter refuses to work it is a counter wich uses a set op
png images i call it like this
<img src="/counter/counter.php?page=pagename.php&digit=a">
it shows a "dead image"
how do i get it back to "work" ??
help please .............
--- End Message ---