php-install Digest 18 Jun 2002 23:57:58 -0000 Issue 890
Topics (messages 7365 through 7376):
Re: PHP 4.x and Apache 2.x
7365 by: Victor Fernandes
Re: headers already sent!!!!!
7366 by: BB
Small CGI serve
7367 by: BB
problems installing php with apache 2.0.35
7368 by: José Horácio
7369 by: MikeParton
Re: GD Lib Support
7370 by: Matt Schroebel
PHP/IIS5 Problem
7371 by: Gator
7372 by: Shrock, Court
how to
7373 by: tony perez
Help with PHP 4.2.1 !!!!
7374 by: Frank
IMAP and I my make and what do I get recursion :)
7375 by: php user
Re: Windows Install troubles.
7376 by: Viraj Kalinga Abayarathna
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 ---
Just for the records and to give some hope ;-)
I found where the problem is and patched the sources to fix the problem
for me.
I will not suggest or recommend my solution (patch) because this should
be solved when PHP 4 will be fully supported with Apache 2.x. Yes I had
this error certainly due to this combination (Apache 2.0.36 and
PHP 4.2.1, Solaris 8, etc...)
On file "./sapi/apache2filter/apache_config.c" changed the string
"OR_NONE" on line 131, to "ACCESS_CONF|RSRC_CONF". Based on line 866 of
file: "./sapi/apache/mod_php4.c"
After that I was presented with a new nice error:
Warning: SAFE MODE Restriction in effect. The script whose uid/gid is
-1/-1 is not allowed..."
For any file I was trying to access. This again is certainly due to
the fact that this is experimental code for Apache 2.x. I found where
the problem is and patched the sources too.
For the curious and in case this is not yet known, the problem
originates
on the "./main/safe_mode.c" file, because the php_getuid() and
php_getgid() functions always return -1. In fact the problem comes, even
more deeply, from the php_statpage() or sapi_get_stat(). I decided not
to go further and patched the php_getuid() and php_getgid() directly
(on file "./ext/standard/pageinfo.c"). I've done this by checking
the value that is supposed to be returned and if it is -1 go another
way and get the correct executing script uid/gid.
Victor Fernandes
Victor Fernandes wrote:
>
> I'm trying to setup Apache and PHP (as an apache module), but I'm
> having some problems configuring php on the apache configuration
> file to allow different parameters for all my virtual hosts.
> If I read the php documentation correctly I'm supposed to be
> able to set parameters with the php_admin_value directive.
> The php module refuses this directive on any location of the
> apache configuration file. The error is:
> bash-2.03# /etc/init.d/apachectl start
> Syntax error on line 1072 of /usr/local/apache2/conf/httpd.conf:
> php_admin_value not allowed here
> /etc/init.d/apachectl start: httpd could not be started
>
> The module appears to accept the php_value directive but only
> for some of the available parameters.
>
> I found some references to the same problem on the archives
> by found no solution or reason for the problem.
>
> Any help will be appreciated.
>
> Thanks,
>
> Victor Fernandes
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
You cannot send headers before ANYTHING else
if your code starts with so much as a space, then you can't send any headers
"Viraj Kalinga Abayarathna" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hello
> what is the reson for the error "Headers already sent"?
> please explain me if you know.
>
> thank you
> Vk.
> www.CeyNet.net
>
--- End Message ---
--- Begin Message ---
I am trying to write a small CGI webserver.
Having finally found out how to pass the Environment vars onto PHP, I am
stumpted to find that PHP wasn't reading them and putting them in their
place (GET vars).
I tried changing the exe from the php-cli to just php. This now brings up a
security error and I cannot find a solution
Can anyone help?
--- End Message ---
--- Begin Message ---
Hi !
I have apache 2.0.35 installed in a windows 2000 professional machine.
It is not an apache update from an older version it is a brend new
instalation of apache.
I'm trying to install php 4.2.1 as a module in Apache.
Following the steps of the install.txt that comes with the php zip
"php-4.2.1-Win32.zip".
Apache doesn't start and gives this errors
The Apache service named reported the following error:
>>>Syntax error on line 40 of D:/Program Files/Apache
>>>Group/Apache2/conf/httpd.conf: .
witch is
LoadModule php4_module d:/php/sapi/php4apache.dll
and
The Apache service named reported the following error:
>>>Cannot load D:/php/sapi/php4apache.dll into server: The specified module
>>>could not be found. .
where d:/php/ is the php dir installation.
the path D:/php/sapi/php4apache.dll is valid and the module exists.
the error
The Apache service named reported the following error:
>>>Syntax error on line xx of D:/Program Files/Apache
>>>Group/Apache2/conf/httpd.conf: .
also occurs with the line
AddModule mod_php4.c
i hope that this description is clear about the problem.
can you help me with this problem ?
thank you.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--- End Message ---
--- Begin Message ---
For PHP 4.2.1 and Apache 2.0.3X you need the following in your httpd.conf:
LoadModule php4_module "path_to/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
The php apache dll is php4apache2.dll vs php4apache.dll
HTH
Mike
----- Original Message -----
From: "José Horácio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 10:07 AM
Subject: [PHP-INST] problems installing php with apache 2.0.35
> Hi !
> I have apache 2.0.35 installed in a windows 2000 professional machine.
> It is not an apache update from an older version it is a brend new
> instalation of apache.
> I'm trying to install php 4.2.1 as a module in Apache.
> Following the steps of the install.txt that comes with the php zip
> "php-4.2.1-Win32.zip".
>
> Apache doesn't start and gives this errors
>
> The Apache service named reported the following error:
> >>>Syntax error on line 40 of D:/Program Files/Apache
> >>>Group/Apache2/conf/httpd.conf: .
>
> witch is
> LoadModule php4_module d:/php/sapi/php4apache.dll
>
> and
> The Apache service named reported the following error:
> >>>Cannot load D:/php/sapi/php4apache.dll into server: The specified
module
> >>>could not be found. .
>
> where d:/php/ is the php dir installation.
> the path D:/php/sapi/php4apache.dll is valid and the module exists.
>
> the error
> The Apache service named reported the following error:
> >>>Syntax error on line xx of D:/Program Files/Apache
> >>>Group/Apache2/conf/httpd.conf: .
> also occurs with the line
> AddModule mod_php4.c
>
> i hope that this description is clear about the problem.
> can you help me with this problem ?
>
> thank you.
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Phpinfo should show at least gd, and png support for jpgraph to work. My phpinfo for
php-4.1.2 shows:
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Here's my php configure script:
'./configure' \
'--with-apxs=/www/bin/apxs' \
'--with-mysql=/usr/local' \
'--with-jpeg-dir=/usr/local/jpeg-6b' \
'--with-png-dir=/usr/local' \
'--with-freetype-dir=/usr/local' \
'--with-ttf' \
'--with-t1lib' \
'--with-gd=/usr/local' \
'--enable-gd-native-ttf' \
'--enable-sockets' \
'--with-zlib' \
'--with-exif' \
I have libpng 1.2.3, Freetype 2.0.8, T1LIB 1.3.1, jpeg 6b, zlib 1.1.4 everything built
as a shared object.
> -----Original Message-----
> From: John Thorne [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 17, 2002 6:49 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] GD Lib Support
>
>
> Hello:
>
> Working with jpGraph that says you need php GD support
> On my home Redhat 7.2 apache.php server when I run phpinfo
> I show the following for GD:
>
> php 4.0.6
> gd
> GD Support enabled
> GD Version 1.6.2 or higher
> JPG Support enabled
> PNG Support enabled
> WBMP Support enabled
>
> this setup well display my png charts
>
> My ISP's php 4.1.2 phpinfo shows
> gd
> GD Support enabled
> GD Version 1.6.2 or higher
> WBMP Support enabled
>
> The ISP says this config supports jpg / png
> The page does not display.
>
> Is there a difference in the phpinfo between 4.0.6 and 4.1.2 ?
> Does the 4.1.2 really have png jpg support?
>
> thanks
>
> jrt
>
>
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I needed to move a couple of working sites that use PHP scripts to a new
Win2K server. The new server runs simple PHP scripts like <?php
phpinfo();?>. But it will not run the scripts where input parameters are
added to the URL like:
daily.php?week=1&day=1
This runs as if there was no input, like:
daily.php
This is all running perfectly on the old server and everything "looks" the
same with the exception of going from php 4.0.6 to 4.2.1. There are no
error messages that I can see coming up.
Any ideas what might be the issue here or where to look?
Thanks - Jack
--- End Message ---
--- Begin Message ---
This is because register_globals is set to Off in your php.ini. For
security reasons, it is best to leave this setting as it is; instead, add
some code at the top of your script so that you get what you would expect:
$week = $_GET['week'];
$day = $_GET['day'];
...
The security hole comes in form submissions. If all you do is refence a
variable submitted via a form by its name instead of via the $_POST array,
anyone can "submit" your form by figuring out the appropriate URL name/value
pairs--a BAD thing.
> -----Original Message-----
> From: Gator [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP/IIS5 Problem
>
>
> I needed to move a couple of working sites that use PHP
> scripts to a new Win2K server. The new server runs simple
> PHP scripts like <?php phpinfo();?>. But it will not run the
> scripts where input parameters are added to the URL like:
>
> daily.php?week=1&day=1
>
> This runs as if there was no input, like:
>
> daily.php
>
> This is all running perfectly on the old server and
> everything "looks" the same with the exception of going from
> php 4.0.6 to 4.2.1. There are no error messages that I can
> see coming up.
>
> Any ideas what might be the issue here or where to look?
>
> Thanks - Jack
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
how to unsuscribe my self from this mailing list?
visita BORRACHOS
http://www.borrachoz.com
antonio pérez guerrero
TEL=927-14-62
veracruz, ver.
ICQ # 37385673
______________________________________________________________
Get Your Free E-mail at http://www.prontomail.com
--- End Message ---
--- Begin Message ---
Hi,
How have the PHP 4.2.1 in system Windows or WinNT and manager IIS?
I like know, if working good the library php_oci8.dll.
Thank you...
Frank.-
--- End Message ---
--- Begin Message ---
At this point in the make I get this error related to --with-imap and
--with-ssl-imap ...I believe
Making all in .
make[1]: Entering directory `/usr/lib/php-4.2.1'
/bin/sh /usr/lib/php-4.2.1/libtool --silent --mode=link gcc -I.
-I/usr/lib/php-4.2.1/ -I/usr/lib/php-4.2.1/main -I/usr/lib/php-4.2.1
-I/usr/include/apache -I/usr/lib/php-4.2.1/Zend -I/usr/include/imap
-I/usr/libmcal/ -I/usr/lib/php-4.2.1/ext/mysql/libmysql
-I/usr/lib/php-4.2.1/ext/xml/expat -DLINUX=22 -DDEV_RANDOM=/dev/random -DEAPI
-DEAPI_MM -I/usr/lib/php-4.2.1/TSRM -g -O2 -prefer-pic -o libphp4.la -rpath
/usr/lib/php-4.2.1/libs -avoid-version -L/usr/bin/openssl/lib -L/usr/libmcal/
-R /usr/bin/openssl/lib -R /usr/libmcal/ stub.lo Zend/libZend.la
sapi/apache/libsapi.la main/libmain.la regex/libregex.la
/usr/lib/php-4.2.1/ext/ctype/libctype.la /usr/lib/php-4.2.1/ext/ftp/libftp.la
/usr/lib/php-4.2.1/ext/gettext/libgettext.la
/usr/lib/php-4.2.1/ext/imap/libimap.la /usr/lib/php-4.2.1/ext/mcal/libmcal.la
/usr/lib/php-4.2.1/ext/mysql/libmysql.la /usr/lib/php-4.2.1/ext/pcre/libpcre.la
/usr/lib/php-4.2.1/ext/posix/libposix.la
/usr/lib/php-4.2.1/ext/session/libsession.la
/usr/lib/php-4.2.1/ext/standard/libstandard.la
/usr/lib/php-4.2.1/ext/xml/libxml.la TSRM/libtsrm.la -lmcal -lcrypto -lssl
-lc-client -lcrypt -lintl -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl
make[1]: Leaving directory `/usr/lib/php-4.2.1'
I received this error message-->
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make: *** [all-recursive] Error 1
Mandrake 8.2 PPC
Had to compile own php for use with horde's imp also this is DSO configure.
I hope someone thinks this is a simple question.
Thank You,
-Eric
--- End Message ---
--- Begin Message ---
Hi,
You have done some errornous escapings from
php in your script. I did some fewer modifications and
now script is working. Compare the ?>'s <?'s in my script
and yours. You will get the point.
remove my comments and save it as filename.php (not
html)
regards
Viraj
www.CeyNet.net
//start escape
<? //start escape here
$dbhost = "127.0.0.1";
$dbuser = "username";
$dbpass = "password";
$db = "databssename";
$LoginDB=@mysql_connect($dbhost, $dbuser, $dbpass);
if (! $LoginDB) {
?>//end escape here for the first if block
//start the html content
<p>Unable to connect to the database server at this time.</p>
//end the html content
//start escape for the else part of the script
<?exit();
} else {?>
//end escape for the else part
//start html content for the else part
<html>
<head> <title>Login Page</title></head>
<style type="text/css">body { color: white; background: black; }</style>
<p align="Center"><img src="Banner.png" width="666" height="103" alt="D&D
Resource
page" border="0">"</p> <br><br><br><br><form name="Login" method="Post"
action="<?echo $PHP_SELF?>"> <p align="Center">Login: <input type="text"
name="User Name"> Password: <input type="password" name="Password"><input
type="submit" name="Submit" value="Submit"</p></form><
/html>
//end html content for the else part
//start escape for closing bracket for the else part
<? } ?>
//end the script
-----Original Message-----
From: Shiloh Madsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 3:14 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-INST] Windows Install troubles.
Hi all. Im having difficulty getting PHP up and running with my Windows
system. I am trying to get PHP, Apache and SQL installed and running. I
installed apache, installed PHP, copied the required DLLs into the
apache\modules directory, and added the lines to AddModule and
LoadModule. After doing this, when I try to view a PHP page in my
browser, it shows the raw code/html behind the page. Any ideas why? Im
pasting the page in question below this so you can see it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Login Page</title>
</head>
<?php
$dbhost = "127.0.0.1";
$dbuser = "root";
$dbpass = "invictus";
$db = "LoginInfo";
$LoginDB=@mysql_connect($dbhost, $dbuser, $dbpass);
if (! $LoginDB) {
print "<p>Unable to connect to the database server at this time.</p>";
exit();
} else {
?>
<style type="text/css">
body { color: white; background: black; }
</style>
<p align="Center"><img src="Banner.png" width="666" height="103" alt="D&D
Resource Page" border="0">"</p>
<br><br><br><br>
<form name="Login" method="Post" action="<?echo $PHP_SELF?>">
<p align="Center">
Login: <input type="text" name="User Name">
Password: <input type="password" name="Password">
<input type="submit" name="Submit" value="Submit"
</p>
</form>
<?php
{
?>
</html>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---