php-install Digest 25 Jun 2002 03:56:15 -0000 Issue 900
Topics (messages 7453 through 7457):
PHP 4.1.2 as CGI with apache 2.0.39
7453 by: David Forbes
Apache 2.0.39 and PHP 4.2.1 almost got it....
7454 by: thelupine.softhome.net
7455 by: junkie doodle
The requested URL /METHOD=POST was not found on this server.
7456 by: Estermann Patrick
Data source name not found
7457 by: FAHIM K S
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've installed PHP 4.1.2 as a CGI binary and apache 2.0.39. I have been
running apache successfully for some time with perl CGI scripts. However,
when I came to run PHP I hit the following problem:
PHP Parse error: parse error in /home/wwwuser/cgi-bin/php on line 1494
What appears to be happening is that instead of the requested file
"test.php" (that contains the usual "<?phpinfo();?>"), PHP is attempting
to parse its own binary image, as this command yields the same error:
wwwuser$ php -f /usr/pkg/bin/php
PHP Parse error: parse error in /usr/pkg/bin/php on line 1494
As PHP is working okay as a binary, I think it must be something with the
way I've configured apache. What I've added is this, to httpd.conf:
AddHandler php-script .php
Action php-script /cgi-bin/php
I've also copied the php binary into the cgi-bin directory. What am I
missing?
Many Thanks,
David.
--- End Message ---
--- Begin Message ---
Hello all,
I have been using the built in PHP v4.1something on Red Hat7.3 with
applications like ACID and such. I've read around that I should uninstall
those RPMs and recompile PHP v4.21 from source. So I uninstalled all the
default Red Hat 7.3 PHP RPMs, and dloaded php-4.2.1.tar.gz and
httpd-2.0.39.tar.gz. I used the following site:
http://www.php.net/manual/en/install.apache.php
And followed the instructions towards the bottom of that page, altering only
a little to fit my environment.
I got Apache2.0.39 installed with no problems over my exsiting Apache2.0.35,
by doing this:
1.) ./configure --prefix=/usr/local/apache --enable-modules=so
2.) make
3.) make install
Then I installed PHP:
1.) I had to edit the file sapi/apache2filter/php_functions.c at line 93.
#if !AP_MODULE_MAGIC_AT_LEAST(20020506,0)
ADD_STRING(boundary);
#endif
-->Got that one from the posts as well, thanks all!!!
2.) ./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs
3.) make
4.) make install
5.) libtool --finish
Everything fine so far....
I then made sure that:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
got added to my /usr/local/apache/conf/http.conf file
and I restart apache:
/usr/local/apache/bin/apachectl restart
and it restarts fine with no problems.
However, when I try and view my old ACID php pages and stuff, I see the
source of the PHP files instead of the actual PHP pages. Any idea why?
I've read over the mail archives, but can't seem to figure this one out,
since everything appears to have compiled and installed correctly, but I
just can't seem to view the pages.
TIA,
-Lup
P.S. Let me know if there is any other information needed.
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] unexpectedly said that;
> Hello all,
>
> I have been using the built in PHP v4.1something on Red Hat7.3 with
> applications like ACID and such. I've read around that I should uninstall
> those RPMs and recompile PHP v4.21 from source. So I uninstalled all the
> default Red Hat 7.3 PHP RPMs, and dloaded php-4.2.1.tar.gz and
> httpd-2.0.39.tar.gz. I used the following site:
> http://www.php.net/manual/en/install.apache.php
> And followed the instructions towards the bottom of that page, altering
> only a little to fit my environment.
>
> I got Apache2.0.39 installed with no problems over my exsiting
> Apache2.0.35, by doing this:
> 1.) ./configure --prefix=/usr/local/apache --enable-modules=so
> 2.) make
> 3.) make install
>
>
> Then I installed PHP:
> 1.) I had to edit the file sapi/apache2filter/php_functions.c at line 93.
> #if !AP_MODULE_MAGIC_AT_LEAST(20020506,0)
> ADD_STRING(boundary);
> #endif
> -->Got that one from the posts as well, thanks all!!!
> 2.) ./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs
> 3.) make
> 4.) make install
> 5.) libtool --finish
>
> Everything fine so far....
>
> I then made sure that:
> LoadModule php4_module modules/libphp4.so
> AddType application/x-httpd-php .php
> got added to my /usr/local/apache/conf/http.conf file
> and I restart apache:
> /usr/local/apache/bin/apachectl restart
> and it restarts fine with no problems.
>
> However, when I try and view my old ACID php pages and stuff, I see the
> source of the PHP files instead of the actual PHP pages. Any idea why?
>
> I've read over the mail archives, but can't seem to figure this one out,
> since everything appears to have compiled and installed correctly, but I
> just can't seem to view the pages.
>
> TIA,
> -Lup
> P.S. Let me know if there is any other information needed.
I had the same problem.. I searched the web for it.. but the only thing i
got was people complaining about the problem..
I wrote here but didnt get a response but " Using PHP as an Apache2 module
is experimental and not stable "
I couldnt find out why i kept having that problem and installed an earlier
version of apache and things went ok.
i think simply do not using --with-apxs2=/usr/local/apache/bin/apxs suffix
while configuring PHP.. i think Apache2 module thing has something wrong in
it, or all of us are doing the same thing wrong.
if you find and answer to this question, i'd apreciate..
thanks..
--
junkie lives.. somewhere in time
---------------------------
hey sofia guy! what happened to eddie then?
--- End Message ---
--- Begin Message ---
Hi
I've installed php (dll version) on my existing apache webserver. Everything seems to
work fine except this
painful error message : "The requested URL /METHOD=POST was not found on this server."
When I use POST or GET
Method. Does anyone have a slight idea what the mess causes this *** error?
best thanks
peep
--- End Message ---
--- Begin Message ---
Dear All,
I created a system DSN using Microsoft Access (named task). Then I created a PHP file
which included the following lines only,
---------------------------------------------------------------------------------------
<?php
$connection= odbc_connect("DSN=task","fahim","fahim") or die ("Couldn't connect to the
datasource.");
?>
---------------------------------------------------------------------------------------
When I try to view the page on my browser, the browser throws the following error,
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified, SQL state IM002 in SQLConnect in c:\inetpub\wwwroot\test.php
on line 2
Couldn't connect to the datasource
Note: I can easily access the database when I use the DSN with ASP. I use windows 2000
advanced server and IIS is my web server.
What can I do for getting rid of the error.
thank you,
FAhim
--- End Message ---