php-install Digest 18 Mar 2003 18:57:23 -0000 Issue 1295
Topics (messages 10355 through 10357):
PROBLEM CREATING MODULE FOR APACHE
10355 by: Iker alonso
Failiure on Win2000/Apache configuration
10356 by: James Smith
Re: problem connecting PHP w/ODBC
10357 by: Beverly Steiner
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 ---
Hello
I had a problem with PHP's "make install"
īm updating some of my services on RedHat 8, everything is fine except that
i download the last version of php, i installed but when i try to made a
module for apache i get this error: *** No rule to make target
`/usr/local/apache/php-4.3.1/ext/ctype/ctype.c', needed by
`ext/ctype/ctype.lo'.
so whats wrong?
thanks in advance
Environment:
> Red Hat 8
> Apache 2.0.44
> Z
> PHP was configured with:
1. If you have not yet installed Apache, run the following command as root
from
the Apache source distribution directory:
./configure --prefix=/usr/local/web/apache
You can add other options if you wish to use them. Run ./configure --help
to determine whether any other option is suitable for your needs.
2. Now from the PHP source distribution directory run:
./configure --with-apache=../httpd-version \
--with-mysql= /usr/include/mysql directory.
3. Run the cp php.ini-dist /usr/local/lib/php.ini command to copy
the php.ini-dist file to /usr/local/lib as php.ini . This is the PHP
configuration file that is discussed later in the "Configuring PHP By Using
php.ini" section.
4. Run make &&make install to compile and install the PHP side of the
source code.AND HERE IS WHERE I GET THE ERROR
--- End Message ---
--- Begin Message ---
Hi,
I've tried to get PHP working with Apache on my Win2000 and failed. It seems
that the SAPI module has installed correctly but I'm getting the following
error in my Apache error.log file:
d:/ffp/php/helloworld.php is not executable; ensure interpreted scripts have
"#!" first line
couldn't spawn child process: d:/ffp/php/helloworld.php
I've seached the archives for this 'couldn't spawn child process' error and
the only advice I can find is to run PHP as a module, rather than as a CGI
executable. I've done this, but the error doesn't change.
I assume I've either set the directory permissions incorrectly in Apache, or
failed to install PHP fully, but I can't track the problem down.
The document root for the website is currently D:\ffp and I have the
following ScriptAlias in my httpd.conf file:
ScriptAlias /php/ "D:/ffp/php/"
I also have the standard lines to run PHP as a module, namely:
AddType application/x-httpd-php .php
LoadModule php4_module C:/PHP/sapi/php4apache.dll
Can anyone tell me why I'm still getting these errors?
Kind regards,
Jim
--- End Message ---
--- Begin Message ---
Hello again,
Does anyone have suggestions about where I can get an answer to the problems
I'm having with ODBC? I've tried using:
$cursor = odbc_cursor($connection) || die("cannot create cursor");
and get a similar error:
Warning: odbc_cursor(): supplied resource is not a valid ODBC result
resource in c:\program files\apache group\apache\htdocs\test4.php on line 13
cannot create cursor
Any help would be greatly appreciated. I've been trying unsuccessfully to
access to an MS Access database with PHP for weeks now. Any ideas of where
I can get the answer? I have posted to the PHP-INST and PHP-DB lists.
----------------------
Beverly Steiner
[EMAIL PROTECTED]
-----Original Message-----
From: Beverly Steiner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 6:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] problem connecting PHP w/ODBC
Hello,
I am having problems accessing a database through ODBC. I first sent an
email describing my problems accessing an MS Access database through PHP.
Today I installed MySQL. I have no problems accessing my test database with
the mysql commands. I downloaded MySQL's ODBC driver. I get the same error
message trying to access this database w/ODBC as I did with the MS Access
database.
I am running Windows XP Professional, PHP 4.3.1, and Apache 1.3.27.
Here's my PHP code:
$connection = odbc_connect("testmysql", "", "") or die ("Couldn't connect
to the server.");
$sql = "SELECT * FROM member";
$result = odbc_exec($sql,$connection) or die ("Couldn't execute query");
I get the following error message in my browser:
Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in
c:\program files\apache group\apache\htdocs\test4.php on line 17
Couldn't execute query
Anyone have any ideas of what I should do so I can access a database through
ODBC?
Beverly Steiner
[EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---