php-install Digest 19 May 2001 06:17:41 -0000 Issue 315

Topics (messages 3199 through 3210):

Re: PHP installed on JAU's home Linux pc
        3199 by: Jim U'Ren

Apache 2.0 & PHP 4.0.5 configure problem.
        3200 by: tnelson.mail.unomaha.edu

PHP4.0.5 CGI and NS Enterprise
        3201 by: Galvin, Max

arrrrgggggghhhhh - un-bloody-defined-bloody-references
        3202 by: Kev Mul

Re: windows 2k pro and PHP
        3203 by: Ian Pawson

Re: Problems trying to add LDAP to PHP
        3204 by: Steve Holden

Apache 1.3.19 error.
        3205 by: tnelson.mail.unomaha.edu
        3206 by: Julie Meloni

Problems installing mcrypt 2.4.10 on Linux Redhat 6.1
        3207 by: SAMUEL

Basic Installation Help Needed...
        3208 by: Greg Barber

Problems hooking php to mysql
        3209 by: Armando Colpa

--with-java
        3210 by: cel1

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]


----------------------------------------------------------------------


2001-05-18 06:36

Installed PHP on the SuSE Linux box at home.  PHP scripts downloaded
from Mandrake box at JPL initally did not work.  After some "thrashing"
I discovered a number of PHP3 files in the Apache root directory
(/usr/local/httpd/html). 

Renaming PHP scripts to extensions with PHP3 got them all working.  

A script install with PHP on SuSE (probe.php3) generated three error
messages related to failed opening of sql functions (table.inc,
sqlquery.inc and page_open() - - need to investiage further.


-- 
---------------------------------
Jim U'Ren
KM Standards Working Group Lead
Jet Propulsion Laboratory
Pasadena, CA   91109
e-mail: [EMAIL PROTECTED]
Phone: 818-354-5052




   Hello All,

   I've seen a few questions the same as mine, but no answers.  Here is the
situation.

   I'm configuring & installing Apache 2.0, configured with:
     --enable-module=so --enable-rule=SHARED_CORE
--prefix=/usr/local/apache

   I'm configuring PHP 4.0.5 with:
     --with-apxs=/usr/local/apache/bin/apxs --enable-short-tags
--with-mysql=no --with-pgsql

   Apache installs fine, but the PHP configure statement above gives me the
apxs "usage" information, then that it can't run apxs.  Then it tells me to
verify
     1) Perl is installed (it is.)
     2) Apache was not compiled with DSO support (it was - correctly?)
     3) 'apxs' is not in your path (it wouldn't give me the usage screen
then would it?)

   My opinion lies with #2, that something is different in Apache 2.0 that
is preventing the DSO from functioning correctly.  Has anybody successfully
done an install under these two versions?  Thanks.

{-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-}
 }                            http://www.geocities.com/~tdnelson/  {
{           Todd D. Nelson        mailto:[EMAIL PROTECTED]   }
 }      Systems Administrator                Phone: (402)554-4973  {
{    Univ Affairs & Communications             Fax: (402)554-6015   }
 }  University of Nebraska at Omaha                                {
{-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-}






I've just built PHP4.0.5 as a cgi on Solaris 2.6/Netscape Enterprise 3.6
based server. Running a test file through the cgi works fine but as soon as
I try to configure the cgi-bin to use it I get an error 500 and the
following in my Netscape error logs:

[18/May/2001:15:11:01] failure (27298): for host xxx.xxx.xxx.xxx trying to
GET /cgi-max/php.cgi/myfile.php, cgieng_scan_headers reports: the CGI
program /usr/local/phpbuild/php.cgi did not produce a valid header (program
terminated without a valid CGI header. Check for core dump or other abnormal
termination) 


Anyone got any clues what the hell is going on?

Thanks

Max




need help. at wits end. don't know what else to do.  spent all day trying to
get this to work....

I'm trying to get PHP 4.05 to have a threesome with Apache 1.3.19 and
PostgreSQL 7.1 on Redhat 6.1.
But Apache is having none of it.   Output from the build is below:

gcc  -DLINUX=22 -I/usr/local/src/php-4.0.5 -I/usr/local/src/php-4.0.5/main -
I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/Zend -I/usr/local/
src/php-4.0.5/
Zend -I/usr/local/src/php-4.0.5/TSRM -I/usr/local/src/php-4.0.5/TSRM -I/usr/
local/src/php-4.0.5 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`
\
      -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/proxy/libproxy.a modules/php4/libphp4.a main/libmain.a
./os/unix/libos.a ap/libap.a  lib/e
xpat-lite/libexpat.a  -Wl,-rpath,/usr2/pgsql/lib  -rdynamic -L/usr2/pgsql/li
b -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam  -l
dl -lpq -lreso
lv -lm -ldl -lcrypt -lnsl  -lresolv   -lm -lcrypt -lndbm
modules/php4/libphp4.a(mod_php4.o): In function
`sapi_apache_register_server_variables':
/usr/local/src/php-4.0.5/sapi/apache/mod_php4.c:236: undefined reference to
`php_register_variable'
/usr/local/src/php-4.0.5/sapi/apache/mod_php4.c:251: undefined reference to
`php_register_variable'
/usr/local/src/php-4.0.5/sapi/apache/mod_php4.c:254: undefined reference to
`php_register_variable'
modules/php4/libphp4.a(main.o): In function `php_hash_environment':
/usr/local/src/php-4.0.5/main/main.c:1019: undefined reference to
`php_import_environment_variables'
/usr/local/src/php-4.0.5/main/main.c:1027: undefined reference to
`php_treat_data'
/usr/local/src/php-4.0.5/main/main.c:1034: undefined reference to
`php_treat_data'
/usr/local/src/php-4.0.5/main/main.c:1041: undefined reference to
`php_treat_data'
/usr/local/src/php-4.0.5/main/main.c:971: undefined reference to
`php_register_variable'
/usr/local/src/php-4.0.5/main/main.c:974: undefined reference to
`php_register_variable'
/usr/local/src/php-4.0.5/main/main.c:971: undefined reference to
`php_register_variable'
/usr/local/src/php-4.0.5/main/main.c:974: undefined reference to
`php_register_variable'
modules/php4/libphp4.a(rfc1867.o): In function `safe_php_register_variable':
/usr/local/src/php-4.0.5/main/rfc1867.c:53: undefined reference to
`php_register_variable'
modules/php4/libphp4.a(rfc1867.o): In function
`safe_php_register_variable_ex':
/usr/local/src/php-4.0.5/main/rfc1867.c:61: undefined reference to
`php_register_variable_ex'
modules/php4/libphp4.a(php_content_types.o): In function
`php_default_post_reader':
/usr/local/src/php-4.0.5/main/php_content_types.c:40: undefined reference to
`php_std_post_handler'
modules/php4/libphp4.a(string.o): In function `php_if_parse_str':
/usr/local/src/php-4.0.5/ext/standard/string.c:2647: undefined reference to
`php_treat_data'
/usr/local/src/php-4.0.5/ext/standard/string.c:2654: undefined reference to
`php_treat_data'
modules/php4/libphp4.a(tsrm_virtual_cwd.o): In function `virtual_file_ex':
/usr/local/src/php-4.0.5/TSRM/tsrm_virtual_cwd.c:367: undefined reference to
`tsrm_strtok_r'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1


My libs are:
LIBS1=  -Wl,-rpath,/usr2/pgsql/lib  -rdynamic -L/usr2/pgsql/lib -Lmodules/ph
p4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam  -ldl -lpq -lreso
lv -lm -ldl -lcrypt -lnsl  -lresolv   -lm -lcrypt -lndbm



Pleeeeeeeease, if anyone knows what is going on, let me know.  I'm getting
very very desperate.


Thanx

Kev.






You need to install the CGI version. Just run the Windows installer and it
does everything for oyu. No need to set anything up at all.

--
Ian Pawson
""McShen"" <[EMAIL PROTECTED]> wrote in message
9e1j9n$ake$[EMAIL PROTECTED]">news:9e1j9n$ake$[EMAIL PROTECTED]...
> i was trying to install php on windows 2k pro.
> i got this message when i was trying to run the test scrpt
>
> "PHP CGI binary (\php) is not executable. Please compile PHP as a CGI
> executable and try again. "
>
> why is that?
>
> and should i read the instruction for IIS 4.0+ (isapi) or  IIS 4.0+ (CGI)
>
>
>
> --
> 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]
>






Alfred Lerch wrote:
>
> I run into endless compile problems with the Netscape/iPlanet LDAP and
> switched to OpenLDAP which worked immediately.

Thanks: now working!

Kind regards,
Steve




   Configuring and installing PHP4 for DSO.  I am receiving the following
startup error:

"Syntax error on line 205 of httpd.conf (LoadModule command)
Can not load libexec/libphp4.so into server: libpq.so.2: cannot load shared
object file: No such file or directory"

   libphp4.so does exist in that directory.  Any ideas?  Thanks.

{-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-}
 }                            http://www.geocities.com/~tdnelson/  {
{           Todd D. Nelson        mailto:[EMAIL PROTECTED]   }
 }      Systems Administrator                Phone: (402)554-4973  {
{    Univ Affairs & Communications             Fax: (402)554-6015   }
 }  University of Nebraska at Omaha                                {
{-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-}






[EMAIL PROTECTED] wrote:

>    Configuring and installing PHP4 for DSO.  I am receiving the following
> startup error:
> 
> "Syntax error on line 205 of httpd.conf (LoadModule command)
> Can not load libexec/libphp4.so into server: libpq.so.2: cannot load shared
> object file: No such file or directory"
> 
>    libphp4.so does exist in that directory.  Any ideas?  Thanks.

Find libpq.so.2 (it's in the postgresql directory somewhere; I just did 
this same thing the other day)
Put entry in /etc/ld.so.conf
run ldconfig
restart apache; it should be just fine.

-- 
+----------------------------------------+
| Julie Meloni ([EMAIL PROTECTED])     |
|                                        |
| "PHP Essentials" and "PHP Fast & Easy" |
|       http://www.thickbook.com         |
+----------------------------------------+





Hi,

I have installed mcrypt module on PHP 4.0.4pl1 and afterwards I follow the
installation instructions for PHP4(Apache Module Version) and when I tried
to configure the Apache 1.3.14 with:
./configure --activate-module=src/modules/php4/libphp4.a

I couldn't find libphp4.a file, Do you Know any other way to set up mcrypt
on PHP?

Regards,


Samuel.





I need a PHP guru... or even someone that knows basic PHP scripting to 
help me figure out why the number of comments on the following links 
stays at zero for everything except the first entry.

For example, if I put in a new first entry, the comments then changes to 
zero and the new first one will begin adding up comments.

Email me for a better explanation, but feel free to go to the site and 
try and figure it out.

http://commixion.gbdesigns.com/journal/weblog/archive/blogger.php
The hosting company is Communitech.com using PHP 3.04 or something...

Any help would be appreciated.

Greg





Hi

I wasn't the person that installed mysql on our box. 
I can tell you that the directory structure is not the
way I'm used to seeing it.  The bottom line is, when I
compile php, php is not able to find the mysql install
that we have.  I'll get more specific. If I assume
that mysql is installed in the "default" directory
location (I have no idea what that is), php compiles
properly.  However, when I try and create a php page
that connects to the db, it continually looks for the
mysql.sock file under /tmp, which I believe is
default.  However, ours is in another location, so it
would appear that the installation is not in the
default location.  So, I looked for the "mysql"
exectuable (you know, the client program) and found it
under /usr/bin.  So when I configured php, this time I
specified the directory as /usr/bin.  This time, php
didn't configure at all and complained that it
couldn't find the headers.  So, I looked on another
machine where everything is intalled in one directory
tree (I don't know why this wasn't done in the first
place). and found a bunch of files that ended in .h. 
These should be the header files, I thought, and
searched for those same files on the problem machine. 
I found only one copy of them and tried reconfiguring
with this new directory.  Same error message.  At this
point I'm stuck.  It appears as though however did the
install blasted different parts of the install all
over the place (maybe they used an RPM?).  Anyway, I
don't know what to put for the mysql location.  I
wrote a php script with just the phpinfo function. 
Basically, everything is listed as "no value" for the
mysql section, if that helps.  Thanks in advance for
any help that you guys can give.

Armando  

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




I did my ./configure using --with-java=/usr/local/jdk118_v1, where my
jdk is installed.  PHP can't find the java class, i.e.,

$system = new Java("java.lang.System");

fails, with a message that it can't instantiate the nonexistent class
'java'.  I think I need to do something with php.ini, but I haven't
found what it should be.

(Thanks to Matthew Schroebel for help on my last query.)

Curtis Lacy
[EMAIL PROTECTED]



Reply via email to