php-install Digest 11 Apr 2001 17:17:37 -0000 Issue 257 Topics (messages 2747 through 2755): Multiple php Installation? 2747 by: rbe 2752 by: Robert Boehrs When I try to open index.php the browser prompts a download box to download index.php! 2748 by: sousa.hugo.adlittle.com 2749 by: Robert Boehrs 2750 by: sousa.hugo.adlittle.com 2751 by: Robert Boehrs Installing PHP as an Apache DSO 2753 by: sousa.hugo.adlittle.com 2754 by: Robert Boehrs PHP Installation error 2755 by: LAURIE KEITH 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] ----------------------------------------------------------------------
Hello! Is there a way to install the same version of php multiple? I have installed php 4 as apache-modul. Now i want to install it once again as cgi-version to write shell-scripts with php. Can anywhere tell me what i must do? Ralf
Hi, you'll need to configure and compile php again, and use the configure without anything like --with-apache or --with-apxs. If you use configure this way it should give you a statement at the end of the configure-run which tells you you're about to build the cgi-version of php. Then just make and make install and it will get you a php-binary under /usr/local/bin. If thats not working have a look at the php-manual where this should be explained more in depth. Best Robert -----Ursprüngliche Nachricht----- Von: rbe [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. April 2001 11:29 An: [EMAIL PROTECTED] Betreff: [PHP-INST] Multiple php Installation? Hello! Is there a way to install the same version of php multiple? I have installed php 4 as apache-modul. Now i want to install it once again as cgi-version to write shell-scripts with php. Can anywhere tell me what i must do? Ralf -- 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]
When I try to open index.php the browser prompts a download box to download index.php! I've just installed apache & php in a redhat 7.0 Do you have any hint about this ? Best regards, HS **** This message is from Arthur D. Little, Inc., and/or one of Arthur D. Little's subsidiaries or affiliates and may contain confidential business information. It is intended for the addressee only and may not be copied without our permission. If you are not the intended recipient please contact the sender as soon as possible.****
Hi, seems to me like you'll need to modify your http.conf file. Look for something like " AddType application/x-httpd-php3 .php3 " or " AddType application/x-httpd-php .php ". If these lines are not within your http.conf or are commented out just uncoment or insert these. After that you need to restart your apache-server and you should get your php-files correctly processed. Best Robert -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. April 2001 12:33 An: [EMAIL PROTECTED] Betreff: [PHP-INST] When I try to open index.php the browser prompts a download box to download index.php! When I try to open index.php the browser prompts a download box to download index.php! I've just installed apache & php in a redhat 7.0 Do you have any hint about this ? Best regards, HS **** This message is from Arthur D. Little, Inc., and/or one of Arthur D. Little's subsidiaries or affiliates and may contain confidential business information. It is intended for the addressee only and may not be copied without our permission. If you are not the intended recipient please contact the sender as soon as possible.**** -- 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 and thanks for your support! I'm using those lines and it doesn't work ! It's really strange ! Remember that I'm using PHP4 and not 3 .... is this any problem?!?!?!? Do I have to modify any other parameter in httpd.conf?! Thanks, regards, HS Robert Boehrs <RBoehrs@music-u To: [EMAIL PROTECTED] nited.com> cc: bcc: 04/11/01 12:36 Subject: AW: [PHP-INST] When I try to open PM index.php the browser prompts a download box to download index.php! Hi, seems to me like you'll need to modify your http.conf file. Look for something like " AddType application/x-httpd-php3 .php3 " or " AddType application/x-httpd-php .php ". If these lines are not within your http.conf or are commented out just uncoment or insert these. After that you need to restart your apache-server and you should get your php-files correctly processed. Best Robert -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. April 2001 12:33 An: [EMAIL PROTECTED] Betreff: [PHP-INST] When I try to open index.php the browser prompts a download box to download index.php! When I try to open index.php the browser prompts a download box to download index.php! I've just installed apache & php in a redhat 7.0 Do you have any hint about this ? Best regards, HS **** This message is from Arthur D. Little, Inc., and/or one of Arthur D. Little's subsidiaries or affiliates and may contain confidential business information. It is intended for the addressee only and may not be copied without our permission. If you are not the intended recipient please contact the sender as soon as possible.**** -- 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 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] **** This message is from Arthur D. Little, Inc., and/or one of Arthur D. Little's subsidiaries or affiliates and may contain confidential business information. It is intended for the addressee only and may not be copied without our permission. If you are not the intended recipient please contact the sender as soon as possible.****
For php4 you should use " AddType application/x-httpd-php .php ", but if you've checked that allready then you should check if apache loads the php4 module correctly. If you are using the DSO-Module then you should check the loadmodule directives within the httpd.conf and if that's present check the error-logfile if apache complains about anything related to module loading. If there's no problem then you could use the apache server-info handler (http://localhost/server-info, check your httpd.conf for that) to see if apache loads that module. If you've installed/compiled a static apache-php-version you could start the httpd binary directly with the parameter -l to get a list of the installed modules. Hope anything of this helps to track the problem. Robert -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. April 2001 14:41 An: Robert Boehrs Cc: [EMAIL PROTECTED] Betreff: Re: AW: [PHP-INST] When I try to open index.php the browser prompts a download box to download index.php! Hi and thanks for your support! I'm using those lines and it doesn't work ! It's really strange ! Remember that I'm using PHP4 and not 3 .... is this any problem?!?!?!? Do I have to modify any other parameter in httpd.conf?! Thanks, regards, HS Robert Boehrs <RBoehrs@music-u To: [EMAIL PROTECTED] nited.com> cc: bcc: 04/11/01 12:36 Subject: AW: [PHP-INST] When I try to open PM index.php the browser prompts a download box to download index.php! Hi, seems to me like you'll need to modify your http.conf file. Look for something like " AddType application/x-httpd-php3 .php3 " or " AddType application/x-httpd-php .php ". If these lines are not within your http.conf or are commented out just uncoment or insert these. After that you need to restart your apache-server and you should get your php-files correctly processed. Best Robert -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. April 2001 12:33 An: [EMAIL PROTECTED] Betreff: [PHP-INST] When I try to open index.php the browser prompts a download box to download index.php! When I try to open index.php the browser prompts a download box to download index.php! I've just installed apache & php in a redhat 7.0 Do you have any hint about this ? Best regards, HS **** This message is from Arthur D. Little, Inc., and/or one of Arthur D. Little's subsidiaries or affiliates and may contain confidential business information. It is intended for the addressee only and may not be copied without our permission. If you are not the intended recipient please contact the sender as soon as possible.**** -- 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 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] **** This message is from Arthur D. Little, Inc., and/or one of Arthur D. Little's subsidiaries or affiliates and may contain confidential business information. It is intended for the addressee only and may not be copied without our permission. If you are not the intended recipient please contact the sender as soon as possible.****
I'm trying to Installing PHP as an Apache DSO. To install Apache I'm runing: ./configure --prefix=/www --enable-module=so make make install After this I'm going to install PHP 4 with this commands ./configure --with-apxs=/www and after this command I get the error message: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path configure:Error. I'm think I'm doing everything OK, did anyone had any problem with this? Regards, HS **** This message is from Arthur D. Little, Inc., and/or one of Arthur D. Little's subsidiaries or affiliates and may contain confidential business information. It is intended for the addressee only and may not be copied without our permission. If you are not the intended recipient please contact the sender as soon as possible.****
Hi, first, as it says, you should check if you've installed perl since apxs is a perl script. If that still fails after you verified your perl-installation you could enhance the apxs-path like --with-apxs=/www/bin/apxs in your case(check the exact path to the apxs file). After that it should work since you've enabled the so-module. If not you could try to configure apache with "--enable-shared=max" to get everything compiled as a dso. Robert -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 11. April 2001 17:05 An: [EMAIL PROTECTED] Betreff: [PHP-INST] Installing PHP as an Apache DSO I'm trying to Installing PHP as an Apache DSO. To install Apache I'm runing: ./configure --prefix=/www --enable-module=so make make install After this I'm going to install PHP 4 with this commands ./configure --with-apxs=/www and after this command I get the error message: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path configure:Error. I'm think I'm doing everything OK, did anyone had any problem with this? Regards, HS **** This message is from Arthur D. Little, Inc., and/or one of Arthur D. Little's subsidiaries or affiliates and may contain confidential business information. It is intended for the addressee only and may not be copied without our permission. If you are not the intended recipient please contact the sender as soon as possible.**** -- 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]
I am trying to install PHP 4.0 on a intel machine running Red Hat Linux 6.2. Everything seems to work ok up to the ./configure command of the php. I got the message: **************************************************************************** ********** * Attention! * * Something is likely to be screwed up here, because the configure script * * was not able to detect a simple feature on your platform. This is often * * caused by incorrect configuration parameters. * **************************************************************************** ********** I have Apache installed, up and running, installed MySQL and tested it and it works fine. I get to the PHP installation and get an error that something is most likely wrong. I have included the contents of the debug.log file. MySQL is located in /usr/local/mysql-3.22.32-pc-linux-gnu-i686 and I also verified the location of the apxs to be correct. I tried the ./configure command with and without the trailing / at the end of i686. Let me know if there is any additional information that is needed to figure out my problem. Thanks for any help you can offer. Contents of debug.log: CONFIGURE: './configure' '--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i 686' '--with-apxs=/usr/local/apache_1.3.12/bin/apxs' CC: gcc CFLAGS: -g -O2 CPPFLAGS: CXX: CXXFLAGS: INCLUDES: -I/usr/local/apache_1.3.12/include -I$(top_builddir)/Zend -I$(top_ srcdir) -I/usr/local/mysql-3.22.32-pc-linux-gnu-i686/include LDFLAGS: -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql -L/ usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql LIBS: -lmysqlclient -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv DLIBS: SAPI: apache PHP_RPATHS: /usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql uname -a: Linux linux.rc.national.edu 2.2.14-5.0smp #1 SMP Tue Mar 7 21:01:40 EST 2000 i686 unknown gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686/l ib/mysql -L/usr/local/mysql-3.22.32-pc-linux-gnu-i686/lib/mysql conftest.c -lmys qlclient -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5 /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status Laurie A. Keith Network Manager National American University (605) 394-5008 [EMAIL PROTECTED]