php-install Digest 27 Jun 2002 18:59:36 -0000 Issue 905

Topics (messages 7505 through 7520):

Re: mysql socket
        7505 by: Rasmus Lerdorf

PHP, MySQL, Apache on Mandrake  (2.4 Krnl)
        7506 by: Ben
        7507 by: Chris Hewitt

trouble with Apache 2.0.39 & Php 4.2.1 & Mysql
        7508 by: Börkur Jónsson
        7511 by: Jennifer.Lawlor.loctite-europe.com
        7516 by: Carsten Gehling

PHP won't interpret in Apache+Perl+PHP
        7509 by: John W. Cocula
        7510 by: John W. Cocula

php & weblogic
        7512 by: INIsmail.dstsystems.com

upload of large file
        7513 by: B. PERRINE

PHP compile problems with LDAP
        7514 by: Stewart Dean

need both module and CGI version of PHP (debian)
        7515 by: Udo Giacomozzi
        7518 by: Jason Reid

Re: PHP and msql Error
        7517 by: user.domain.invalid

Urgent!!!!!
        7519 by: milton.ucol.mx

ndbm support broken?
        7520 by: Allen Hopkins

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]


----------------------------------------------------------------------
--- Begin Message ---
http://marc.theaimsgroup.com/?l=php-general&m=99794807518022&w=2

You can also set it in your php.ini file.

-Rasmus

On Wed, 26 Jun 2002, Peter Richards wrote:

> My mysql is running fine and points to /var/lib/mysql.sock on redhat7.2
>  My PHP4 is up and running and the myql.socket points to /tmp/mysql.sock
>
> I have looked in every file i can find on the disk that pertains to php and
> mysql. I cannot see where it is getting its direction from. ( I compiled
> it --with-mysql and it found the headers fine) my.cnf , httpd.conf and
> php.ini all point to /var/lib/mysql
>
> Any ideas where to go next. I dont want to have to alter every script to
> point to the right place for the socket file.
> peter richards
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Having a problem getting apache to work.

All I'm getting is permission denieds

Please help


--- End Message ---
--- Begin Message ---
Ben,

I think we need to know more. Is apache running (ps ax|grep httpd)? What 
are you doing to get the permission denied message? What is the test 
file you are using and what directory have you got it in (compared to 
DocumentRoot)? I'm not familiar with Mandrake but it should not be so 
different from RedHat in this respect.

Chris

Ben wrote:

>Having a problem getting apache to work.
>
>All I'm getting is permission denieds
>
>Please help
>
>
>


--- End Message ---
--- Begin Message ---
Hi i'm having trouble with the new installer in Apache 2.0.39, i want to
install php statically into Apache, but the installation instructions wich
follows php 4.2.1 are for apache 1.3

Anybody know where i can find this info, i'm a man that is not looking for a
quick answer i don't mind reading alot. Anybody know of any instructions?

Thanks,

Best Regards, Börkur
--- End Message ---
--- Begin Message ---

Hi !

Perhaps this address may be useful:

http://cvs.php.net/co.php/php4/win32/install.txt



Jennifer.



                                                                                       
                    
                      Börkur Jónsson                                                   
                    
                      <borkur@hanspeter        To:       "'[EMAIL PROTECTED]'" 
                    
                      sen.is>                   <[EMAIL PROTECTED]>            
                    
                                               cc:                                     
                    
                      27/06/02 13:01           Subject:  [PHP-INST] trouble with 
Apache 2.0.39 & Php 4.2.1 
                                                & Mysql                                
                    
                                                                                       
                    




Hi i'm having trouble with the new installer in Apache 2.0.39, i want to
install php statically into Apache, but the installation instructions wich
follows php 4.2.1 are for apache 1.3

Anybody know where i can find this info, i'm a man that is not looking for
a
quick answer i don't mind reading alot. Anybody know of any instructions?

Thanks,

Best Regards, Börkur

--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---
http://www.php.net/release_4_2_1.php

Excerpt from the text:
--------------------------
PHP 4.2.1 also has improved (but still experimental) support for Apache
version 2. We do not recommend that you use this in a production
environment, but feel free to test it and report bugs to the bug system.
--------------------------

- Carsten

> -----Oprindelig meddelelse-----
> Fra: Börkur Jónsson [mailto:[EMAIL PROTECTED]]
> Sendt: 27. juni 2002 14:02
> Til: '[EMAIL PROTECTED]'
> Emne: [PHP-INST] trouble with Apache 2.0.39 & Php 4.2.1 & Mysql
>
>
> Hi i'm having trouble with the new installer in Apache 2.0.39, i want to
> install php statically into Apache, but the installation instructions wich
> follows php 4.2.1 are for apache 1.3
>
> Anybody know where i can find this info, i'm a man that is not
> looking for a
> quick answer i don't mind reading alot. Anybody know of any instructions?
>
> Thanks,
>
> Best Regards, Börkur
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hi,
I am stumped on how to make mod_perl and mod_php to coexist peacefully. 
 I have rebuilt my Apache server according to instructions that ought to 
work (http://scoop.kuro5hin.org/story/2001/2/20/32827/4113), and the 
server reports that said modules are in place.

The top-level of the site is pure Perl, and I have Aliases and Locations 
that refer to sub-pages that contain .php files.  But instead of 
interpreting the .php files and sending back the results, the web server 
simply sends back the raw .php files, with the MIME type of 
application/x-httpd-php.  So it looks like the PHP module's content 
handler is never getting hit, or it's getting hit and failing.

I suspect that there is some magic incantation for my httpd.conf, but 
I've tried everything I can think of.

Pointers to any trails to follow would be most appreciated!

Many thanks,
John


--- End Message ---
--- Begin Message ---
Adam Voigt wrote:

>>Doubtful the PHP engine is getting hit at all, usually you would
>>get some pretty nasty errors or crashes if the PHP engine dies, but
>>if it's just sending raw code back, it's most likely a misconfiguration
>>of Apache. What configure line did you use on Apache?
>>
>  
>
I agree that it's got to be a config issue.  Here are the salient lines 
from my httpd.conf.  Any thoughts?  Thanks!

...
AddModule mod_php4.c
...
AddModule mod_perl.c
...
<IfModule mod_php4.c>
    AddType application/x-httpd-php .php4 .phtml .php .inc
    AddType application/x-httpd-php-source .phps
    php_admin_flag engine on
    php_admin_flag safe_mode off
</IfModule>
<IfModule mod_php3.c>
    AddType application/x-httpd-php3 .php3 .php .inc
    AddType application/x-httpd-php3-source .phps
</IfModule>
<IfModule mod_php.c>
    AddType application/x-httpd-php .phtml
</IfModule>
...
    Alias /store/ "/usr/local/apache/htdocs/store/"
    <Directory "/usr/local/apache/htdocs/store">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride All
        SetHandler default-handler
        <Files ~ "\.inc$">
            Order allow,deny
            Deny from all
            Satisfy All
        </Files>
    </Directory>
...
<Location />
  ...
  SetHandler perl-script
  ...
</Location>
<Location /store>
    Options Indexes FollowSymlinks MultiViews
    AllowOverride Options All
    SetHandler default-handler
</Location>



--- End Message ---
--- Begin Message ---

Hi I try to install/configure PHP to run under Weblogic, but failed to do
so. Does anyone know how to install PHP under Weblogic. I would appreciate
if somebody can let me know how to do that. Practical assistance or
reference web sites would be helpful. Thanks in advance!!!

Below is the details:

environment:  Windows 2000 Server
php version: 4.1.2
web server: Bea Weblogic 5.1


--- End Message ---
--- Begin Message ---
I have some problems with upload of file larger than 3 MB with php.
The linux box is a Debian potato, with apache 1.3.24 (1.3.26 soon)
self_compiled and php 4.2.1 as DSO.

The php.ini options : memory_limit, post_max_size and
upload_max_file_size are well configured

Is anyone may help ?

--- End Message ---
--- Begin Message ---
I appear to be having problems with my PHP compile ldap linkage...

First run through with my compile, I see two errors:

====1) In making zend....
"zend_extensions.c", line 33.16: 1506-068 (W) Operation between types "void*" and 
"int" is not allowed.

== but everything completes and goes on....further on:
Target "all" is up to date.

=====2) but ldap fails
Making all in ldap
          /bin/sh /usr/php/php-4.2.1/libtool --silent --mode=compile cc  -I. 
-I/usr/php/php-4.2.1/ext/ldap -I/usr/php/php-4.2.1/m
ain -I/usr/php/php-4.2.1 -I/usr/HTTPServer/include -I/usr/php/php-4.2.1/Zend 
-I/usr/ldap/include -I/usr/php/php-4.2.1/ext/mysql
/libmysql -I/usr/php/php-4.2.1/ext/xml/expat  -DAIX=43 
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE
_EXPAT -DNO_DL_NEEDED -I/usr/php/php-4.2.1/TSRM -g -prefer-pic  -c ldap.c
"ldap.c", line 216.9: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1620.14: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1620.14: 1506-051 (S) Case expression must be a valid integral 
constant.
"ldap.c", line 1715.14: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1715.14: 1506-051 (S) Case expression must be a valid integral 
constant.
"ldap.c", line 1719.29: 1506-068 (W) Operation between types "void*" and "int" is 
not allowed.
make: 1254-004 The error code from the last command is 1.
Stop.

So I look in /usr/ldap/include and grep LDAP_OPT_RESTART * and find nothing.

So I have perhaps a bigger question....what ldap is being expected in this build? 
The LDAP configure options don't mention any qualification as to what ldap is 
expected.
     "--with-ldap[=DIR] Include LDAP support. DIR is the LDAP base install directory."
My configure string was:
  ./configure --with-apxs=/usr/HTTPServer/bin/apxs --with-ldap=/usr/ldap
I have a working LDAP server....which serves emaill addresses to IMAP clients just 
fine and to which our developer can bind and work data from a previously setup Sun 
machine.

The environment I'm working to install PHP on is an IBM RS/6000 running AIX5.1L. 
The webserving SW is IBM's rebranded (to HTTPServer) Apache V1.3.19.  The LDAP is 
IBM's SecureWay....but that's just the name....it's actually slapd underneath 
everything.  I would really, really, like to have IBM own the HTTP and Apache (be 
responsible for generating updates, etc) and only own PHP....rather than compiling 
everything and being responsible for all the updates, security, etc.

So, what gives?  Am I right in assuming that the compile is missing some includes 
that another LDAP has?  What is the other (unspecified) LDAP?

Help.


===
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York  12504
[EMAIL PROTECTED]  voice: 845-758-7475, fax: 845-758-7035


--- End Message ---
--- Begin Message ---
I have a web server (debian 2.2) that already runs Apache and PHP4 module 
version. Everything has been configured using debian packages and works 
fine.

Now I also need the CGI version of PHP because I want to use it on the 
command line and in a selfmade program that is only able to use CGI.

I can't find any PHP sources installed on the system and webmin won't let 
me install php-cgi as there is already the "php" package installed.

How do I install or reconfigure PHP so that I have both versions?

I'm afraid of completely reinstalling PHP by hand as it is necessary to 
work correctly for the web server.

What should I do?

Thanks,
Udo
--- End Message ---
--- Begin Message ---
just downloa dthe source, and compile it, and make sure you dont tell it to
use apxs, it will compile the cgi binary. install that, and you will have
both, thats how my systems are setup, and ive never ran into a problem where
compiling the cgi binary interfered with teh apache module.


----- Original Message -----
From: "Udo Giacomozzi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 10:07 AM
Subject: [PHP-INST] need both module and CGI version of PHP (debian)


> I have a web server (debian 2.2) that already runs Apache and PHP4 module
> version. Everything has been configured using debian packages and works
> fine.
>
> Now I also need the CGI version of PHP because I want to use it on the
> command line and in a selfmade program that is only able to use CGI.
>
> I can't find any PHP sources installed on the system and webmin won't let
> me install php-cgi as there is already the "php" package installed.
>
> How do I install or reconfigure PHP so that I have both versions?
>
> I'm afraid of completely reinstalling PHP by hand as it is necessary to
> work correctly for the web server.
>
> What should I do?
>
> Thanks,
> Udo
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
The error is in your MySql statement.  Sounds like you are calling the 
wrong data field / column.  Check you spelling and syntax to make sure 
all of that is in order.  If you can't find it, copy it and post it. 
We'll help you out

gl -- Seth

Comp Boy wrote:

>  I am getting the following error:
>  
>  Warning: Supplied argument is not a valid mSQL result resource in
>  /usr/local/apache/htdocs/inc/listings.inc on line 24
>  
>  listings.inc: 24
>  $numRows = msql_numrows( $result );
>  
>  The manual on php.net says that it takes no variables msql_numrows(void)
>  however it says it is another version of msql_num_rows(int msql);
>  
>  The code I am trying to run, runs perfectly fine on another one of our
> systems.  I was just setting up a development server and now I am getting
> this problem.  The specs are the same except for the version of Apache
> production is 1.3.9 and development is 1.3.26
>  
>  PHP vesrion 4.1.2
>  
>  ./msqladmin version
>  Version Details :-
>          msqladmin version       2.0.11
>          mSQL server version     2.0.11
>          mSQL protocol version   23
>          mSQL connection         Localhost via UNIX socket
>          Target platform         Linux-2.2.14-5.0-i686
> 
> PHP was configured:
> ./configure --with-apxs=/usr/local/apache/bin/apxs --with-msql
> 
> msql was a default install.
> 
> Does anyone know what I did wrong?  Do I need to recompile with some
> different options?
> 
> TIA
> Jason
> 
> 

--- End Message ---
--- Begin Message ---
I use :
Server:window 2000 server 
IIS 5.0
PHP version :php-4.2.1-Win32
set DSN in Data Source(ODBC).User DSN =test and point to
Microsoft Access (*.mdb)   when i use this code

 
$con=odbc_connect("ingles","","",SQL_CUR_USE_ODBC);
  
It has error :
Warning: SQL error: [Microsoft][Administrador de controladores ODBC] No se 
encuentra el nombre del origen de datos y no se especificó ningún controlador 
predeterminado, SQL state IM002 in SQLConnect in c:\inetpub\wwwroot\hola.php on

line 2

I DSN Ingles Work Fine, I revice all documentation in the site but, I can't 
make work. Please Help me.
--- End Message ---
--- Begin Message ---
I can't find a way to configure PHP-4.2.1 so dbmopen() will
work on my existing NDBM databases that I've been using
with PHP-3.1.18.  I'm trying to upgrade from 3.1.18 to 4.2.1
on Solaris 8, and Apache 1.3.26.

I started out not using any of the "--with-*db*" options,
as they were not needed when I built PHP 3.1.18.  But the
resulting build generated web pages saying,

"Call to undefined function: dbmopen() in blah.php3 on line xxx".

On the dbmopen() manual page at
http://www.php.net/manual/en/function.dbmopen.php, a user's
note says you have to use --with-ndb and --with-db in
combination.  (This may be a typo for --with-ndbm?)

I've tried the following combinations of configure options,
with the following results:

    with-db, with-ndb:
    with-db, with-ndbm:
        With either one, it tries to link in libgdbm, the
        GNU DBM library.
    with-ndbm:
        "undefined function: dbmopen()" at runtime.

I think something is seriously broken.  I searched for
"undefined function: dbmopen()" on Google, looking for
discussions of this problem, and it came up with hundreds
of pages displaying this error, so it looks like a
wide-spread problem.

What's up?  Does anybody understand this?

-Allen
--- End Message ---

Reply via email to