php-install Digest 21 Jul 2001 13:28:47 -0000 Issue 373 Topics (messages 3637 through 3649): PHP compiling 3637 by: Pfiszter Zsolt postgresql and debian 3638 by: Francois Thomas httpd.conf & srm.con 3639 by: glynco 3640 by: Rasmus Lerdorf 3644 by: Christopher Ostmo Re: TNS:unable to connect to destination' error 3641 by: Barry Prentiss Re: [PHP-DB] 'ORA-12203: TNS:unable to connect to destination' error 3642 by: Rouvas Stathis Installing php-4.0.6 as a CGI Interpreter, But getting 500 errors 3643 by: Ryan C. Creasey 2 Questions about a New Machine 3645 by: Jonathan Hilgeman PHP, Apache & PostgreSQL 3646 by: Sean McCoy 3647 by: Rasmus Lerdorf Php scripts - My browser have not worked yet 3648 by: Emerald Shop libphp4.so missing 3649 by: Webmaster.rdd.tg 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] ----------------------------------------------------------------------
Im compiling PHP, but when I'm using "with-apxs=/usr/sbin/apxs" parameter , the make utility error: stub.lo: file not recognized : File Truncated make *** [all-recursive] Error 1 # ./configure --with-mysql=/usr --with-gd=shared --with-sybase=/usr/local/freetds --with-tiff-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib=yes --with-ldap=no --with-imap=yes --with-meal=/usr/include/meal --enable-inline-optimization --enable-track-vars --enable-magic-quotes --with-config-file-path=/etc/httpd --with-exec-dir=/usr/lib/apache/bin --with-apxs=/usr/sbin/apxs --enable-versioning --enable-track-vars What's up? Pif
Hello list After digging unsuccessfully in the archives, I ask my question here.. I try to compile PHP 4.0.6 with PostgreSQL support. I compiled Apache 1.3.14 without problem. PostgreSQL (7.0.3) complained about C++ (cannot make executables), but it was fixed with a ./configure --without-CXX For PHP, the ./configure looks like being successful. But when I make, I have this error: Making all in pgsql make[2]: Entering directory `/root/archives/php/php-4.0.6/ext/pgsql' make[3]: Entering directory `/root/archives/php/php-4.0.6/ext/pgsql' /bin/sh /root/archives/php/php-4.0.6/libtool --silent --mode=compile gcc -I. -I/root/archives/php/php-4.0.6/ext/pgsql -I/root/archives/php/php-4.0.6/main -I/root/archives/php/php-4.0.6 -I/usr/local/apache/include -I/root/archives/php/php-4.0.6/Zend -I/root/archives/php/php-4.0.6/ext/mysql/libmysql -I/root/archives/php/php-4.0.6/ext/xml/expat/xmltok -I/root/archives/php/php-4.0.6/ext/xml/expat/xmlparse -I/root/archives/php/php-4.0.6/TSRM -I/usr/local/pgsql//include -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c pgsql.c In file included from php_pgsql.h:32, from pgsql.c:33: libpq-fe.h:349: warning: `palloc' redefined /usr/local/pgsql/include/utils/palloc.h:29: warning: this is the location of the previous definition libpq-fe.h:350: warning: `pfree' redefined /usr/local/pgsql/include/utils/palloc.h:30: warning: this is the location of the previous definition pgsql.c: In function `php_if_pg_put_line': pgsql.c:814: void value not ignored as it ought to be make[3]: *** [pgsql.lo] Error 1 make[3]: Leaving directory `/root/archives/php/php-4.0.6/ext/pgsql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/archives/php/php-4.0.6/ext/pgsql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/archives/php/php-4.0.6/ext' make: *** [all-recursive] Error 1 Well, any idea, clue, direction, will be appreciated ! Best regards -- François THOMAS
I installed PHP 4.0.6 ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/ make make install Now what should I do with the httpd.conf and srm.conf? Can someone explore this: "edit your httpd.conf file so it only loads the module for php4. If you load php3 it will interfere and it will brake httpd. Then edit your srm.conf file to respond for AddType-applications for php4."
Did you read the INSTALL file? On Sat, 21 Jul 2001, glynco wrote: > I installed PHP 4.0.6 > ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/ make > make install > > Now what should I do with the httpd.conf and srm.conf? > > Can someone explore this: "edit your httpd.conf file so it only loads the > module for php4. If you load php3 it will interfere and it will brake httpd. > Then edit your srm.conf file to respond for AddType-applications for php4." > > > >
glynco pressed the little lettered thingies in this order... > I installed PHP 4.0.6 > ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/ make > make install > > Now what should I do with the httpd.conf and srm.conf? > The instructions for this are well documented at php.net/manual in the "Installation" section. http://www.php.net/manual/en/install.apache.php (Assuming that you use Unix, look at step 17 of the instructions) That's not what my response is about, though... srm.conf is depracated and is only mentioned for people who have continued to recycle their config files for several years. If you are doing a new installation of Apache, your srm.conf will only contain a comment telling you not to use it (I'm paraphrasing). All options are available in the httpd.conf. If you have a newer version (lwithin the last two years or do) of Apache, the lines to activate PHP will already be in the httpd.conf file. Al that you need to do is uncomment them and start or restart apache. > Can someone explore this: "edit your httpd.conf file so it only loads the > module for php4. If you load php3 it will interfere and it will brake > httpd. Then edit your srm.conf file to respond for AddType-applications for > php4." > Christopher Ostmo a.k.a. [EMAIL PROTECTED] AppIdeas.com Innovative Application Ideas Meeting cutting edge dynamic web site needs since the dawn of Internet time (1995) Business Applications: http://www.AppIdeas.com/ Open Source Applications: http://open.AppIdeas.com/
Hi All, I finally got past the php_oci8.dll problem by moving it to the same directory as php.exe and changing the php.ini extensions_dir back to './'. Now I am getting the following error: Warning: _oci_open_server: ORA-12203: TNS:unable to connect to destination in c:\program files\apache group\apache\htdocs\dna\dna_oci_sys_list.php on line 20 which occurs at the $conn line below: error_reporting (E_ALL); putenv('ORACLE_HOME=C:\orant'); putenv('TNS_ADMIN=C:\orant\NET80\ADMIN'); putenv('ORACLE_SID=SLAC'); putenv('TWO_TASK=SLAC_TCP'); $conn = ociLogon("user","password"); This implies that I am reaching the Net8 oci client libraries (right?). My environment: PHP 4.0.5, Apache 1.3.19, W2K, Net8 8.0.6.0.0, remote Oracle 8.1.6 on Solaris. I can connect through SQL*Plus, tests OK through Net8 assistant, tnsnames.ora is in proper place (as defined in TNS_ADMIN above). What am I doing wrong? Thx in advance, Barry Prentiss
Barry Prentiss wrote: > > Hi All, > I finally got past the php_oci8.dll problem by moving it to the same > directory as php.exe and changing the php.ini extensions_dir back to './'. > > Now I am getting the following error: > > Warning: _oci_open_server: ORA-12203: TNS:unable to connect to > destination in c:\program files\apache > group\apache\htdocs\dna\dna_oci_sys_list.php on line 20 > > which occurs at the $conn line below: > > error_reporting (E_ALL); > putenv('ORACLE_HOME=C:\orant'); > putenv('TNS_ADMIN=C:\orant\NET80\ADMIN'); > putenv('ORACLE_SID=SLAC'); > putenv('TWO_TASK=SLAC_TCP'); > > $conn = ociLogon("user","password"); Try, OciLogon("user","pass",'SLAC'). What do you get? -Stathis. > > This implies that I am reaching the Net8 oci client libraries (right?). > > My environment: PHP 4.0.5, Apache 1.3.19, W2K, Net8 8.0.6.0.0, remote Oracle > 8.1.6 on Solaris. > > I can connect through SQL*Plus, tests OK through Net8 assistant, > tnsnames.ora is in proper place (as defined in TNS_ADMIN above). > > What am I doing wrong? > Thx in advance, > Barry Prentiss
I'm on a box that already has php installed as an Apache mod, but it's lacking the compile options that I desire. So, I can't recompile the module, i have to make my own local version of php with the options i want. Well, to just start out, I thought that I would just do a normal install, with default options just to get things going: ./configure --prefix=/home/p11/lib/php make make install Okay, so then everything installs properly to /home/p11/lib/php and I go make a script like so: p11@zuul:~/p11.com/cgi-bin/$ cat php.cgi #!/home/p11/lib/php/bin/php <?php phpinfo(); ?> But upon running the script from a browser, I get a 500 Premature End of Script error: [Fri Jul 20 13:02:22 2001] [error] [client 151.197.236.221] Premature end of script headers: /home/p11/p11.com/cgi-bin/php.cgi Hrm, okay... maybe there's something wrong with my php binary: p11@zuul:~/$ /home/p11/lib/php/bin/php X-Powered-By: PHP/4.0.6 Content-type: text/html Hrm, nope... let's try this: p11@zuul:~/lib/php/bin/$ ./php /home/p11/p11.com/cgi-bin/php.cgi X-Powered-By: PHP/4.0.6 Content-type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> ... Okay, that seems to work alright... Then why can't I run the script directly: p11@zuul:~/p11.com/cgi-bin/$ ls php.cgi -rwxr-xr-x 1 p11 pg8711 52 Jul 20 12:59 php.cgi* p11@zuul:~/p11.com/cgi-bin/$ ./php.cgi bash: ./php.cgi: No such file or directory Anyone out there that could know what I'm overlooking? Any and all help would be appreciated. Ryan C. Creasey Web Programmer p11creative
Hi, I've just put FreeBSD 4.2 and some basic libraries and packages on a Celeron box that I have so I can use it for testing my PHP scripts before posting them to the production server. I have installed mySQL 3.23.37 in /usr/local/mysql and now am trying to figure out why it doesn't start up when I reboot the system. I have linked the mysql.server script and put the link it /usr/local/etc/rc.d/ and it works to shut down the server if its running, but it doesn't seem to run the file to start up the server. What gives? That is my first question. Second, I tried using Apache Toolbox to install Apache,mySQL, PHP, GD+FreeType, etc... but it kept giving me trouble here and there. I'd fix one issue and it would cause another, and the error messages were finally too cryptic for me - it would die while compiling mySQL. Now, can someone either suggest a different installer program, or tell me why it doesn't work on FreeBSD 4.2-RELEASE? I am a bit new to the administration bit, but I've managed to install Bash 2.04, some compression packages like unzip, some ftp packages, Upgraded Perl to 5.6.1 and put some modules on. Other than that, I installed the system with a security setting of Extreme, which I have since customized a bit so that I can telnet/ssh and use FTP, and it's all hooked up to the network. I don't know how well I did with hooking it up to the network, but DHCP seemed to take care of most of my issues. Thanks. - Jonathan
When I execute a pg_connect() in a .php file, I get an error indicating that the function is not defined... That's because, in the Apache error log I'm getting the following: PHP Warning: Unable to load dynamic library '/usr/lib/pgsql.so' - libpq.so.2.0: cannot open shared object file: No such file or directory in Unknown on line 0 I have confirmed that my pgsql.so and libpq.so.* files are in my directory specified in the php.ini file. And that the exention for pgsql.so exists in the php.ini also. Would anyone know what I missed here? Thanks, Sean McCoy [EMAIL PROTECTED]
The error is that it can't find your libpq.so library, not your pgsql.so one. Where is libpq.so.2.0 on your system? If you are on a Linux box, edit /etc/ld.so.conf and add thatr directory and then run ldconfig. -Rasmus On Fri, 20 Jul 2001, Sean McCoy wrote: > When I execute a pg_connect() in a .php file, I get an error indicating that > the function is not defined... > > That's because, in the Apache error log I'm getting the following: > > PHP Warning: Unable to load dynamic library '/usr/lib/pgsql.so' - > libpq.so.2.0: cannot open shared object file: No such file or directory in > Unknown on line 0 > > I have confirmed that my pgsql.so and libpq.so.* files are in my directory > specified in the php.ini file. And that the exention for pgsql.so exists in > the php.ini also. > > Would anyone know what I missed here? > Thanks, > Sean McCoy > [EMAIL PROTECTED] > > > > >
Dear sirs, I have installed Apache 1.3.19 and PHP4 over Windows Millenium. #I put this in httpd.conf file: LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php .phtml I copied the files MSVCRT.DLL and PHP4TS.DLL to c:/windows/system. I wrote a script file named test.php with the following information: <? phpinfo(); ?> When I open the test.php file at my browser, I get a DOS window running a lot of HTML code quickly. My browser doesn`t show me anything. The documentation explains that file permissions on my php script, php.exe, php4ts.dll, php.ini or any php extensions I am trying to load are such that the anonymous internet user ISUR_<machinename> cannot access them. How do I change permissions for these files over Windows ME ? Thank you very much for your cooperation. Best regards, Emerald Shop Eng. Aldemar Martin B. Manager Calle 22 #20-26 Santa Fe de Bogota, D.C. - COLOMBIA Phone: (571) 562 29 11 Fax: (571) 268 45 60 email: [EMAIL PROTECTED]
Hi everybody, After installation of PHP 4.0.6 on a red hat 6.0 linux box with apache 1.3.14 as a DSO module, I can not locate the libphp4.so file on the system. Any hints ? Thanks in advance Pericles