php-install Digest 4 Feb 2003 21:44:54 -0000 Issue 1233
Topics (messages 9935 through 9945):
PHP 4.3.0 Problem
9935 by: V S Somasundaram
9936 by: Peter Janett
9938 by: Götz Lohmsnn
Re: php files not being parsed -
9937 by: Götz Lohmsnn
9939 by: Terry L. Ensley
9940 by: Ryan Williams
9941 by: Terry L. Ensley
9943 by: Götz Lohmsnn
Installing php-4.2.1 on Solaris 8 Server - zend.h:55:19: unix.h: No such file or
directory
9942 by: Atif Jakupovic
Re: Installing php-4.2.1 on Solaris 8 Server - zend.h:55:19: unix.h: No such
9944 by: Götz Lohmsnn
$_GET and 4.2.1
9945 by: William Cheung
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 ---
Hi,
I compiled PHP 4.3.0 support with Apache 2.0.43 on Linux. Then I created
a test script and when trying to access it says "Access Forbidden". The
permission for the directory from which the test script is invoked are
correct.
When I run the same script from the terminal like this:
$php test.php
it works correctly.
Please help me out.
Cheers!!!
Somu
--
Where Do You Want To Go Tommorrow?
--- End Message ---
--- Begin Message ---
Sounds like a permission problem. I suggest telling us the file
permissions, so we can confirm they are correct.
It also sounds like maybe your running php as a cgi, which also needs
correct permissions.
Lastly, I'd check to make sure that Apache knows that you want the .php
extension to be run by PHP.
HTH,
Peter Janett
New Media One Web Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New Upgrades Are Now Live!!!
Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1
Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25,
Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PostgreSQL coming soon!
http://www.newmediaone.net
webmaster "at" newmediaone.net
(303)828-9882
----- Original Message -----
From: "V S Somasundaram" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 10:58 PM
Subject: [PHP-INST] PHP 4.3.0 Problem
> Hi,
>
> I compiled PHP 4.3.0 support with Apache 2.0.43 on Linux. Then I created
> a test script and when trying to access it says "Access Forbidden". The
> permission for the directory from which the test script is invoked are
> correct.
>
> When I run the same script from the terminal like this:
>
> $php test.php
>
> it works correctly.
>
> Please help me out.
>
> Cheers!!!
> Somu
>
> --
> Where Do You Want To Go Tommorrow?
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
V S Somasundaram schrieb:
> Hi,
>
> I compiled PHP 4.3.0 support with Apache 2.0.43 on Linux. Then I created
> a test script and when trying to access it says "Access Forbidden". The
> permission for the directory from which the test script is invoked are
> correct.
>
> When I run the same script from the terminal like this:
>
> $php test.php
>
> it works correctly.
>
> Please help me out.
>
> Cheers!!!
> Somu
>
take a look in ".../apache/logs/" what is in the error & access Log file ?
there you might find more details which script where, when fails ...
maybe use "log_errors = On" and "error_log = /myphp.log" in the php.ini
to get more detailed information ...
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ ------------------------------------------------------
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.
--- End Message ---
--- Begin Message ---
Terry L. Ensley schrieb:
> I just installed Apache 1.3.27 and PHP 4.3.0. I have it running. When I
> click on the Apache shortcut this message comes up in the dos window
> "Apache/1.3.27 (Win32) PHP/4/3/0 running ..."
>
> But when I try to run my test program (test.php) it comes up with a blank
> screen. If I view the source I see the program - I realize that php is not
> being called by apache to parse php files, but I don't know what else to
> try. Here is the source code.
>
> <html>
> <head><title>PhP Test Doc</title></head>
> <body>
>
> <?php phpinfo(); ?>
>
> </body></html>
>
> I am running it out of C:\Program Files\Apache Group\Apache\htdocs - which
> is my doc directory - I have looked at all the paths and they seem correct.
> php is in C:\Files\PhP\
>
> I am running Windows XP. All dll's have been copied over to the windows or
> window system dir.
>
> I have both of these in my httpd.conf file:
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
... seems that you try loading PHP as modul AND as CGI ... note: if you use
the PHP modul with
LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
...
AddModule mod_php4.c
you don't need the "Action application/..." Line!
Cause the Action meen that this extern program is called as a CGI. With the
modul version this functionality is bundeld into apache itself. Might be
confusing for Apache what he should do, call CGI and/or the modul.
If you wish to use the CGI version (not recommed) then you have to specify
the Path of the Action correctly. To do this you need also a line like:
ScriptAlias /php/ "C:/Files/PhP/"
so that apache know where the directory "/php/" is, so that it looks like:
ScriptAlias /php/ "C:/Files/PhP/"
...
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
Than you don't need the LoaModule & AddModule lines ! Comment it out like:
# LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
...
# AddModule mod_php4.c
But the better way is to use the modul version !!!
hope this will help, regards, G.Lohmann
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ ------------------------------------------------------
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.
--- End Message ---
--- Begin Message ---
I did what you suggested - which is actually the way I first started - I
deleted the action line.
I do have both of these - in their proper places:
LoadModule php4_module c:/files/php/sapi/php4apache.dllAddModule mod_php4.c
AddModule mod_php4.c
And then in the AddType section towards the bottom of the file I have:
AddType application/x-httpd-php .php
I copied these lines from my httpd.conf file -
But still nothing - it has me stumped - Any thoughts?
> ... seems that you try loading PHP as modul AND as CGI ... note: if you
use
> the PHP modul with
>
> LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
> ...
> AddModule mod_php4.c
>
> you don't need the "Action application/..." Line!
>
> Cause the Action meen that this extern program is called as a CGI. With
the
> modul version this functionality is bundeld into apache itself. Might be
> confusing for Apache what he should do, call CGI and/or the modul.
>
> If you wish to use the CGI version (not recommed) then you have to specify
> the Path of the Action correctly. To do this you need also a line like:
>
> ScriptAlias /php/ "C:/Files/PhP/"
>
> so that apache know where the directory "/php/" is, so that it looks like:
>
> ScriptAlias /php/ "C:/Files/PhP/"
> ...
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> Than you don't need the LoaModule & AddModule lines ! Comment it out like:
>
> # LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
> ...
> # AddModule mod_php4.c
>
> But the better way is to use the modul version !!!
>
>
> hope this will help, regards, G.Lohmann
>
> --
> @ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
> \/ ------------------------------------------------------
> () He's the fellow that people wonder what he does and
> || why the company needs him, until he goes on vacation.
>
--- End Message ---
--- Begin Message ---
I am assuming your restarting you server after any changes?
--
Ryan Williams
On Tue, 4 Feb 2003, Terry L. Ensley wrote:
> I did what you suggested - which is actually the way I first started - I
> deleted the action line.
>
> I do have both of these - in their proper places:
>
> LoadModule php4_module c:/files/php/sapi/php4apache.dllAddModule mod_php4.c
> AddModule mod_php4.c
>
>
> And then in the AddType section towards the bottom of the file I have:
>
> AddType application/x-httpd-php .php
>
> I copied these lines from my httpd.conf file -
>
> But still nothing - it has me stumped - Any thoughts?
>
>
> > ... seems that you try loading PHP as modul AND as CGI ... note: if you
> use
> > the PHP modul with
> >
> > LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
> > ...
> > AddModule mod_php4.c
> >
> > you don't need the "Action application/..." Line!
> >
> > Cause the Action meen that this extern program is called as a CGI. With
> the
> > modul version this functionality is bundeld into apache itself. Might be
> > confusing for Apache what he should do, call CGI and/or the modul.
> >
> > If you wish to use the CGI version (not recommed) then you have to specify
> > the Path of the Action correctly. To do this you need also a line like:
> >
> > ScriptAlias /php/ "C:/Files/PhP/"
> >
> > so that apache know where the directory "/php/" is, so that it looks like:
> >
> > ScriptAlias /php/ "C:/Files/PhP/"
> > ...
> > AddType application/x-httpd-php .php
> > Action application/x-httpd-php "/php/php.exe"
> >
> > Than you don't need the LoaModule & AddModule lines ! Comment it out like:
> >
> > # LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
> > ...
> > # AddModule mod_php4.c
> >
> > But the better way is to use the modul version !!!
> >
> >
> > hope this will help, regards, G.Lohmann
> >
> > --
> > @ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
> > \/ ------------------------------------------------------
> > () He's the fellow that people wonder what he does and
> > || why the company needs him, until he goes on vacation.
> >
>
>
>
>
--- End Message ---
--- Begin Message ---
Yes I am - but still nothing. I can still view the source in the browser
and see the source code but it is not being parsed.
--
Terry Ensley
"Ryan Williams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am assuming your restarting you server after any changes?
>
> --
> Ryan Williams
>
>
>
> On Tue, 4 Feb 2003, Terry L. Ensley wrote:
>
> > I did what you suggested - which is actually the way I first started - I
> > deleted the action line.
> >
> > I do have both of these - in their proper places:
> >
> > LoadModule php4_module c:/files/php/sapi/php4apache.
> > AddModule mod_php4.c
> >
> >
> > And then in the AddType section towards the bottom of the file I have:
> >
> > AddType application/x-httpd-php .php
> >
> > I copied these lines from my httpd.conf file -
> >
> > But still nothing - it has me stumped - Any thoughts?
> >
> >
> > > ... seems that you try loading PHP as modul AND as CGI ... note: if
you
> > use
> > > the PHP modul with
> > >
> > > LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
> > > ...
> > > AddModule mod_php4.c
> > >
> > > you don't need the "Action application/..." Line!
> > >
> > > Cause the Action meen that this extern program is called as a CGI.
With
> > the
> > > modul version this functionality is bundeld into apache itself. Might
be
> > > confusing for Apache what he should do, call CGI and/or the modul.
> > >
> > > If you wish to use the CGI version (not recommed) then you have to
specify
> > > the Path of the Action correctly. To do this you need also a line
like:
> > >
> > > ScriptAlias /php/ "C:/Files/PhP/"
> > >
> > > so that apache know where the directory "/php/" is, so that it looks
like:
> > >
> > > ScriptAlias /php/ "C:/Files/PhP/"
> > > ...
> > > AddType application/x-httpd-php .php
> > > Action application/x-httpd-php "/php/php.exe"
> > >
> > > Than you don't need the LoaModule & AddModule lines ! Comment it out
like:
> > >
> > > # LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
> > > ...
> > > # AddModule mod_php4.c
> > >
> > > But the better way is to use the modul version !!!
> > >
> > >
> > > hope this will help, regards, G.Lohmann
> > >
> > > --
> > > @ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
> > > \/ ------------------------------------------------------
> > > () He's the fellow that people wonder what he does and
> > > || why the company needs him, until he goes on vacation.
> > >
> >
> >
> >
> >
>
--- End Message ---
--- Begin Message ---
Terry L. Ensley schrieb:
> Yes I am - but still nothing. I can still view the source in the browser
> and see the source code but it is not being parsed.
>
> --
> Terry Ensley
>
>
> "Ryan Williams" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>>I am assuming your restarting you server after any changes?
>>
>>--
>>Ryan Williams
>>
>>
>>
>>On Tue, 4 Feb 2003, Terry L. Ensley wrote:
>>
>>
>>>I did what you suggested - which is actually the way I first started - I
>>>deleted the action line.
>>>
>>>I do have both of these - in their proper places:
>>>
>>> LoadModule php4_module c:/files/php/sapi/php4apache.
>>>AddModule mod_php4.c
>>>
>>>
>>>And then in the AddType section towards the bottom of the file I have:
>>>
>>>AddType application/x-httpd-php .php
>>>
>>>I copied these lines from my httpd.conf file -
>>>
>>>But still nothing - it has me stumped - Any thoughts?
>>>
>>>
>>>
<snip>
maybe the
AddType application/x-httpd-php .php
is inside of a <Directory> Tag which define this only for that instead in
<IfModule mod_mime.c> ??? maybe you could also put in in a VirtualHost tag
if you using them like:
<VirtualHost 123.123.123.123>
...
AddType text/html .shtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
</VirtualHost>
the AddType defines what should be done with a file like *.php
Did apache echo that it loads the modul corect at start ? something like:
Apache 1.3.xx with mod_php 4.2.xx
???
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ ------------------------------------------------------
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.
--- End Message ---
--- Begin Message ---
Hi all,
I have a hard time to install the php-4.2.1 on Solaris 8 machine.
When I type make I get this message below:
zend.h:55:19: unix.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `zend_language_parser.lo'
Current working directory /apps/php-4.2.1/Zend
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
--- End Message ---
--- Begin Message ---
Atif Jakupovic schrieb:
> Hi all,
>
> I have a hard time to install the php-4.2.1 on Solaris 8 machine.
> When I type make I get this message below:
>
> zend.h:55:19: unix.h: No such file or directory
> *** Error code 1
> make: Fatal error: Command failed for target `zend_language_parser.lo'
> Current working directory /apps/php-4.2.1/Zend
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
>
did you have a unix.h ??? ... maybe ./configure goes wrong ...
maybe should tell him that its not Unix but Solaris ?
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ ------------------------------------------------------
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.
--- End Message ---
--- Begin Message ---
I am using 4.2.3 and Win 2000Pro and $_GET is working in my system.
However, my co-worker says that $_GET doesn't work with hers. She is using
4.2.1 and Win2000 Svr.
How should she config her php.ini so that $_GET will work as well?
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.
--- End Message ---