php-install Digest 1 May 2001 16:06:54 -0000 Issue 287 Topics (messages 2957 through 2966): Re: Debian - PHP4 - MYSQL post install 2957 by: Alex Miller Re: PDFlib woes 2958 by: php-install.toolshed51.com 2963 by: Andrew Apold 2965 by: php-install.toolshed51.com Red Hat Linux RPM install 2959 by: Ted Hobson microweb.exe 2960 by: jtjohnston PHP & PWS 2961 by: Shadow Tree does anyone have a debian httpd.conf and srm.conf 2962 by: Alex Miller 2966 by: B. van Ouwerkerk Re: Apache2 install grief 2964 by: Michael P 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] ----------------------------------------------------------------------
Update: I changed the DirectoryIndex in srm.conf to it's default index.html I put DirectoryIndex index.html, index.htm,index.php in httpd.conf because it wasn't working from srm.conf php files are still not being handled. Someone recommended using "AddHandler" on the debin irc channel? What is the correct "AddHandler" command? Alex On Monday 30 April 2001 04:23 pm, Alex Miller wrote: > When I attempt to browse a .php file, the browser > asks if I want to "save" or "open" the file, as if it > were something to download. > > I have a debian potato system, originally derived from > Storm Linux. > > I have installed the php4 package, and the php-mysql > package. > > That placed a commented out load module in my httpd.conf > > Since debian uses both httpd.conf and srm.conf here are > the relevant portions > > httpd.conf > #The debian installation left this commented out > LoadModule php4_module /usr/lib/apache/1.3/libphp4.so > > srm.conf > #The debian installation left this as just index.html, so > #I added to it > DirectoryIndex index.html,index.htm,index.php > > # For example, the PHP3 module (a separate Debian package) > # will typically use: > # Commented out by Alex Miller 4/30/2001 > #AddType application/x-httpd-php3 .phtml > #AddType application/x-httpd-php3-source .phps > #AddType application/x-httpd-php3 .php > #Added by Alex Miller 4/30/2001 > AddType application/x-httpd-php4 .php > > Notice that the AddType directives were for php3, it seems. > I added the AddType application/x-httpd-php4.php > myself. This I got from the FAQ. > > In the FAQ (regarding RPM installations - not Debian) > there are sever AddModule directives. In my debian > installation I have no AddModule directives for any > modules. > > I am using virtual hosts. > > Alex Miller
Hello! I configure, build, install pdflib and then as per the instructions I found I configure php with-pdflib=../pdflib.4.0.0 (the path to the install dir). So it doesn't seem to be finding them, but I was wondering if this is a config problem or if pdflib-3.x support doesn't work with the new pdflib-4.x. Thanks - Russ "Grimes, Dean" <[EMAIL PROTECTED]> said: > Are you sure that the pdflib libraries can be found by PHP during the build? > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 29, 2001 6:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP-INST] PDFlib woes > > > > > > > Hello everyone, > I am installing php 4.0.4pl1 on a freebsd 4.2-release box. I am trying to > add in pdflib-4.0.0. I follow the limited instructions in pdflib- > 4.0.0/bind/php/readme.txt which says to build, install and copy pdflib- > 4.0.0/bind/php/ext/pdf to php-4.0.4pl1/ext/pdf. When I configure php I get > the following message > checking whether to include Pdflib 3.x support... ../pdflib-4.0.0 no > > Obviously there is a 3-4 version difference here but how can I make php use > this pdflib. Thanks for your help - Russ > > > -- > PHP Install 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] > --
At 10:16 PM 4/30/01 -0000, [EMAIL PROTECTED] wrote: > > > > >Hello! >I configure, build, install pdflib and then as per the instructions I found I >configure php with-pdflib=../pdflib.4.0.0 (the path to the install dir). So >it doesn't seem to be finding them, but I was wondering if this is a config >problem or if pdflib-3.x support doesn't work with the new pdflib-4.x. Thanks what is the exact error message it stops on? ont he ./configure, does it go: Checking whether to install PDFlib support... Yes or does it say ...no FWIW, for me, and I only recently got this working (w/ 4.0), I used with-pdflib=/usr/local ie, where the pdflib installed to, not from where it was installed (which for me had the .../pdflib.4.0.0 name on it. also, pdflib should be configured with --enable-shared-pdflib 4.0.0 introduces an --enable-php, but this is turned on by default. Its only main use is so that people who don't use php can omit some stuff they dont' need. ============================= "To dwell within Samsara, however, is to be subject to the works of those mighty among dreamers." - Mahasamatman, in Zelazny's "Lord of Light" Andrew Apold
Yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeessssssssssss! Andrew, you rule. Ok, so I played with it again tonight and heres what I found, an FYI for anybody else looking for pdflib help. I got php-4.0.5 and built pdflib-4.0.0 with './configure' \ '--enable-cxx' \ '--enable-shared' \ '--enable-shared-pdflib' did make, make install and both make and make install complained that there is no makefile in pdflib-4.0.0/bind/php. It works anyway, so dont worry bout it. Then in php I used --with-pdflib=/usr/local and it works. Thanks so much for this groups help! - Russ Andrew Apold <[EMAIL PROTECTED]> said: > At 10:16 PM 4/30/01 -0000, [EMAIL PROTECTED] wrote: > > > > > > > > > >Hello! > >I configure, build, install pdflib and then as per the instructions I > found I > >configure php with-pdflib=../pdflib.4.0.0 (the path to the install dir). So > >it doesn't seem to be finding them, but I was wondering if this is a config > >problem or if pdflib-3.x support doesn't work with the new pdflib-4.x. > Thanks > > what is the exact error message it stops on? > > ont he ./configure, does it go: > > Checking whether to install PDFlib support... Yes > > or does it say ...no > > FWIW, for me, and I only recently got this working (w/ 4.0), I used > > with-pdflib=/usr/local > > ie, where the pdflib installed to, not from where it was installed (which > for me had the .../pdflib.4.0.0 name on it. > > > also, pdflib should be configured with --enable-shared-pdflib > > 4.0.0 introduces an --enable-php, but this is turned on by default. Its only > main use is so that people who don't use php can omit some stuff they dont' > need. > > > > ============================= > "To dwell within Samsara, however, is to > be subject to the works of those mighty > among dreamers." > > - Mahasamatman, in Zelazny's "Lord of Light" > > Andrew Apold > > > -- > PHP Install 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] > > --
Hi There seems to be a whole lot of documentation about installing PHP from the source and using something called "configure" However, this script or whatever it is doesn't seem to exist on my Red Hat Linux box. Is there any documentation out there on installing PHP on a Red Hat machine? I got my RHL install to add the rpm packages "mod-php4, php, mysql-php" All these rpms are installed. the httpd.conf file makes references to php but they is all this weirdness <IfDefine HAVE_PERL> LoadModule perl_module modules/libperl.so </IfDefine> <IfDefine HAVE_PHP> LoadModule php_module modules/mod_php.so </IfDefine> <IfDefine HAVE_PHP3> LoadModule php3_module modules/libphp3.so </IfDefine> <IfDefine HAVE_PHP4> LoadModule php4_module modules/libphp4.so </IfDefine> <IfDefine HAVE_DAV> LoadModule dav_module modules/libdav.so </IfDefine> <IfDefine HAVE_ROAMING> LoadModule roaming_module modules/mod_roaming.so </IfDefine> <IfDefine HAVE_SSL> LoadModule ssl_module modules/libssl.so </IfDefine> then <IfDefine HAVE_PERL> AddModule mod_perl.c </IfDefine> <IfDefine HAVE_PHP> AddModule mod_php.c </IfDefine> <IfDefine HAVE_PHP3> AddModule mod_php3.c </IfDefine> <IfDefine HAVE_PHP4> AddModule mod_php4.c </IfDefine> <IfDefine HAVE_DAV> AddModule mod_dav.c </IfDefine> <IfDefine HAVE_ROAMING> AddModule mod_roaming.c </IfDefine> <IfDefine HAVE_SSL> AddModule mod_ssl.c </IfDefine> what does all that mean? However, I can't find an mod-php.so file. I guess my problem is that I haven't built the module into apache yet (its not showing up when I do httpd -l, however, mod_so.c is) so my problem is where is this "./configure" program!?!?! It just says no file or directory. or better yet, how do I do this with Red Hat Linux and RPM? Anyway, please help Thanks Ted. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Is anyone using microweb.exe from http://www.indigostar.com? (It's a server run on a CD-ROM :o) Providing I have the right forum ... ?? :o) I'm using these builds: http://www.php.net/do_download.php?download_file=php404pl1-installer.exe&source_site=www.php.net http://www.php.net/do_download.php?download_file=php405-installer.exe&source_site=www.php.net I tried this: mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3"); and got this: Warning: Unknown error in E:\cd\test.php on line 14 I would appreciate someone with a bit of php experience to help out. I can get perl to work with microweb.exe but not php. No flaming please :) With perl, I install a module and the smtp works. What does this build not have that I need, and how do I get it to work under windows? Many thanks, John (P.S., an email post and reply would make life much easier :o) ____________________________________________________ John Taylor-Johnston Programming Analyst, http://www.usherb.ca/flsh/
I've installed that I've downloaded fro php.net on my PWS and I always r= ecive the error from server. HTTP 500 error. Somebody knows what wrong did I've done at instalation? Obrigado. R3. Rodrigo Rois da Rocha. Acesse agora! www.circulonegro.com _______________________________________________________________________________________ Obtenha seu Serviço de Correio eletrônico Baseado na Web Service em http://www.zzn.com
I would like to look at it. My package installation did not leave any AddType or AddHandler Directives. Alex Miller
At 00:51 1-5-01 -0400, Alex Miller wrote: >I would like to look at it. > >My package installation did not leave any >AddType or AddHandler Directives. No. I'm running Slackware. I doubt the difference is big when it comes to Apache. AddType application/x-httpd-php .php NOT AddType application/x-httpd-php4 .php Cause it's not working. At least, not with Apache 1.3.19 and php404pl1 I've got it in httpd.conf.... Bye, B.
Hi Tim, Well, I have php loading as a module in Apache 2.0.16beta now (I think)... what I did was follow the information on: http://www.php.net/anoncvs.php for doing a checkout of the latest code. I then had to modify the sapi_apache.c file and make if ((rv = ap_get_brigade(f->next, bb, mode, readbytes)) != APR_SUCCESS) { look like: if ((rv = ap_get_brigade(f->next, bb, mode)) != APR_SUCCESS) { after which I got a clean compile. Apache now loads with the following logged: [Tue May 01 01:33:54 2001] [notice] Apache/2.0.16 (Unix) configured -- resuming normal operations The Server header is: Server: Apache/2.0.16 (Unix) (ServerTokens Full is set.. don't know if php it would show here when done as a module) I know php is getting consulted during the server start because if I remove the path to the mysql libs from ld.so.conf, the php module screams because it cannot find them. Two things to note: 1) As yet, Apache isn't behaving like it truly knows what PHP is (it keeps trying to download the .php files to me, although I have done the AddType), so all of this may have been for nothing. 2) I am not a programmer.... one of the C people here may smack me down for that bit of deletion a couple of lines up.... Hope it gives you an idea or two. I'll try fooling with it some more tomorrow... its 2am.. time for bed. Michael ""Tim Kay"" <[EMAIL PROTECTED]> wrote in message 9cbokh$th$[EMAIL PROTECTED]">news:9cbokh$th$[EMAIL PROTECTED]... > Hello, > I'm trying to install 4.0.4pl1 as a module to apache 2.0.16beta and > failing miserably. Apache is built and running happily with DSO support > but PHP fails to compile using apxs2. Error messages relate to > php_apache.h and sapi_apache2.c (below) is this 'cause Apache2 has > changed so much since the alpha when php 2.0.4pl1 was released or am I > doing something wrong - there's nothing before line 24 in php_apache.h > aside from a declaration. > > Thanks in adv > > Tim > > > In file included from sapi_apache2.c:45: > php_apache.h:24: parse error before `ap_bucket_brigade' > php_apache.h:24: warning: no semicolon at end of struct or union > php_apache.h:32: parse error before `}' > php_apache.h:32: warning: type defaults to `int' in declaration of `php_struct' > php_apache.h:32: warning: data definition has no type or storage class > sapi_apache2.c: In function `php_apache_sapi_ub_write': > sapi_apache2.c:49: `ap_bucket' undeclared (first use in this function) > sapi_apache2.c:49: (Each undeclared identifier is reported only once > sapi_apache2.c:49: for each function it appears in.) > sapi_apache2.c:49: `b' undeclared (first use in this function) > > -- > PHP Install 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] >