php-install Digest 15 Dec 2001 04:19:46 -0000 Issue 603

Topics (messages 5307 through 5309):

Re: Install php/apache/win2k
        5307 by: jensen1d.netscape.net

sysvsem + sysvshm problem
        5308 by: Roman Chumakov2147483647

php in command mode linux
        5309 by: Remo Mattei

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 ---
Sotee
Read through this. Maybe it will help

I got Apache-PHP-W2K working but it had nothing to do with document root 
as some had suggested. In fact, I cleared the doc_root variable in 
php.ini and PHP still loads.  Prior to these attempts, PHP would run 
from the command line (php.exe -i)
Here's what I did in Apache's httpd.conf file ....

1. THIS IS MY ORIGINAL CONFIGURATION AND DOES NOT WORK
(note: first attempt: PHP installed in C:/Web_Dev/PHP/  and
    there is no php4 directory)
      ScriptAlias  /php4/  "C:/Web_Dev/PHP/"
      AddType application/x-httpd-php4 .php
      Action  application/x-httpd-php4 "C:/Web_Dev/PHP/php.exe"
- the explicit path in the 'Action' line doesn't make PHP run.

THIS DOES NOT WORK EITHER
     ScriptAlias  /php/  "c:/Web_Dev/php/"
     AddType application/x-httpd-php     .php
     Action  application/x-httpd-php "c:/Web_Dev/php/php.exe"
- I think this one fails because the alias replaces the /php/ substring 
in the 'Action' path so Apache tries to run 
"c:/Web_Dev/c:/Web_Dev/php/php.exe"


THIS
     ScriptAlias  /php4/  "c:/Web_Dev/php/"
     AddType application/x-httpd-php     .php
     Action  application/x-httpd-php "/Web_Dev/php/php.exe"
GIVES THIS ERROR
The requested URL /Web_Dev/php/php.exe/info.php was not found on this 
server.

THIS
     ScriptAlias  /php4/  "c:/Web_Dev/php/"
     AddType application/x-httpd-php     .php
     Action  application/x-httpd-php "C:/Web_Dev/php/php.exe"
GIVES THIS (very familiar) ERROR
     Invalid URI in request GET /info.php HTTP/1.1

THIS WORKS
     ScriptAlias  /php/  "c:/Web_Dev/php/"
     AddType application/x-httpd-php     .php
     Action  application/x-httpd-php "/php/php.exe"

AND JUST FOR GRINS, THIS WORKS (there is no foo directory anywhere)
     ScriptAlias  /foo/  "c:/Web_Dev/php/"
     AddType application/x-httpd-foo     .php
     Action  application/x-httpd-foo "/foo/php.exe"

BUT THIS DOES NOT WORK
     ScriptAlias  /foo/  "c:/Web_Dev/php/"
     AddType application/x-httpd-foo     .php
     Action  application/x-httpd-foo "c:/Web_Dev/php/php.exe"
- so it would seem it's all about the aliases replacing substrings as 
well as avoiding an explicit c:/ path for the 'Action' line ...

p.s. also, download PHP 4.1.0 - the latest release

Regards,
:J



Sotee Loey wrote:

> Hi all;
> 
> Could anyone help? I can not get apache and php to
> work under win2k. The apache is working fine except
> the php doesn't work at all. I have tried the cgi and
> module versions. I have tried all the recommended
> methods in the new group. I follow the installation
> manual that come with php but still it is not working.
> If any could help I appreciated. Thank in advance. 
> 
> I am able to get php to work with iis5 fine but I want
> to use apache instead of iis5. 
> 
> S-
> 
> __________________________________________________
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> http://shopping.yahoo.com
> 

--- End Message ---
--- Begin Message ---
Platform: Solaris-5.8

When I compile php without --enable-sysvsem --enable-sysvshm ->
then apache works fine!
But when I compile php such:
cd apache_1.3.22
./configure
cd ../php-4.1.0
./configure --with-mysql --enable-sysvsem --enable-sysvshm --with-apache=../
apache_1.3.22
make
make install
cd ../apache_1.3.22
./configure --activate-module=src/modules/php4/libphp4.a
make
make install


In this case, apache running, but dont serving pages.
And I get following lines in error_log during apache startup:
[Fri Dec 14 22:25:57 2001] [notice] Apache/1.3.22 (Unix) PHP/4.1.0
rus/PL30.9 configured -
- resuming normal operations
[Fri Dec 14 22:25:57 2001] [notice] Accept mutex: fcntl (Default: fcntl)

How to compile php with sysvsem + sysvsm ?

Please , help!

Roman


--- End Message ---
--- Begin Message ---
Hi guys could someone tell me what do I need to do to get php install on 
a command line in linux I would like to do php -q script name but I 
cannot find the php executable but it works well on apache since I am 
using php for webpages.

Thanks,

Remo

--- End Message ---

Reply via email to