php-install Digest 27 Mar 2001 16:28:19 -0000 Issue 236 Topics (messages 2591 through 2602): URL parsing problem on PHP 4 LinuxPPC 2591 by: Hugh Caley please help can't include file 2592 by: Bartosz Aninowski Re configure PHP 2593 by: David Tandberg-Johansen adfafd 2594 by: cainnn 2598 by: Frank S. Bernhardt problem with informix7.22 2595 by: cainnn Re: Error: "Premature end of script headers: /u01/httpd/cgi-bin/test.php" 2596 by: A.T.Z. php-mysql-4.0.4pl1-3.i386.rpm install problem 2597 by: DON GRIFFEY 2599 by: A.T.Z. Compile error: IRIX 6.2 w/ IDO 2600 by: Ethan PHP 4.0.4pl1 on NT4 compiling - bison error 2601 by: Hugh Jones Re: Compile error: IRIX 6.2 w/ GCC 2602 by: Ethan 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] ----------------------------------------------------------------------
I have installed php-4.0.4pl1 on my LinuxPPC server, along with apache 1.3.19. I have done quite a few installs of both in the past, but this problem has me stumped. Platform is LinuxPPC. As an example, I have created the following script: <?php echo "<HTML><HEAD></HEAD><BODY>\n"; if ($type == "1") { echo "You typed 1\n"; } elseif ($type == "2") { echo "You typed 2\n"; } elseif ($type == "3") { echo "You typed 3\n"; } else { echo "You typed in nothing\nthe value of TYPE is $type"; } echo "</BODY></HTML>"; ?> On a PC with RedHat 7, this works as expected, i.e. if I use the following URL in my browser: http://hostname/direct.php?type=1 the output is "You typed 1" However, on my Mac 8600 running LinuxPPC, I get "You typed in nothing the value of TYPE is " no matter what I enter. PHP was built using apxs, and I've tried it with and without gettext. any ideas? Hugh
After installing php 4.0.4 i have big problem with include file my old scripts doesn't work <? include "some.php"; ?> but when i change into something like that <? include "./some.php"; file://or include "/home/www/myscript/some.php"; ?> it works. Why? It is something wrong or missed option during instalation? I can't modify ale my scripts and other application. PhpMyAdmin has problems too -- Pozdrowienia Bartosz Aninowski ................................................................ M..A..G..P..R..O..J..E..K..T http://magprojekt.com ul. M³odnicka 39a 04-239 Warszawa tel 22 879 68 96 fax 22 879 68 97 ["...powtórne tworzenie ¶wiata"] mailto:[EMAIL PROTECTED] .................................................................
Hello! I am trying to install an module called ming.so (Flash). But I am a newbie on installing on linux so I need some help. First thing first: I have understood that i have to re install both apache and php, but this isn't the problem. what do I write on the comand line? #./configure --with xxx\ --with xx\ etc etc What "modules" should I include? I am sorry for this very newbie question, but I have not find any satisying docmentation on this topic. I don't want to make mistakes. David
i building php with sco unix5.05,informix 7.22, i do as follow: ./configure --with-apaache=/apache/apache_1.3.19 --with-informix=/home/infor mix, and it's seems to be work well; but when i type "make",i get a err message as below: In file included from mysys_priv.h:4, from my_getwd.c:6: global.h:809: warning: `doubleget' redefined global.h:670: warning: this is the location of the previous definition global.h:810: warning: `doublestore' redefined global.h:672: warning: this is the location of the previous definition my_getwd.c:58: #error "No way to get current directory" *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) who can help me?
You need to give more information. What compiler are you using? Do you have all the libraries? I don't use Informix but I got my 4.0.3p1 going on 5.0.5. See the attached notes for details. cainnn wrote: > i building php with sco unix5.05,informix 7.22, > i do as follow: > ./configure --with-apaache=/apache/apache_1.3.19 --with-informix=/home/infor > mix, and it's seems to be work well; > but when i type "make",i get a err message as below: > > In file included from mysys_priv.h:4, > from my_getwd.c:6: > global.h:809: warning: `doubleget' redefined > global.h:670: warning: this is the location of the previous definition > global.h:810: warning: `doublestore' redefined > global.h:672: warning: this is the location of the previous definition > my_getwd.c:58: #error "No way to get current directory" > *** Error code 1 (bu21) > *** Error code 1 (bu21) > *** Error code 1 (bu21) > *** Error code 1 (bu21) > *** Error code 1 (bu21) > > who can help me? > > -- > 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] -- Regards Frank S. Bernhardt b.c.s.i. 14 Halton Court Markham, ON. L3P 6R3 905-471-1691 Voice 905-471-3016 FAX [EMAIL PROTECTED]Hi all. I finally got my apache/php4/mysql under SCO 5.0.5 sorted out thanks to the help of: "Paul Gardiner" <[EMAIL PROTECTED]> "Grimes, Dean" <[EMAIL PROTECTED]> I was missing a number of things (other than my sanity) such as libraries, patches and paths. Dean sent me a list of things he did in order to get his going. I made some slight adjustments to the instructions. Here they are. They reflect my current configuration. I hope they help someone else out there. Operating system: SCO OpenServer 5.0.5 Step #1: Install SCO Development Kit Version: 5.1.1A 1. Insert SCO OpenServer 5.0.5 Install CD 2. custom 3. Select Software 4. Select Install New 5. Select From (system_name) 6. Select Media Device: CD-ROM Drive 0 7. Tag the SCO OpenServer Development System (ver 5.1.1A) 8. Select Install Step #2: Install Patches/Updates: rs505a - Release Supplement for SCO OpenServer rs505a - Software Manager Supplement oss497a - Core OS Supplement oss497c - Core OS Supplement oss600a - Year 2000 Supplement for RS505A oss459b - COFF Linker Supplement oss499a - rs505a Elf Linker Fix "You will need to install the COFF Linker patch. You probably don't need the Elf Linker .... But what the hay... It only takes a minute. Also, you most likely won't need the Pentium patch either unless you do update your CPU microcode and it is a pentium; we do. Aside from those two patches, you should install all of the others. The only ones that matter as far as order goes is the rs505a and the oss600a. The others can be installed in any order. But... You need to remember the order incase you need to remove a patch, because patches have to be removed in the order in which they were installed. Otherwise, you will have to uninstall ALL patches down to the basic OS and then reinstall any necessary patches. If you are not sure of the order your current patches were installed, then you should just remove them all and then reinstall all appropriate patches and make note of the install order for the future. You do not need to reinstall Unix, only remove all patches and reinstall all patches." - The "c" version fixes a bug that causes MySQL to have problems. I have attached the "c" version with this email." - Dean I also have installed: Graphics Library v1.5 Ncurses v4.2 UDK compatability modeule v5.0.5A gdbm-1.7.3 Step #3: Install GNU make Version: 3.78.1 1. download the source from: ftp://prep.ai.mit.edu/pub/gnu/make 2. un-tar it into /usr/local 3. cd /usr/local/make-3.78.1 4. ./configure 5. make 6. make install OR Download the gmake v3.78.1 from SCO's web site and install as a VOL I used the second method. Step #4: Install FSU-pthreads Version: 3.5c 1. Download the package from: http://www.mysql.com/downloads/os-sco.html (I got mine from Dean; the one from SCO was no good) 2. un-tar it into /usr/local 3. cd /usr/local/FSU-pthreads-3.5c 4. cp lib/* ../lib 5. cp -r include/* ../include 6. ln -s /usr/local/lib/libgthreads.so /usr/lib/libgthreads.so "The "c" version fixes a bug that causes MySQL to have problems." - Dean Step #5: Install bison Version: 1.28 1. Download the package from: ftp://prep.ai.mit.edu/pub/gnu/bison 2. un-tar it into /usr/local 1. cd /usr/local/bison-1.28 2. configure 3. make 4. make install Step #6. Install GNU gcc compiler Version: 2.95.2 1. Download the package from: ftp://prep.ai.mit.edu/pub/gnu/gcc 2. un-tar it into /usr/local 3. cd /usr/local/gcc-2.95.2 4. configure 5. make bootstrap LANGUAGES="c c++" 6. make install LANGUAGES="c c++" OR Download the gcc 2.95.2pl1 from SCO's web site and install as a VOL "I had problems compiling MySQL with the Skunkware version. I could compile PHP and Apache but not MySQL. However, after compiling gcc from scratch all of my problems went away." - Dean I did not have this problem with the Skunkware download. Step #7: Install zlib Version: 1.1.3 1. Download the package (I got mine from Dean; I'm not sure why I needed this) 2. un-tar it into /usr/local 1. cd /usr/local/zlib-1.1.3 2. configure 3. make 4. make install 5. ln -s /usr/local/lib/libz.so /usr/lib/libz.so Step #8: Set PATH, LD_LIBRARY_PATH, LIBPATH and MANPATH (assuming all work done in root) Set Environment Variables: 1. vi /.profile 2. PATH=/usr/local/bin:/bin:/usr/bin:/etc:/usr/local/mysql/bin: \ /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2 3. LD_LIBRARY_PATH=/usr/lib:/usr/ccs/lib:/lib:/usr/local/lib: \ /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2 4. LIBPATH=/usr/lib:/usr/ccs/lib:/lib:/usr/local/lib: \ /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2 5. MANPATH=scohelp:/usr/man:/usr/local/man Step #9: Install MySQL Version: 3.23.27 1. Download the package from: http://www.mysql.com/downloads/mysql-3.23.html (I used the beta version show waaayyyy at the bottom of the page) 2. un-tar it into /usr/local 3. cd /usr/local/mysql-3.23.27-beta-pc-sco3.2v5.0.5-i386 4. read and follow instructions in INSTALL-BINARY 5. configure --prefix=/usr/local/mysql 6. make 7. make install (mine ran without doing 8 - 10) 8. ln -s /usr/local/mysql/lib/libmysqlclient.s10 /usr/local/lib/libmysqlclient.s10 9. cd /usr/local/bin 10. ln -s /usr/local/mysql/bin/* . 11. mysql_install_db 12. cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d 13. chmod 500 /etc/init.d/mysql.server 14. ln -s /etc/init.d/mysql.server /etc/rc2.d/S99mysql 15. ln -s /etc/init.d/mysql.server /etc/rc0.d/S01mysql 16. copy /usr/local/mysql/support-files/my-(choose one).cnf /etc/my.cnf Step #10: Configure Apache Version: 1.3.14 1. cd /usr/local/apache_1.3.14 2. configure --prefix=/usr/local/apache Step #11: Install PHP4 Version: 4.0.3pl1 1. Download the package from: http://www.php.net/downloads.php 2. un-tar it into /usr/local 1. cd /usr/local/php-4.0.3pl1 2. vi configure 3. search for all occurrences of -lmysqlclient 4. add -lz to each occurrence: ex: MYSQL_SHARED_LIBADD "-lmysqlclient $MYSQL_SHARED_LIBADD" change to: MYSQL_SHARED_LIBADD "-lmysqlclient -lz $MYSQL_SHARED_LIBADD" 5. save the configure file 6. rm config.cache CC="gcc" \ ./configure \ --with-apache=/usr/local/apache_1.3.14 \ --with-mysql=/usr/local/mysql-3.23.27-beta-pc-sco3.2v5.0.5-i386 \ --enable-track-vars \ --enable-sysvsem \ --enable-sysvshm Step #12: Install Apache Version: 1.3.14 1. cd /usr/local/apache_1.3.14 2. CC="gcc" \ ./configure \ --prefix=/usr/local/apache \ --with-perl=/usr/local/bin/perl \ --enable-module=most \ --enable-shared=max \ --enable-module=info \ --enable-shared=info \ --enable-module=so \ --activate-module=src/modules/php4/libphp4.a \ --enable-suexec \ --suexec-safepath=/usr/local/bin/apache 4. make 5. make install 6. ln -s /usr/local/apache/bin/apachectl /etc/apache 7. ln -s /usr/local/apache/bin/apachectl /etc/init.d/apache 8. ln -s /usr/local/apache/bin/apachectl /etc/rc2.d/S96apache I included db_auth and recompiled gdbm-1.7.3. When I "apachectl configtest" it can't resolve db_open (same old problem). When I take db_auth out of httpd.conf it configtest's ok. Future project. To my recollection, the above is what I did. Understand though, this was done over a 3 week period :-) Enjoy!
S/MIME Cryptographic Signature
i building php with sco unix5.05,informix 7.22, i do as follow: ./configure --with-apaache=/apache/apache_1.3.19 --with-informix=/home/infor mix, and it's seems to be work well; but when i type "make",i get a err message as below: In file included from mysys_priv.h:4, from my_getwd.c:6: global.h:809: warning: `doubleget' redefined global.h:670: warning: this is the location of the previous definition global.h:810: warning: `doublestore' redefined global.h:672: warning: this is the location of the previous definition my_getwd.c:58: #error "No way to get current directory" *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) who can help me?
>/u01/httpd/cgi-bin/test.php" in the Apache error_log file with a simple test >file. Any suggestions? Put it somewhere else. NOT in your cgi-bin but in your www root, htdocs or however you call it. Bye, B.
Hello, I am attempting to install the following rpm downloaded from Red Hat: php-mysql-4.0.4pl1-3.i386.rpm I have already installed MySQL and it is running fine. I have already installed php4.0.4 and it appears to work fine when using the test script described in the documentation. However when I attempt to install the rpm above I get the following error: error: failed dependencies: mysql is needed by php-mysql-4.0.4pl1-3 libmysqlclient.so.10 is needed by php-mysql-4.0.4pl1-3 Here is the location of the library files and its contents. [root@mail1 don]# cd /usr/lib/mysql [root@mail1 mysql]# ls libdbug.a libmerge.a libmyisammrg.a libmysqlclient.la libmysys.a libheap.a libmyisam.a libmysqlclient.a libmystrings.a libnisam.a Any help would be very much appreciated. Don Griffey
> >Any help would be very much appreciated. I remember someone on another list who removed the rpm and build from source because of some bugs in rpm.. might have been in combination with RH 7 Can't find his posting.. but if no other suggestion is launched you might try the same. Bye, B.
I tried compiling on a plain Indy R4400-200mhz system. The operating system is IRIX 6.2 w/ the rollup patch bundle. Compiler was the SGI IDO (development option), not MipsPro. I will probably drop GCC on the system and compile with that. I just thought I would let you know, it would rock to be able to compile PHP 4 + Apache with standard IDO. I plan to install MipsPro 7.x.x on a SGI and try to throw down with that... >From debug log: CONFIGURE: './configure' '--with-mysql' '--with-pgsql' '--with-apache=../apache_1.3.19' '--enable-track-vars' e_1.3.19' '--enable-track-vars' CC: cc CFLAGS: -g CPPFLAGS: CXX: CXXFLAGS: INCLUDES: -I/usr/people/ethan/apache_1.3.19/src/include -I/usr/people/ethan/apache_1.3.19/src/os/unix -I$(top_builddir)/Zend -I/usr/people/ethan/php-4.0.4pl1/ext/mysql/libmysql LDFLAGS: -Wl,-rpath,/lib -L/lib LIBS: -lpq -lm -ldl -lcrypt DLIBS: SAPI: apache PHP_RPATHS: /lib uname -a: IRIX wh2 6.2 03131015 IP22 cc -o conftest -g -Wl,-rpath,/lib -L/lib conftest.c -lpq -lm -ldl -lcrypt 1>& 5 ld: FATAL 9: I/O error (-lpq): No such file or directory
Hi, When I try to compile php on windows, it gets an error, with bison saying it does not support the S option - does anyone know how to fix this? Cheers, Hugh Jones System Administrator Wordmap Ltd Tel: 01225 358121 [EMAIL PROTECTED] http://www.wordmap.com
Earlier I sent a compile error from IRIX 6.2 using the IDO CC. I just retried after installed the GCC package from freeware.sgi.com. New error from debug log: creating main/php_config.h creating sapi/Makefile CONFIGURE: './configure' '--with-mysql' '--with-pgsql' '--with-apache=../apache_1.3.19' '--enable-track-vars' CC: /usr/freeware/bin/gcc CFLAGS: -g -O2 CPPFLAGS: CXX: CXXFLAGS: INCLUDES: -I/usr/people/ethan/apache_1.3.19/src/include -I/usr/people/ethan/apache_1.3.19/src/os/unix -I$(top_builddir)/Zend -I/usr/people/ethan/php-4.0.4pl1/ext/mysql/libmysql LDFLAGS: -Wl,-rpath,/lib -L/lib LIBS: -lpq -lm -ldl -lcrypt -lsocket -lsocket DLIBS: SAPI: apache PHP_RPATHS: /lib uname -a: IRIX wh2 6.2 03131015 IP22 /usr/freeware/bin/gcc -o conftest -g -O2 -Wl,-rpath,/lib -L/lib conftest.c -lpq -lm -ldl -lcrypt -lsocket -lsocket 1>&5 ld: FATAL 9: I/O error (-lpq): No such file or directory collect2: ld returned 1 exit status My goal is apache w/ PHP4 and PostGreSQL support on irix 6.2 and 6.5 I am not on the mailing list that I am sending this to, so if there are replies please email them to me.