php-install Digest 20 Feb 2002 07:11:36 -0000 Issue 709
Topics (messages 6057 through 6070):
mysql_connect: undefined function
6057 by: Ryan Snow
Re: php on server without root access
6058 by: José A. Guzmán
6061 by: Chris Hewitt
6062 by: Hunter, Ray
error configurating php-4.1.1
6059 by: Tomas Nicolajsen
Re: Apache2.0 + PHP4.1 - Missing Variables
6060 by: programmer.bethie.net
Php Running as servlet under Tomcat 3.3a in Win NT
6063 by: Rodrigo Leiva G
Help me configure php please.
6064 by: Ryan Snow
6066 by: José A. Guzmán
6067 by: Ryan Snow
6068 by: Jim Thome
Thanks for the email (fwd)
6065 by: Ryan Snow
Mysql tables creation error for 3.0
6069 by: José A. Guzmán
Compiling the PHP sources
6070 by: Marc Cuypers
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 ---
I get a fatal error that reads:
call to undefined function: mysql_connect() in /....
Can anyone tell me what that means and how to fix it?
Thanks
--- End Message ---
--- Begin Message ---
Chris Hewitt wrote:
> Hello all,
>
> Thanks for reading this. I have an account on a Compaq Raq server
> (running linux) and would like to use php. I do not have root access,
> the computer does not have php or a compiler. I would need to compile
> php on my own computer (running RedHat 7.2) and install resulting
> files in my home directory on the server manually.
>
> From what I have heard on this list and elsewhere, it should be
> possible to compile php on my computer and then install it. So far all
> I have not been able to get this to work.
>
> I've looked through the php manual, on phpbuilder, emailed someone who
> asked a similar question in 2000 (the email bounced) and am presently
> stuck as to how to do this.
>
> Does anyone know whether there there some instructions somewhere to do
> this? There probably are and its me not looking in the right place so
> please excuse me if I have missed something obvious.
>
> Thanks in advance for any help.
>
> Regards
>
> Chris
>
>
You don't need root access to install and run php/apache.
add a: --prefix=/your/home/dir/apache to the ./configure of apache you
are using
make && make install
then
and add/change --with-apxs=../apache/bin/apxs to the ./configure of php
(assuming you installed the php source at the same directory level as
apache, of course).
then make && make install
and make a tarball of the directory where you installed apache and untar
that in the server you want to play. You should change the default port
of apache to something higher than 1024 (8080 is commonly used as an
alternative) and you are all set.
If this doesn't make any sense to you, read the INSTALL docs on the
apache and php distributions, you should have done that anyway.
--- End Message ---
--- Begin Message ---
Jose,
Sorry, my original email should have been clearer. The server already
has apache (without php). Several companies are using this (virtual web
hosting) and I do not want to touch apache itself. I meant to specify
that I want php as a cgi in my home directory (no write access outside
it) but did not make that very clear. There is no compiler so no "make"
possible.
I have done a compilation on my computer (in a directory that is a copy
of the one on the server I want php to end up on). It works on my
computer, I've tar'ed it up, ftp'd across and untar'd it there. Added
php.ini and .htaccess but the best I have so far is an "internal server
error" reported. Probably some library dependency due to different
versions or locations.
Thanks for your help, everyone. Tomorrow is another day.
Regards
Chris
José A. Guzmán wrote:
> You don't need root access to install and run php/apache.
> add a: --prefix=/your/home/dir/apache to the ./configure of apache
> you are using
> make && make install
--- End Message ---
--- Begin Message ---
If you want apache to handle it then you need access to configure apache for
php. You can have cgi scripts that access you php executable then pass that
information to your html page. However, you will not be able to use apache
for this...
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-----Original Message-----
From: Chris Hewitt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 1:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] php on server without root access
Jose,
Sorry, my original email should have been clearer. The server already
has apache (without php). Several companies are using this (virtual web
hosting) and I do not want to touch apache itself. I meant to specify
that I want php as a cgi in my home directory (no write access outside
it) but did not make that very clear. There is no compiler so no "make"
possible.
I have done a compilation on my computer (in a directory that is a copy
of the one on the server I want php to end up on). It works on my
computer, I've tar'ed it up, ftp'd across and untar'd it there. Added
php.ini and .htaccess but the best I have so far is an "internal server
error" reported. Probably some library dependency due to different
versions or locations.
Thanks for your help, everyone. Tomorrow is another day.
Regards
Chris
José A. Guzmán wrote:
> You don't need root access to install and run php/apache.
> add a: --prefix=/your/home/dir/apache to the ./configure of apache
> you are using
> make && make install
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
When I try to configure php-4.1.1 with my
Apache-AdvancedExtranetServer/1.3.20 I get the following error:
configure: error: no acceptable cc found in $PATH
[root@localhost php-4.1.1]# ./configure --with-mysql -with-apxs
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnuoldld
checking for gawk... gawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP
parsers.
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
[root@localhost php-4.1.1]#
Can someone please assist me?
I am using Mandrake 8.1.
-
Tomas Nicolajsen
--- End Message ---
--- Begin Message ---
Final Note:
I just pulled down the latest snap, and I still got the php filter message, So
I went snooping and found that I still had the addtype directive in the apache
configuration, commented those out and the ' The PHP Filter did not receive
suitable input data ' Error went away
--- End Message ---
--- Begin Message ---
Hi everybody:
Look i'm new in php calling Java. I wanna load PHP as a Servlet from
Tomcat, but when i tried to run an
test php script i get this error from tomcat screen: "2002-02-19
15:01:00 - Ctx() : Class not found: net.php.servlet"
This message says my net.php.servlet class it's not found, now look at
my config files:
(by the way, my system:
Win NT Client SP6, php 4.0.6, JDK 1.3.1, Tomcat 3.3a)
PHP.INI (java
related)****************************************************
;extension=php_interbase.dll
extension=php_java.dll /* java extension */
;extension=php_ldap.dll
[Java]
java.class.path =
"d:\Php4\java\php_java.jar;d:\Php4\java\phpsrvlt.jar;d:\SQLLIB\java\db2java.zip;d:\SQLLIB\java\runtime.zip;d:\SQLLIB\java\sqlj.zip;d:\drivers\Jdbc\DB2_AS400\Jtopen_2_03\lib\jt400.jar;d:\php4\java\;d:\paquetes\;"
java.home = c:\jdk1.3.1
;java.library = c:\jdk1.3.1\jre\bin\hotspot\jvm.dll
java.library = c:\jdk1.3.1\jre\bin\server\jvm.dll
java.library.path =
".;d:\Php4\extensions\;c:\jdk1.3.1\lib\;c:\jdk1.3.1\jre\lib\;d:\Sqllib\java\;d:\drivers\Jdbc\DB2_AS400\Jtopen_2_03\lib\;d:\SQLLIB\LIB\;d:\SQLLIB\bin\;"
PHP.INI (END)****************************************************
tomcat.conf (jserv)
*****************************************************************
LoadModule jserv_module modules/ApacheModuleJServ.dll
<IfModule mod_jserv.c>
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultHost localhost
ApJServDefaultPort 8007
#
# Mounting a single smart context:
#
# (1) Make Apache know about the context location.
Alias /examples D:\jakarta-tomcat-3.3a\webapps\examples
# (2) Optional, customize Apache context service.
<Directory "D:\jakarta-tomcat-3.3a\webapps\examples">
Options Indexes FollowSymLinks
# (2a) No directory indexing for the context root.
# Options -Indexes
# (2b) Set index.jsp to be the directory index file.
# DirectoryIndex index.jsp
</Directory>
# (3) Protect the WEB-INF directory from tampering.
<Location /examples/WEB-INF/>
AllowOverride None
deny from all
</Location>
# (4) Instructing Apache to send all the .jsp files under the context to
the
# jserv servlet handler.
<LocationMatch /examples/*.jsp>
SetHandler jserv-servlet
</LocationMatch>
# (5) Direct known servlet URLs to Tomcat.
ApJServMount /examples/servlet /examples
# (6) Optional, direct servlet only contexts to Tomcat.
ApJServMount /servlet /ROOT
</IfModule>
tomcat.conf (END)
*****************************************************************
web.xml (tomcat)
*****************************************************************
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!--
***** Intervencion con adicion de Servlet PHP4
-->
<servlet>
<servlet-name>php</servlet-name>
<servlet-class>net.php.servlet</servlet-class>
</servlet>
<servlet>
<servlet-name>php-formatter</servlet-name>
<servlet-class>net.php.formatter</servlet-class>
</servlet>
<!--
***** FIN Intervencion con adicion de Servlet PHP4
-->
<servlet>
<servlet-name>
snoop
</servlet-name>
<servlet-class>
SnoopServlet
</servlet-class>
<!--
<init-param>
<param-name>foo</param-name>
<param-value>bar</param-value>
</init-param>
-->
</servlet>
<servlet>
<servlet-name>
servletToJsp
</servlet-name>
<servlet-class>
servletToJsp
</servlet-class>
</servlet>
<!--
***** Intervencion con adicion de Servlet Mapping para PHP4
-->
<servlet-mapping>
<servlet-name>php</servlet-name>
<url-pattern>*.php</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>php-formatter</servlet-name>
<url-pattern>*.phps</url-pattern>
</servlet-mapping>
<!--
***** FIN Intervencion con adicion de Servlet Mapping para PHP4
-->
<servlet-mapping>
<servlet-name>
snoop
</servlet-name>
<url-pattern>
/snoop
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
snoop
</servlet-name>
<url-pattern>
/snoop/*
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
snoop
</servlet-name>
<url-pattern>
*.snp
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
servletToJsp
</servlet-name>
<url-pattern>
/servletToJsp
</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>
http://java.apache.org/tomcat/examples-taglib
</taglib-uri>
<taglib-location>
/WEB-INF/jsp/example-taglib.tld
</taglib-location>
</taglib>
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<!-- Define the context-relative URL(s) to be protected -->
<url-pattern>/jsp/security/protected/*</url-pattern>
<!-- If you list http methods, only those methods are protected -->
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<!-- Anyone with one of the listed roles may access this area
-->
<role-name>tomcat</role-name>
<role-name>role1</role-name>
</auth-constraint>
</security-constraint>
<!-- Default login configuration uses BASIC authentication -->
<!--
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Example Basic Authentication Area</realm-name>
</login-config>
-->
<!-- Form-based login is enabled by default. If you wish to
try Basic authentication, comment out the <login-config>
section below and uncomment the one above. -->
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/jsp/security/login/login.jsp</form-login-page>
<form-error-page>/jsp/security/login/error.jsp</form-error-page>
</form-login-config>
</login-config>
</web-app>
web.xml (END)
*****************************************************************
CAN ANYONE HELP ME, PLEASE.
THANKS IN ADVANCE.
Ralg
--- End Message ---
--- Begin Message ---
Hi, Im brand new to the list--just joined today. Working on a program
for my cosmic ray/physics department, and can't seem to get out of the
starting blocks. For some reason that seems quite strange to me, when I
attempt to mysql_connect(...) it says functin undefined. Isn't mysql
functionality included with the core PHP installation?
Thanks for any help you can give me, information or howto stuff.
ryan
--- End Message ---
--- Begin Message ---
On Tue, 19 Feb 2002, Ryan Snow wrote:
>
> Hi, Im brand new to the list--just joined today. Working on a program
> for my cosmic ray/physics department, and can't seem to get out of the
> starting blocks. For some reason that seems quite strange to me, when I
> attempt to mysql_connect(...) it says functin undefined. Isn't mysql
> functionality included with the core PHP installation?
>
> Thanks for any help you can give me, information or howto stuff.
>
> ryan
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Ryan, did you ./configured php with the option: --with-mysql ??
Jose
--- End Message ---
--- Begin Message ---
It was done before I got here, so Im not sure. Is there a way to find out?
thanks.
Ryan
On Tue, 19 Feb 2002 [EMAIL PROTECTED] wrote:
> On Tue, 19 Feb 2002, Ryan Snow wrote:
>
> >
> > Hi, Im brand new to the list--just joined today. Working on a program
> > for my cosmic ray/physics department, and can't seem to get out of the
> > starting blocks. For some reason that seems quite strange to me, when I
> > attempt to mysql_connect(...) it says functin undefined. Isn't mysql
> > functionality included with the core PHP installation?
> >
> > Thanks for any help you can give me, information or howto stuff.
> >
> > ryan
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> Ryan, did you ./configured php with the option: --with-mysql ??
>
>
> Jose
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Ryan-
Need more info. What OS are you on? Linux? Win2K? Unix?
Also, set up a script in your htdocs directory with the following:
<?phpinfo();?>
Reply back with the configure line of php.
--
Jim
>>> Ryan Snow <[EMAIL PROTECTED]> 02/19/02 04:34PM >>>
Hi, Im brand new to the list--just joined today. Working on a program
for my cosmic ray/physics department, and can't seem to get out of the
starting blocks. For some reason that seems quite strange to me, when I
attempt to mysql_connect(...) it says functin undefined. Isn't mysql
functionality included with the core PHP installation?
Thanks for any help you can give me, information or howto stuff.
ryan
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Is there any way to get this wacko to quit emailing me this every time I
post?
---------- Forwarded message ----------
Date: Tue, 19 Feb 2002 16:25:46 -0800
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: Ryan Snow <[EMAIL PROTECTED]>
Subject: Thanks for the email
Do you have the money to do what you want and the time to do it? If not, go here!
http://www.ezinfocenter.com/207060
Free Life Insurance Quote
We would like to offer you a free life insurance quote from Life Quotes, Inc.
http://www.lifequotesinc.com
--- End Message ---
--- Begin Message ---
Hi all
I'm using MySQL 3.22.32
When running the sql scripts in horde,
the horde_prefs needs : primary key (pref_uid, pref_scope, pref_name)
but MySQL complains with:
ERROR 1071: Specified key was too long. Max key length is 256
I created the table with a primary key of only pref_uid anyway to see if
I could get away with this limitation, but when activating 'sql' preferences
in horde, IMP just states session terminated and does not allow logins.
If I create the table with primary key (pref_scope, pref_name) only MySQL
does not complain.
Can I reduce the size of pref_uid? is there a workaround? I would'nt
like to
'upgrade' MySQL to a different version if possible...
This is what 'should' be created:
CREATE TABLE horde_prefs (
pref_uid char(255) not null,
pref_scope char(16) not null default '',
pref_name char(32) not null,
pref_value text null,
primary key (pref_uid, pref_scope, pref_name)
);
--- End Message ---
--- Begin Message ---
Hello,
I'm using FreeBSD 4 on an intel machine.
I'd like to use phpgroupware. It makes use of IMAP. How can I find out
that PHP4 on my server is compiled with the IMAP option?
I tried to compile the PHP4 source, and it complains about an rfc822.h file.
What IMAP sources should I install?
Marc
--- End Message ---