php-install Digest 9 Sep 2001 15:47:07 -0000 Issue 450

Topics (messages 4246 through 4254):

Re: RH7.1-PHP4.06-Apache1.3.20 problems !!!
        4246 by: Jani Taskinen

Re: Php on Windows not running!!!  Any help ???
        4247 by: Dennis Butler

Error 400 - Bad Request
        4248 by: Ben Waldher
        4250 by: Julie Meloni

PHP and Linux performance tweaks
        4249 by: Rick Morris
        4251 by: Rasmus Lerdorf

Re: [PHP] Re: [PHP-INST] PHP4 and Apache 1.3.20 DSO mode not working?
        4252 by: Bill Carter

Re: PHP 4.0.6 not working with Apache 1.3.20 on Win Me  (Error 500)
        4253 by: David Rego

php-install ´ÔÀÇ ÀÛÀº°ü½ÉÀÌ Å«ÈûÀ̵˴ϴÙ.
        4254 by: Àå´ö¼ö

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]


----------------------------------------------------------------------



This is fixed in CVS. And PHP 4.0.7..

--Jani



On Fri, 7 Sep 2001, Mike Eheler wrote:

>I've had that problem many times. It comes from compiling apache with
>IMAP support.
>
>It's a real bugger. I've had to disable IMAP support on my development
>machine, and instead create development branches on the production
>server (which somehow miraculously compiled and runs fine with Cyrus
>IMAP) to do IMAP-related development.
>
>Mike
>
>GoGi wrote:
>
>>hy all ,
>>a have big problem with PHP files on my new RH box - where is RH 7.1 - php
>>4.0.6 -Apache 1.3.20 - modssl - openssl
>>i compile stuff like taht :
>>
>>first modssl an openssl
>>then
>>
>>apache:
>>SSL_BASE=../openssl.....
>>./configure
>>--prefix=/usr/local/apache
>>--enable-ssl
>>
>>php :
>>./configure
>>--with-apxs=/usr/local/apache/bin/apxs
>>--with-imap=/usr/lib
>>--with-mysql=/usr/local/mysql
>>--with-zlib
>>--with-gd
>>--with-freetype
>>....
>>then make & make install
>>
>>then i uncomment AddType for php in Apache's httpd.conf and start it.
>>Then look ok .
>>BUT !!! when i look at section where are aded module then i see that php4
>>module is in <IfDefine SSL></IfDefineSSL>
>>but only mod_ssl must be in - so i change this and restart apache.
>>Then i get error like
>>"cannot load module in libexec/libphp4.c
>>:undefined mx_driver
>>
>>what is that ???
>>i got another box with RG 6.2 and php4.0.5 -apache
>>1.3.19 -mysql-modssl-openssl and everything works just fine !
>>here i'm wasting 4 hours of time ;((
>>
>>CAN ANYONE HELP ME !!
>>
>>tnx & regards
>>GoGi
>>
>>
>>
>>
>
>
>
>





Hi,
Did you rename php.ini-dist to php.ini and put a copy of it in your windows directory? 
 Also, with Xitami I had to set a new filter to point the web server to php.exe
ASP is different because the ASP engine runs as a separate app.  PHP runs from the web 
server, so you will have to look at PWS to see how to add new file 
extensions.

Dennis

On Fri, 10 Aug 2001 09:03:39 GMT, [EMAIL PROTECTED] wrote:
> Hello Everyone
> 
> I have installed php on my windows computer running with PWS.
> PHP files are in c:\php folder.
> I have placed test.php file in c:\inetpub\wwwroot folder on which I hav=
> e
> given execute permission.
> When I call it in internet explorer as http://localhost/test.php  it gi=
> ves
> an error as File not found --- Error 500 ?Internal Server Error. Howeve=
> r,
> my ASP files are running perfectly well.
> What does it mean?
> However, when run c:\php\php.exe ?i   it shows some html codes which I
> presume it is in order.
> 
> What should I do to run my PHP files.
> 
> 
> Ajay K. Ratra
> Ludhiana (INDIA)
> [EMAIL PROTECTED]=
> 
> 






I'm running Apache web server as a service on win2k, I manually installed,
and the files are in C:\php2\. Here is the php part of my srm.conf:

ScriptAlias /php/ "c:/php2/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "php.exe"

The Error Log Says:

[Thu Sep 06 22:20:28 2001] [error] [client 192.168.1.1] Invalid URI in
request GET /upster.php HTTP/1.1






Saturday, September 08, 2001, 1:11:41 PM, you wrote:

BW> I'm running Apache web server as a service on win2k, I manually installed,
BW> and the files are in C:\php2\. Here is the php part of my srm.conf:

BW> ScriptAlias /php/ "c:/php2/"
BW> AddType application/x-httpd-php .php
BW> AddType application/x-httpd-php .php3
BW> AddType application/x-httpd-php .phtml
BW> Action application/x-httpd-php "php.exe"

BW> The Error Log Says:

BW> [Thu Sep 06 22:20:28 2001] [error] [client 192.168.1.1] Invalid URI in
BW> request GET /upster.php HTTP/1.1

Action application/x-httpd-php /php/php.exe


- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com





Hi all,

I am helping someone to reconfigure PHP for a high-traffic site (well...
high traffic for one PC to handle, at least).

The server is hosted by Rackspace.com, running Linux kernel 2.2.19. I have
done all the standard Apache/PHP/MySQL performance tweaks, and I have raised
the filesystem and inode limits in /proc/sys/fs.

I have read that one performance tweak for Linux is to mount the filesystem
with the "noatime" option (meaning the kernel does not update the timestamp
whenever files are accessed).

The site relies highly on PHP sessions, and it seems to me that there would
be trouble with the /tmp/ session files if I configure Linux to mount the
filesystem with the "noatime" option. As I understand it, the PHP session
mechanism runs a "stat" operation every time it evaluates whether to delete
session files. This being the case, I guess the logical assumption here is
that it reads the access timestamp to decide whether to delete the session
file or not.

Am I right here? Is there any way to use the default session mechanism if I
mount the filesystem with noatime? If not, is my only option to create a
custom session handler?

Also, is there any problem using a RAMdisk partition for the directory to
handle the session files. I suppose theoretically it would be possible to
mount the main filesystem with "noatime", but to create a RAM partition
which *does* update the access timestamp, and have PHP use that for the
session files.

Is there anyone with some experience in this area, who can point me in the
right direction?

Thanks,

Rick Morris





> I am helping someone to reconfigure PHP for a high-traffic site (well...
> high traffic for one PC to handle, at least).
>
> The server is hosted by Rackspace.com, running Linux kernel 2.2.19. I have
> done all the standard Apache/PHP/MySQL performance tweaks, and I have raised
> the filesystem and inode limits in /proc/sys/fs.
>
> I have read that one performance tweak for Linux is to mount the filesystem
> with the "noatime" option (meaning the kernel does not update the timestamp
> whenever files are accessed).
>
> The site relies highly on PHP sessions, and it seems to me that there would
> be trouble with the /tmp/ session files if I configure Linux to mount the
> filesystem with the "noatime" option. As I understand it, the PHP session
> mechanism runs a "stat" operation every time it evaluates whether to delete
> session files. This being the case, I guess the logical assumption here is
> that it reads the access timestamp to decide whether to delete the session
> file or not.
>
> Am I right here? Is there any way to use the default session mechanism if I
> mount the filesystem with noatime? If not, is my only option to create a
> custom session handler?
>
> Also, is there any problem using a RAMdisk partition for the directory to
> handle the session files. I suppose theoretically it would be possible to
> mount the main filesystem with "noatime", but to create a RAM partition
> which *does* update the access timestamp, and have PHP use that for the
> session files.

You could use the shared memory session store.

ie.

session.save_handler = mm

Or you could create a ramdisk and point PHP at that.

session.save_path = /your/ramdisk

But yes, if you use the standard "files" save_handler on a filesystem that
does not set the atime it will not work.  You can see that for yourself in
the ext/session/mod_files.c file in the ps_files_cleanup_dir() function:

                /* check whether its last access was more than maxlifet ago */
                if (VCWD_STAT(buf, &sbuf) == 0 &&
                        (now - sbuf.st_atime) > maxlifetime) {
                    VCWD_UNLINK(buf);
                    nrdels++;
                }

Of course, you could set the gc to 0 and do your own garbage collection on
your session files by some other criteria.  Not quite sure how you would
determine old and non-active sessions without an atime though.

-Rasmus





That's right, it is. I had installed that rpm and that version of apxs
is what I had been pointing to. I didn't examine the one from the rpm
or the one that gets built (looked like it happened on the fly!) with 
the apache sources but their sizes are a lot different.


Rasmus Lerdorf wrote:
> 
> apxs is in the apache-devel rpm
> 
> On Thu, 6 Sep 2001, Bill Carter wrote:
> 
> > aHAH! I finally got it working by using most of the elements of the configure
> > lines
> > you guys provided. I'm very grateful for your help.
> >
> > I think the major difference in what you did and what I had originally
> > attempted
> > was the apxs program. I'm using RedHat  7.x which doesn't install with apxs
> > by default. I didn't realize that apxs appears in the apache bin directory as
> > part
> > of the source, instead I loaded it from an rpm on the RedHat distro disk. So
> > where
> > you used "--with-apxs=/usr/local/apache/bin/apxs" I just said  "--with-apxs"
> > which picked it up elsewhere.
> >
> > apxs appears to be a Perl script and the one in /usr/local/apache/bin is
> > different
> > from the one I loaded. I think that script is what constructs the DSO, so maybe
> > it
> > is important to use the apxs which comes with the version of Apache you want
> > to use. I'll try to experiment with this further when I get some time.
> >
> > I don't think I would have been able to figure this out without help from Peter
> >
> > Clarke and  I82much, thanks gentlemen!
> >
> >
> >
> >
> >




Tks for the response. (I posted this twice as each time I got a SMTP error 
#5 message and was not sure whether my message made it to the list.)

At 09:53 AM 9/4/2001, Phil Driscoll wrote:
>On Tuesday 04 September 2001 4:52 pm, David Rego wrote:
> > I put PHP on D: (D:\PHP).
> >   ScriptAlias /PHP/ "D:/Data/Web Site/PHP/"
>should therefore be
>    ScriptAlias /PHP/ "D:/PHP/"
>
>And
> >      Action application/x-httpd-php "D:/PHP/php.exe"
>should be
>       Action application/x-httpd-php "/PHP/php.exe"
>
>Though lower case pgp throughout would seem to be the convention.

I did the above and got a 404. So I moved the test file from "D:/Data/Web 
Site/PHP/" to "D:/PHP/" and got the original 500 error.


>Cheers
>--
>Phil Driscoll
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





¾Ë¸²ÆÇ-°¡¸ÍÁ¡             
 Ȥ½Ã! ÀÌ ¾ÆÀ̸¦ º»ÀûÀÌ ÀÖ³ª¿ä?     ¼º     ¸í  : ÃÖÁ¤À±
  ¼º     º° : ¿©
  ½Å     Àå : 110 Cm
  µÎ     ¹ß : Çϳª·Î  ¹­Àº Àå¹ß
  »ó     ÀÇ : Çϴûö  Ƽ¼ÅÃ÷
  ÇÏ     ÀÇ : Çϴûö  ¹Ý¹ÙÁö
  ½Å     ¹ß : Çϴûö  »÷µé
  ½ÅüƯ¡ : Çϴûö ¸ðÀÚ Âø¿ëÇÔ
  ¹ß»ýÀÏÀÚ : 2001-08-08
  ¹ß»ýÀå¼Ò : ºÎ»ê  ÇØ¿î´ëÈ­    Àå½Ç   ¼º     ¸í  : ¹ÚÁöÀÌ
  ¼º     º° : ¿©
  ½Å     Àå : Cm
  µÎ     ¹ß :  ´Ü¹ß¸Ó¸®
  »ó     ÀÇ :  Èò»öƼ¼ÅÃ÷
  ÇÏ     ÀÇ : ûġ¸¶
  ½Å     ¹ß :  °ËÁ¤±¸µÎ
  ½ÅüƯ¡ : ÇÎÅ©»ö ¸Ó¸®¶ì,ÅëÅëÇÑ  Æí
  ¹ß»ýÀÏÀÚ : 2001-05-05
  ¹ß»ýÀå¼Ò : ÀÎõ¿ù¹Ìµµ ³îÀ̵¿»ê    
                SVCMARK ¿¡¼­´Â ¾î¸°ÀÌ Ã£¾ÆÁÖ±â Á¾ÇÕ¼¾ÅÍ¿Í Çù·ÂÇÏ¿© ¹Ì¾ÆÃ£±â¿îµ¿¿¡ 
Âü¿©Çϰí ÀÖ½À´Ï´Ù.
  ¿©·¯ºÐÀÇ ÀÛÀº °ü½ÉÀÌ ´©±º°¡¿¡°Ô´Â Å« ÈûÀÌ µÉ¼öÀÖ½À´Ï´Ù.
      ¾î¸°ÀÌ Ã£¾ÆÁÖ±â Á¾ÇÕ¼¾ÅÍ
  ÀüÈ­ : (02)777-0182 ÆÑ½º  : (02)756-4256
     
    
 
   
    
      
     
   
  [[[  ¹ß½ÅÀÚ Ç¥½Ã ´Ü¸»±â  ¹«·á ÁõÁ¤  ]]]
  (ȸ¿ø °¡ÀÔÀÚ¿¡ ÇÑÇÔ) 
   
     
 ÁÖ¿ä¾÷¹« : ÃâÀå A/S, À¯Áöº¸¼ö, ³×Æ®¿öÅ©, ¾÷±×·¹À̵å, µ¥ÀÌŸ º¹±¸,  ȨÆäÀÌÁö Á¦ÀÛ, 
°¡°ÝÁ¤º¸
  
    SVCMARK.COMÀÇ  ÁÖ¿ä ÆäÀÌÁö ¼Ò°³
      Ȩ
    ¼­ºñ½º¸¶Å©ÀÇ ÁÖ¿ä³»¿ë ¼Ò°³
      ÄÄÇ»ÅÍ °­ÁÂ
    Çϵå¿þ¾î,ÇÁ·Î±×·¥,ÀÎÅͳÝ,³×Æ®¿öÅ© °­ÁÂ..
      ÀÚ·á½Ç
    µå¶óÀ̹ö,À¯Æ¿,¸ÖƼ¹Ìµð¾î,ÀÎÅÍ³Ý ÀÚ·á..
      ÄÄÇ»ÅÍÁ¤º¸
    ½ÅÁ¦Ç°Á¤º¸,Äİü·Ã ´º½º,Á¦Ç°»ç¿ë±â..
      ȨÆäÀÌÁö Á¦ÀÛ
    ȨÆäÀÌÁö Á¦ÀÛ°ü·Ã(°¡°Ý.Æ÷Æ®Æú¸®¿À..)
      °¡°ÝÁ¤º¸
    ÄÄÇ»ÅÍÀÇ ¸ðµç°¡°ÝÀÌ ½Ç½Ã°£À¸·Î ¹«·áÁ¦°ø
     
 ±âŸ À̺¥Æ®¿Í °ü·ÃµÈ ¹®ÀÇ »çÇ×À̳ª, ºÒÆí »çÇ׿¡ ´ëÇÑ ½Å°í´Â ¼­ÆÛ¿¡°Ô  ¹®ÀÇ Çϼ¼¿ä. 
 
     ¹Ù·Î°¡±â¡æ.  
 
    
    SVCMARK.COM
        
  
            Çã¶ô¾øÀÌ ¸ÞÀÏÀ» º¸³»°ÔµÇ¾î Á˼ÛÇÕ´Ï´Ù.
º»¸ÞÀÏÀº °¢Á¾ °Ô½ÃÆÇÀ» ÅëÇØ ¼öÁýÇÑ Á¤º¸¸¦ Åä´ë·Î Ȱ¿ë ÇÏ¿´À½À» ¾Ë·Áµå¸®¸ç, 
 À̸ÞÀÏ Á¤º¸ÀÌ¿ÜÀÇ °³ÀÎÁ¤º¸´Â º¸À¯Çϰí ÀÖÁö¾Ê½À´Ï´Ù. ¸¸¾à º» ¸ÞÀÏÀ» ¹ÞÁö ¾Ê±â¸¦ 
¿øÇϽôºÐÀº 
 °ü¸®ÀÚ¿¡°Ô ¿¬¶ôÁֽñ⠹ٶø´Ï´Ù. (Áï½Ã ó¸®ÇØ µå¸®°Ú½À´Ï´Ù.)     ¼ö½Å°ÅºÎ  
    
              


Reply via email to