php-install Digest 4 Feb 2003 05:43:29 -0000 Issue 1232

Topics (messages 9924 through 9934):

Re: openldap libmcrypt mcrypt openssl php. Do I need kerberos????
        9924 by: Götz Lohmsnn

Re: Bad request: probably tried to POST a non-executable URL
        9925 by: Götz Lohmsnn

Re: Whither mysql.so?
        9926 by: Götz Lohmsnn

Re: secure offerings
        9927 by: Götz Lohmsnn

php not executed, mime type problem?
        9928 by: Zavier Sheran
        9931 by: Boutelle, Jonathan
        9932 by: Götz Lohmsnn
        9933 by: Stephen Edmonds

Re: Change php extension
        9929 by: Götz Lohmsnn

Re: sessions
        9930 by: Götz Lohmsnn

php files not being parsed -
        9934 by: Terry L. Ensley

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 ---
Peter Nyberg schrieb:
> Hi!
> Do I need kerberos with openldap and PHP or is it enough with ssl/tls? As I 
> understand the ssl/tls will encrypt the communication between the computers and 
> kerberos will encrypt the password file on the server. If I install mcrypt with 
> libmcrypt, mhash and openssl the result will be the same, or am I wrong?
> I prefer not to use kerberos since it's so complicated and "buggy"
> 
> 

try to compile without kerberos and run phpinfo afterwards. If LDAP is shown in
the list, everything might ok without kerberos. Sometimes modules like IMAP and
LDAP are compiled with kerberos, then you also need kerberos.
By the way, kerberos isn't as buggy as it seems and in fact OpenSSL had recent a
huge hole ;-) but its always better to leave PHP as slim as possible.


-- 
 @  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 ---
[EMAIL PROTECTED] schrieb:
> Can someone tell me how to stop "Bad request: probably tried to POST a
> non-executable URL" when a self calling file is in anything other then the
> root of my server? What do I need to do to the .ini file?
> 
> Martin
> 


first take a look at the error log file (don't know if you using apache,
linux, windowz or something else) ... but what exactly is posted to the
web server, which path ? ... this might not be a problem of PHP cause
you say it works in the root server ... it will mostly work or fail,
cause PHP just interprets only the code, everything else is done by the
web server ....

-- 
 @  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 ---
Matt schrieb:
> ----- Original Message -----
> From: "J.F. Noonan" <[EMAIL PROTECTED]>
> To: "Jim Thome" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, January 31, 2003 5:32 PM
> Subject: Re: [PHP-INST] Whither mysql.so?
> 
> 
> 
>>On Fri, 31 Jan 2003 at 1:52pm Jim Thome wrote:
>>
>>
>>>MySQL support is built into PHP 4.2.3.  There is no mysql.so.
>>>The phpinfo() function should show support for MySQL.
>>
>>Hmm.  Here's what happens when I 'apachectl startssl'
>>
>>PHP Warning:  Unable to load dynamic library
>>'/usr/local/libexec/apache/mysql.so' - Cannot open
>>"/usr/local/libexec/apache/mysql.so" in Unknown on line 0
>>
>>
>>and I'd forgotten to mention I get this as well:
>>
>>PHP Warning:  Invalid library (maybe not a PHP library)
>>'mod_imap.so'  in Unknown on line 0
> 
> 
> Tell us a little more about what you're doing.  Post your php ./config.nice
> and the output of httpd -l
> 

I'm not sure but ... in the php.ini there might be a line like:

extension=mod_imap.so
extension=mysql.so

do a ; infront of this line and try again ... maybe you got a build-in version
of IMAP which hassle with the modul version. By the way, "mod_imap.so" might be
a modul of apache, cause apache moduls mostly starts with mod_* !?

-- 
 @  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 ---
Jacob R Chandler schrieb:
> Thanks for the response. However, it seems that Jail only works for
> users logging into the system through some terminal. We are wanting
> something that controls the access of their php scripts that are being
> executed.
> 
[snip]

Maybe just use a .htaccess file if you using apache & linux.
Then everytime you connect to a PHP script in that directory
(after login the session stays till the browser window is
closed or the authentication is cleared) you have to insert
a user and password. Maybe you also might automate this with
another script ???

-- 
 @  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 installed PHP 4.3.0 and Apache 1.3.27 on XP Pro.

When I try to access a .php file with the browser, it offers it for
download.

Yep, I have this in my httpd.conf:

LoadModule php4_module C:\PHP\sapi\php4apache.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


I browsed the archives and this issue seems common and  goes back for years
on Linux/Windows and a variety of php 4.x and apache 1.3.x and 2.x versions.
Nobody, in this time period of years, came up with a solution that solved
the problem of the poster.

I spent the last hours trying to get it work to no avail. I had it working 2
years ago on a Win 2K machine. Now this...

Does anybody actually know what wrong (Rasmus??)? It's all setup according
to manual and double and quadruple checked.

All's fine when I execute on the command prompt. I can access al .html and
.jpg .gif files via browser.


--- End Message ---
--- Begin Message ---
I have the same problem.
I'm running Win2k, with the same versions of Apache and PHP as Zavier.
This only happened when I tried to install php as a module: when I tried to
install as cgi it worked fine.

Jonathan Boutelle
Software Engineer
XML Platform
Commerce One
925 - 520 - 4406


-----Original Message-----
From: Zavier Sheran [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 9:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] php not executed, mime type problem?


I installed PHP 4.3.0 and Apache 1.3.27 on XP Pro.

When I try to access a .php file with the browser, it offers it for
download.

Yep, I have this in my httpd.conf:

LoadModule php4_module C:\PHP\sapi\php4apache.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


I browsed the archives and this issue seems common and  goes back for years
on Linux/Windows and a variety of php 4.x and apache 1.3.x and 2.x versions.
Nobody, in this time period of years, came up with a solution that solved
the problem of the poster.

I spent the last hours trying to get it work to no avail. I had it working 2
years ago on a Win 2K machine. Now this...

Does anybody actually know what wrong (Rasmus??)? It's all setup according
to manual and double and quadruple checked.

All's fine when I execute on the command prompt. I can access al .html and
.jpg .gif files via browser.



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Zavier Sheran schrieb:
> I installed PHP 4.3.0 and Apache 1.3.27 on XP Pro.
> 
> When I try to access a .php file with the browser, it offers it for
> download.
> 
> Yep, I have this in my httpd.conf:
> 
> LoadModule php4_module C:\PHP\sapi\php4apache.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
> 
> 
> I browsed the archives and this issue seems common and  goes back for years
> on Linux/Windows and a variety of php 4.x and apache 1.3.x and 2.x versions.
> Nobody, in this time period of years, came up with a solution that solved
> the problem of the poster.
> 
> I spent the last hours trying to get it work to no avail. I had it working 2
> years ago on a Win 2K machine. Now this...
> 
> Does anybody actually know what wrong (Rasmus??)? It's all setup according
> to manual and double and quadruple checked.
> 
> All's fine when I execute on the command prompt. I can access al .html and
> .jpg .gif files via browser.
> 

If it offers you the file to download then this mean the PHP engine didn't
run and parse the file. Maybe take care of the "/" and "\" in the file and
folder settings cause in linux directorys are with "/" NOT with "\" !

Yes, you are on windowz, but Apache came from *nix systems ...

my working httpd.conf shows like:

<snip>
...
LoadModule php4_module k:/PROGRA~1/AppServ/php/sapi/php4apache.dll
...
AddModule mod_php4.c
...
<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.php index.php3
</IfModule>
...
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
...
<snip>

be sure that you have also copy some files to the win\system32 directory,
... maybe something like "php4ts.dll" ... but look in your php directory
for "install.txt" there is a section howto install PHP with Apache on Windowz !

regards



-- 
 @  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 ---
Chances are you've not put the commands in the correct place, instead just
copy and pasted them into the config
file.

LoadModule php4_module C:\PHP\sapi\php4apache.dll
This has to be in the same place as all the other LoadModule commands. If
you look through your httpd.conf file for Apache, you will see a whole load
of LoadModules with #'s in front of them. You need to place the above line
at the end of that list.

If you then scroll down a bit the next section should be 'AddModule'. In
this section, you have to put the line
AddModule mod_php4.c
at the bottom of the list. Both commands are needed to properly load PHP.

Once that is done, you will need to run a search for
'# AddType allows you to tweak mime.types without actually editing it, or
to'
Below that line should be a series of AddType commands. Again, you need to
put
AddType application/x-httpd-php .php
at the end of the list.

AddType application/x-httpd-php-source .phps
is an optional feature, I personnally do not use it as I do not want people
to be able to view my source code. However it is up to you. If you do
include it, put it in the same section as the other file.

If that doesn't solve your problem, or you've done all that already, then
remember you need to restart Apache for it to take effect. Also check that
php is installed in the path you've set in httpd.conf (In this case
C:\PHP\). Also check that C:\PHP\sapi\php4apache.dll is present in the
correct folder, and that the following two files are in the SAME directory
as php4apache.dll :

php4ts.dll
php4ts.lib

Good Luck you two, let me know how it goes

Stephen


----- Original Message -----
From: "Zavier Sheran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 5:14 PM
Subject: [PHP-INST] php not executed, mime type problem?


> I installed PHP 4.3.0 and Apache 1.3.27 on XP Pro.
>
> When I try to access a .php file with the browser, it offers it for
> download.
>
> Yep, I have this in my httpd.conf:
>
> LoadModule php4_module C:\PHP\sapi\php4apache.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
>
> I browsed the archives and this issue seems common and  goes back for
years
> on Linux/Windows and a variety of php 4.x and apache 1.3.x and 2.x
versions.
> Nobody, in this time period of years, came up with a solution that solved
> the problem of the poster.
>
> I spent the last hours trying to get it work to no avail. I had it working
2
> years ago on a Win 2K machine. Now this...
>
> Does anybody actually know what wrong (Rasmus??)? It's all setup according
> to manual and double and quadruple checked.
>
> All's fine when I execute on the command prompt. I can access al .html and
> .jpg .gif files via browser.
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] schrieb:
> Thanks for your kind response. But that works with apache server. I want 
> to use php4 or php3 extension in windows 2000 with IIS 5 server.
> 
[snip]

... who is using windowz *lol* ... ok ... if I remember this correct, you
have to notify IIS about the valid extension .php3 or .php4 by adding
this to the registry ... I'm not quit sure but think it was like

HKLM/System/CurrentControlSet/Services/W3Svc/Parameters/ScriptMap

but maybe take a look in your PHP directory ... there might be a file
called "install.txt" with a section "Installing PHP on Windows with IIS"

regards


-- 
 @  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 ---
Jacusy schrieb:
> Hi there!
> 
> How can I verify that the sessions in php are working correctly?
> 
> The problem is that I'd like to install a forum on my server but it
> doesn't work. There are some session-errors.
> 
> session.save-path = /tmp
> should be ok, right?
> 
> jacusy
> 

take look at this HowTo with PHP Session:

http://www.devshed.com/Server_Side/PHP/Commerce/Commerce2/page4.html


-- 
 @  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 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"

Any suggestions - Thanks


--- End Message ---

Reply via email to