[PHP-INST] Re: Apache Installation problems
Hi, did someone solve your problem ? i have php 4.2.3 and apache 2.0.43 on W2K toot it doesn't work with modules (it your point), so i tryed with ScriptAlias and in this case installation is fine : i comment (#) Loadmodule and add the following lines in httpd.conf : ScriptAlias /php/ "c:/php/" AddType application-x-httpd-php .php Action application-x-httpd-php "php/php.exe" yes ! apache is running fine :) but a simple php page generate a "bad request" answer :( under command line : php.exe -i works fine -> it seems to be a server side config problem ! i tried to find help on irc -> nothing right now ... so i have a look to this discussion mail-list ... keep hanging on ... thank you for your help "Bill Hudspeth" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Help! > > I have installed PHP 4.2.1 and Apache 2.0.43 on my Win2000 machine. The > Apache server is up and running, but when I add the following line to my > httpd.conf, the Apache service cannot be run. The referenced directory > location is where I have installed my PHP dlls. When I comment out the line, > I can start the service again. Any help would be appreciated. > > LoadModule php4_module c:/winnt/system32/php4apache2.dll > > Bill > > > > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Re: Apache Installation problems
i've installed a free bundle from nusphere.com (download here : http://www.nusphere.com/cgi-bin/nsp.cgi/custsrvc/utils/free_download.htm) - ooops 69MB ;) very big but it works fine with PHP 4.0.6, Apache 1.3.23 with mod_perl and mod_ssl, MySQL 3.23.49 and much more ... know what, i'm happy :) Thank U Nupshere.com "Bill Hudspeth" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Help! > > I have installed PHP 4.2.1 and Apache 2.0.43 on my Win2000 machine. The > Apache server is up and running, but when I add the following line to my > httpd.conf, the Apache service cannot be run. The referenced directory > location is where I have installed my PHP dlls. When I comment out the line, > I can start the service again. Any help would be appreciated. > > LoadModule php4_module c:/winnt/system32/php4apache2.dll > > Bill > > > > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INSTALL] "File not found" error under Apache 2.2 when it try to loadmodule php5apache2.dll
Hello, I'm under WinXP SP2, with server Apache 2.2 installed and working. I've installed the latest version of PHP and I've modified my httpd.conf file to add these lines : LoadModule php5_module php/php5apache2.dll AddType application/x-httpd-php .php My Php install folder is behind my main apache folder. When I restart Apache server, I obtain this error Cannot load the E:/Web/Apache22/PHP/php5apache2.dll into server. Specified module could not be found. Of course, this path exists and file too. I can see it. I've tried with all lower case. I've quoted path too... It's completly crazy, but I cannot understand what kind of subtility there is. Maybe, someone could be help me. I'll appreciate infinitly. Thank you for your help. Laurent
[PHP-INSTALL] PHP 5.0.2 and mysqli extension: error on 'make'
Hi, I am compiling PHP 5.0.2 myself with MySQL support. I did a ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config (see end of post for complete configure) Note: I also have --with-mysql=/usr/local/mysql/. However, I get the same errors when I configure without the mysql extension, just mysqli. And as the documentation says, I use the same version of MySQL for both extensions to avoid conflicts. The configure script works fine, no errors. However when I do 'make', I get errors. I first get a series of ext/mysqli/mysqli_prop.lo(.text+0x1041): In function `stmt_num_rows_read': /home/laug/php-5.0.2/ext/mysqli/mysqli_prop.c:194: undefined reference to `mysql_stmt_num_rows' (I get about 20 different ones.) At the end of make, I get collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 I am using GNU/Linux Debian Sarge. I have uninstalled the mysql-client and mysql-server packages (4.0.x) and installed the mysql binaries (found on mysql.com) into /usr/local/mysql myself (as I absolutely need Unicode support in my databases, which requires version 4.1+). The version of MySQL is mysql-standard-4.1.7-pc-linux-i686. It works fine. The /usr/local/mysql/bin/mysql_config file exists. I don't know where this could be coming from. Especially as the configure script checks to see if everything is there and returns no errors. (Here is my complete configure line: ./configure --with-apxs2=/usr/bin/apxs2 --with-mysql=/usr/local/mysql/ --disable-short-tags --enable-magic-quotes --with-snmp --with-pgsql --with-ldap --enable-sqlite-utf8 --with-gettext --with-mysqli=/usr/local/mysql/bin/mysql_config ) I would really appreciate some help. Thank you. Laurent Granger
[PHP-INSTALL] Re: php-5.0.2 --with-tidy
Bill McCuistion wrote: Bill McCuistion wrote: Hi guys. I seem to be stuck trying to get php-5.0.2 config'd with tidy. Config says it needs libtidy. I've tried various approaches to turn the tidy sources into libtidy, but seem to have reached my limits. Does anyone know exactly how this sequence of events is performed? Forgot to mention, I'm running Linux Fedora Core 2 (up-to-date). I believe tidy and libtidy are 2 different packages. (This is the cas on Linux Debian). Try installing both side by side. (2 different RPMs I suppose). Hope this helps.
Re: [PHP-INST] Apache2 broke PHP
Hi on Solaris 8 Sparc apache 2.0.36 php 4.2.1 : configure ok, make ok, make install ko php 4.3-dev (cvs) is all functionnal for my needs (pgsql, ldap, imap ...) i just need to copy libbz2* to [apache-rootdir]/lib Bill Angus wrote: >I had a perfectly functioning PHP installation, but then installed apache2 and can't >get apache to recognize PHP. The Apache manual gives installation instructions to >setup PHP to work with apache -- but they are old and apply only to apache 1 and not >apache2. Has anyone got php working with apache2? > >The behavior I get is that instead of running the .php script, apache2 serves it to >the remote guy like a file download. > >Thanks and have a great day! > >Bill Angus >http://www.psychtest.com > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] Re: php 4.2.2, apache 2.0.40 make problem from source
i have inserted a simple NULL as third argument and all goes well (Sol8/Sparc) alex stinson wrote: > i think i might have found why it might not be working (im not really > a good coder yet, so this was more of a look around for things that > could cause it, and browsed the apache code)...it seems that > ap_register_input_filter, and ap_register_output_filter are missing > arguments... > in the apache source, under include/util_filter.h > is: > AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char > *name, ap_in_filter_func filter_func, ap_init_filter_func filter_init, > ap_filter_type ftype); > so its declared with 4 arguments, but in sapi_apache2.c > (php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is: > ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE); > > so, to anyone who actually knows what they are doing, what exactly is > supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'? above > says 'ap_init_filter_func', but i have no idea what that is > > --Pete Rippe > > > From: "Daniel Eckstein" <[EMAIL PROTECTED]> > To: "Alex Stinson" <[EMAIL PROTECTED]> > Subject: Re: php 4.2.2, apache 2.0.40 make problem from source > Date: Thu, 15 Aug 2002 22:46:55 +0200 > > Hi, > > this is correctly the same, what is happening to me > on a solaris 8 box. > > Regards, > Tweeg > > - Original Message - > From: "Alex Stinson" <[EMAIL PROTECTED]> > Newsgroups: php.install > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 13, 2002 7:11 AM > Subject: php 4.2.2, apache 2.0.40 make problem from source > > > > hey, i have a small problem, and i'm not exactly sure how to work > around > it > > involving php4.2.2, and apache 2.0.40 > > > > uname -a: > > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD > 4.6-RELEASE #0: > > Tue Jun 11 06:14:12 GMT 2002 > > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC i386 > > > > The result of running make after configuring an almost clean source > > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to work > > with apache2) with the following: > > ./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs > > everything worked fine until i upgraded to apache 2.0.40 (actually, just > > removed the entire /usr/www directory after a problem)... > > > > Making all in apache2filter > > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc -I. > > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main > -I/usr/php-4.2.2 > > -I/usr/www/include -I/usr/php-4.2.2/Zend > -I/usr/php-4.2.2/ext/mysql/libmys > ql > > -I/usr/php-4.2.2/ext/xml/expat -D_REENTRANT -D_THREAD_SAFE > > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2 > -pthread -DZT > S > > -prefer-pic -c sapi_apache2.c > > sapi_apache2.c: In function `php_register_hook': > > sapi_apache2.c:534: warning: passing arg 3 of > `ap_register_output_filter' > > makes pointer from integer without a cast > > sapi_apache2.c:534: too few arguments to function > > `ap_register_output_filter' > > sapi_apache2.c:535: warning: passing arg 3 of > `ap_register_input_filter' > > makes pointer from integer without a cast > > sapi_apache2.c:535: too few arguments to function > `ap_register_input_filter' > > *** Error code 1 > > > > Stop in /usr/php-4.2.2/sapi/apache2filter. > > *** Error code 1 > > > > Stop in /usr/php-4.2.2/sapi/apache2filter. > > *** Error code 1 > > > > Stop in /usr/php-4.2.2/sapi. > > *** Error code 1 > > > > Stop in /usr/php-4.2.2. > > > > > > _ > > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > > > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] unable to compile php4.2.2 with apache 2.0
This question has been often answered ... If you have no time or dont want to use 4.3-dev, you can just insert a NULL as third parameter of the two calls to ap_register_input_filter and ap_register_output_filter lines 534 and 535 of /../php-4.2.2/sapi/apache2filter/sapi_apache2.c [ Due to a change in Apache Api since 20.39 ] William Nyden wrote: > I get the same errors. Red Hat 7.3 evaluation. > > Luis E. Collado T. wrote: > >> i tried to installling PHP and Apache 2 using URL: >> http://www.geocities.com/honey_jal/. I got the following error: >> >> Making all in apache2filter >> make[2]: Cambiando a directorio `/php-4.2.2/sapi/apache2filter' >> make[3]: Cambiando a directorio `/php-4.2.2/sapi/apache2filter' >> /bin/sh /php-4.2.2/libtool --silent --mode=compile gcc -I. >> -I/php-4.2.2/sapi/apache2filter -I/php-4.2.2/main -I/php-4.2.2 >> -I/wwwroot/include -I/php-4.2.2/Zend -I/php-4.2.2/ext/mysql/libmysql >> -I/php-4.2.2/ext/xml/expat -D_REENTRANT -I/php-4.2.2/TSRM -DTHREAD=1 >> -g -O2 -pthread -DZTS -prefer-pic -c sapi_apache2.c >> sapi_apache2.c: In function `php_register_hook': >> sapi_apache2.c:534: warning: passing arg 3 of >> `ap_register_output_filter' makes pointer from integer without a cast >> sapi_apache2.c:534: too few arguments to function >> `ap_register_output_filter' >> sapi_apache2.c:535: warning: passing arg 3 of >> `ap_register_input_filter' makes pointer from integer without a cast >> sapi_apache2.c:535: too few arguments to function >> `ap_register_input_filter' >> make[3]: *** [sapi_apache2.lo] Error 1 >> make[3]: Saliendo directorio `/php-4.2.2/sapi/apache2filter' >> make[2]: *** [all-recursive] Error 1 >> make[2]: Saliendo directorio `/php-4.2.2/sapi/apache2filter' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Saliendo directorio `/php-4.2.2/sapi' >> make: *** [all-recursive] Error 1 >> >> may any help me? >> >> Thanks > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] php 4.2.2 + apache2.0.40
If you dont have the directory /usr/local/src/php-4.2.2/libs do it and then redo make install. Verify the presence of /usr/local/www/libexec/libphp4.so (normaly subdir modules) Gilberto J. Palau wrote: >I downloaded the latest build from snaps.php.net and I installed it and now >I don't get this problem. But when I try to restart apache it says: > >Syntax error on line 230 of /usr/local/www/conf/httpd.conf: >Cannot load /usr/local/www/libexec/libphp4.so into server: >/usr/local/www/libexec/libphp4.so: cannot open shared object file: No such >file or directory > > >"Jeffrey N Dyke" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >>I have 4.2.3(from snaps.php.net) and Apache 2.0.39 working like a charm. >>don't know if you want to go that way though >> >>Jeff >> >> >> >>Nick Couchman >><[EMAIL PROTECTED] To: Ken Jeansson >> >> ><[EMAIL PROTECTED]>, [EMAIL PROTECTED] > > >>m> cc: >>Sent by: Subject: Re: [PHP-INST] php >> >> >4.2.2 + apache2.0.40 > > >>[EMAIL PROTECTED] >> >> >>08/14/2002 >>09:37 AM >> >> >> >> > > > >> >> >>Unfortunately from experience and from other discussions on this list, >>that would seem to be a correct conclusion. >> >>--Nick >> >>Ken Jeansson wrote: >> >> >> >>>Hmm, this seems to be a non working combination even with the latest >>>snapshot dated 14 august >>> >>>Say that I am wrong!... please =) >>> >>>// Ken >>> >>>-- >>>PHP Install Mailing List (http://www.php.net/) >>>To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >>-- >>You can't make a difference until you are willing to be different. >>-- >>Nick Couchman >>SEAKR Engineering >>6221 South Racine Circle >>Centennial, CO 80111 >>Desk: (303) 784-7724 >>Main: (303) 790-8499 >>Fax: (303) 790-8720 >> >> >> >> >>-- >>PHP Install Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> >> >> >> > > > > >
Re: [PHP-INST] php.ini under Unix Solaris 9 / PHP 4.3.0-dev / Apache-2.0.40
Hi have you tried ; configure ... --with-config-file-path= ? Lou Picciano / Essex Systems wrote: >List Friends: > >We've recently installed php-4.3.0-dev under Apache 2.0.40 - WORKS GREAT! > >Except: that we cannot get php to recognize its php.ini file, no matter >where we place it. Shouldn't any changes in this file, if it's being >properly read, be reflected in phpinfo() output? > >We've tried the (default) location of /usr/local/lib, as well as >/usr/local/lib/php, /usr/lib and /usr/apache2/libexec (the location of the >libphp4.so module), all with no joy. Yes, we are re-starting Apache between >tests. > >Can anyone point me in the right direction? > >TIA - Lou > >-- End of Forwarded Message > > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-INST] Apache2.0.40 + PHP 4.2.3 + SSL + Solaris 8
Hi, have you this libdb-3.0.so in your LD_LIBRARY_PATH when starting httpd in apachectl ? what gets ldd /export/www/bin/httpd | grep db ? I've httpd-2.0.40 + bdb-4.0.14 + php-4.2.3 + openssl-0.9.6g + Solaris 8/Sparc working Danny Auble wrote: >does anyone has this combo working? I can't seem to get PHP to like apache, >or apache to like Solaris. I get ld.so.1: /export/www/bin/httpd: fatal: >libdb-3.0.so: open failed: No such file or directory when I run apachectl. >Any configure lines would be great. I have this working under apache >1.3.19. > >thanks, >Danny > > > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] php.ini
Hi everyone, How can I prevent scripts written in php to make calls to chroot ? Can I use the disable_functions thing in php.ini ? And in this file, what is the safe_mode_exec_dir ? Laurent Vanstaen -- 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]
[PHP-INST] Unable to read PHP scripts
Hi all, I've installed Apache and PHP successfully but my browser doesn't seem to recognize php scripts. It ask to saves them, instead of parsing these files. Anybody got the same problem and a soution ?? Laurent Vanstaen -- 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]
[PHP-INST] Call to system functions
Hi all, does anyone know how to make a call to system fonctions, such as getgrp or things like that. In fact I'd like to identify my users by their unix group and I didn't find any php functions doing so. Laurent Vanstaen -- 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]
[PHP-INST] PHP as external script and Apache : configuring 404 errors
Hello, I have : - Apache 1.3.x - PHP 4.0.5 (not a module, but a separate script) - the directive ErrorDocument is configurated : ErrorDocument 404 /404.html My problem : - http://server/filenotpresent gives a 404 error, and open 404.html. It's OK. - http://server/filenotpresent.php4 calls php before verifying if "filenotpresent.php4" exists. So, instead of opening /404.html, we got an internal error because "/usr/.../bin/php filenotpresent.php4" returns no data. My question : Is there is a way : - to tell php to generate an HTML page containing a redirect to /404.html, if the given file doesn't exists or - configure Apache to force it to check if the file exists before calling php ? Thanks for your help. Laurent. -- 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]
[PHP-INST] PHP as external script and Apache : configuring 404 errors
Hello, I have : - Apache 1.3.x - PHP 4.0.5 (not a module, but a separate script) - the directive ErrorDocument is configurated : ErrorDocument 404 /404.html My problem : - http://server/filenotpresent gives a 404 error, and open 404.html. It's OK. - http://server/filenotpresent.php4 calls php before verifying if "filenotpresent.php4" exists. So, instead of opening /404.html, we got an internal error because "/usr/.../bin/php filenotpresent.php4" returns no data. My question : Is there is a way : - to tell php to generate an HTML page containing a redirect to /404.html, if the given file doesn't exists or - configure Apache to force it to check if the file exists before calling php ? Thanks for your help. Laurent. PS : -- 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]
[PHP-INST] php as cgi binary install on solaris 8 ?
Hi, I need to set up php as a command line interpreter on a Solaris 8. I have gcc on another machine so I made the install (without --apxs...) and it went fine. The problem is I don't know how to port the binaries from the dev machine to the target machine. /usr/local/bin/php is obviously not enough. I would like to do a static import of all the libraries used by php but I can't find the configure option. Thanks. -- 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]