Re: [PHP] PHP APACHE SAVE AS

2009-12-02 Thread Julian Muscat Doublesin
Hello Everyone,

I solved the mysql issue too. thanks for your help. I had to change the root
the the extnsion directory as it was set to the linux style. Also found out
that for windows it is always best to use C:/ instead of C:\ This works in
some situations and in others it does not.

On Fri, Nov 27, 2009 at 10:02 PM, Bastien Koert phps...@gmail.com wrote:

  On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
 a...@ashleysheridan.co.uk wrote:
  On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote:
 
  Hi,
 
  Just to update every one. This solution below worked perfectly. Thank
 you
  very much Jonathan. I have one other question though. Can anyone help me
 on
  the folowing. Database Error: Unable to connect to the database:The
 MySQL
  adapter mysql is not available.
 
  Thank you
 
  Julian
 
  On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer tapi...@gmail.com
 wrote:
 
   You are probably missing something like this in the apache httpd.conf:
  
   LoadModule php5_module c:/PHP/php5apache2_2.dll
   PHPIniDir c:/PHP/php.ini
   AddType application/x-httpd-php .php
   DirectoryIndex index.php index.html index.html.var
  
   Regards,
  
   Jonathan
  
   On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
   opensourc...@gmail.com wrote:
Hello Everyone,
   
I have installed PHP, Apache and MySQL on a Windows 7 machine
 :(.
   I
would prefer linux or unix :)
   
These have been setup and working correctly. However when I access a
 php
page. I get the save as dialog. Has anyone ever experinced such a
   situation.
Can anyone please advise.
   
Thank you very much in advance.
   
Julian
   
  
 
 
  It sounds like you've installed both PHP and MySQL, but not the
  php-mysql module, which allows PHP to talk to the database. Depending on
  how you installed PHP, there could be a variety of ways to fix this.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 
 

 Try opening the php.ini file and uncommenting the line

 ;extension = php_mysql.dll;

 (by uncommenting i mean remove the first semi-colon). save the file
 and restart the apache service

 --

 Bastien

 Cat, the other other white meat



Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread Tanveer Chowdhury
That means its not recognizing the php code and thats why its giving the
download prompt. why not install xampp or wamp.

On Fri, Nov 27, 2009 at 4:24 AM, Julian Muscat Doublesin 
opensourc...@gmail.com wrote:

 Hello Everyone,

 I have installed PHP, Apache and MySQL on a Windows 7 machine :(. I
 would prefer linux or unix :)

 These have been setup and working correctly. However when I access a php
 page. I get the save as dialog. Has anyone ever experinced such a
 situation.
 Can anyone please advise.

 Thank you very much in advance.

 Julian




-- 
- Ŧ₳ᶇṾḛḗƦ


Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread Lester Caine

Julian Muscat Doublesin wrote:

Hello Everyone,

I have installed PHP, Apache and MySQL on a Windows 7 machine :(. I
would prefer linux or unix :)

These have been setup and working correctly. However when I access a php
page. I get the save as dialog. Has anyone ever experinced such a situation.
Can anyone please advise.

Thank you very much in advance.


Apache obviously does not know how to handle the .php files, so you need to 
update httpd.conf so it can both handle them and load php.


Things get a little tricky depending on WHICH pache and php which you do not 
say, but http://uk3.php.net/manual/en/install.windows.apache2.php should point 
you in the right direction ...


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread Jonathan Tapicer
You are probably missing something like this in the apache httpd.conf:

LoadModule php5_module c:/PHP/php5apache2_2.dll
PHPIniDir c:/PHP/php.ini
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html index.html.var

Regards,

Jonathan

On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
opensourc...@gmail.com wrote:
 Hello Everyone,

 I have installed PHP, Apache and MySQL on a Windows 7 machine :(. I
 would prefer linux or unix :)

 These have been setup and working correctly. However when I access a php
 page. I get the save as dialog. Has anyone ever experinced such a situation.
 Can anyone please advise.

 Thank you very much in advance.

 Julian


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread Julian Muscat Doublesin
Hi,

Just to update every one. This solution below worked perfectly. Thank you
very much Jonathan. I have one other question though. Can anyone help me on
the folowing. Database Error: Unable to connect to the database:The MySQL
adapter mysql is not available.

Thank you

Julian

On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer tapi...@gmail.com wrote:

 You are probably missing something like this in the apache httpd.conf:

 LoadModule php5_module c:/PHP/php5apache2_2.dll
 PHPIniDir c:/PHP/php.ini
 AddType application/x-httpd-php .php
 DirectoryIndex index.php index.html index.html.var

 Regards,

 Jonathan

 On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
 opensourc...@gmail.com wrote:
  Hello Everyone,
 
  I have installed PHP, Apache and MySQL on a Windows 7 machine :(.
 I
  would prefer linux or unix :)
 
  These have been setup and working correctly. However when I access a php
  page. I get the save as dialog. Has anyone ever experinced such a
 situation.
  Can anyone please advise.
 
  Thank you very much in advance.
 
  Julian
 



Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread Ashley Sheridan
On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote:

 Hi,
 
 Just to update every one. This solution below worked perfectly. Thank you
 very much Jonathan. I have one other question though. Can anyone help me on
 the folowing. Database Error: Unable to connect to the database:The MySQL
 adapter mysql is not available.
 
 Thank you
 
 Julian
 
 On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer tapi...@gmail.com wrote:
 
  You are probably missing something like this in the apache httpd.conf:
 
  LoadModule php5_module c:/PHP/php5apache2_2.dll
  PHPIniDir c:/PHP/php.ini
  AddType application/x-httpd-php .php
  DirectoryIndex index.php index.html index.html.var
 
  Regards,
 
  Jonathan
 
  On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
  opensourc...@gmail.com wrote:
   Hello Everyone,
  
   I have installed PHP, Apache and MySQL on a Windows 7 machine :(.
  I
   would prefer linux or unix :)
  
   These have been setup and working correctly. However when I access a php
   page. I get the save as dialog. Has anyone ever experinced such a
  situation.
   Can anyone please advise.
  
   Thank you very much in advance.
  
   Julian
  
 


It sounds like you've installed both PHP and MySQL, but not the
php-mysql module, which allows PHP to talk to the database. Depending on
how you installed PHP, there could be a variety of ways to fix this.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread Bastien Koert
On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
 On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote:

 Hi,

 Just to update every one. This solution below worked perfectly. Thank you
 very much Jonathan. I have one other question though. Can anyone help me on
 the folowing. Database Error: Unable to connect to the database:The MySQL
 adapter mysql is not available.

 Thank you

 Julian

 On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer tapi...@gmail.com wrote:

  You are probably missing something like this in the apache httpd.conf:
 
  LoadModule php5_module c:/PHP/php5apache2_2.dll
  PHPIniDir c:/PHP/php.ini
  AddType application/x-httpd-php .php
  DirectoryIndex index.php index.html index.html.var
 
  Regards,
 
  Jonathan
 
  On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
  opensourc...@gmail.com wrote:
   Hello Everyone,
  
   I have installed PHP, Apache and MySQL on a Windows 7 machine :(.
  I
   would prefer linux or unix :)
  
   These have been setup and working correctly. However when I access a php
   page. I get the save as dialog. Has anyone ever experinced such a
  situation.
   Can anyone please advise.
  
   Thank you very much in advance.
  
   Julian
  
 


 It sounds like you've installed both PHP and MySQL, but not the
 php-mysql module, which allows PHP to talk to the database. Depending on
 how you installed PHP, there could be a variety of ways to fix this.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk




Try opening the php.ini file and uncommenting the line

;extension = php_mysql.dll;

(by uncommenting i mean remove the first semi-colon). save the file
and restart the apache service

-- 

Bastien

Cat, the other other white meat

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread Jim Lucas

Bastien Koert wrote:

On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:

On Fri, 2009-11-27 at 17:10 +0100, Julian Muscat Doublesin wrote:


Hi,

Just to update every one. This solution below worked perfectly. Thank you
very much Jonathan. I have one other question though. Can anyone help me on
the folowing. Database Error: Unable to connect to the database:The MySQL
adapter mysql is not available.

Thank you

Julian

On Fri, Nov 27, 2009 at 1:34 PM, Jonathan Tapicer tapi...@gmail.com wrote:


You are probably missing something like this in the apache httpd.conf:

LoadModule php5_module c:/PHP/php5apache2_2.dll
PHPIniDir c:/PHP/php.ini
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html index.html.var

Regards,

Jonathan

On Fri, Nov 27, 2009 at 6:24 AM, Julian Muscat Doublesin
opensourc...@gmail.com wrote:

Hello Everyone,

I have installed PHP, Apache and MySQL on a Windows 7 machine :(.

I

would prefer linux or unix :)

These have been setup and working correctly. However when I access a php
page. I get the save as dialog. Has anyone ever experinced such a

situation.

Can anyone please advise.

Thank you very much in advance.

Julian



It sounds like you've installed both PHP and MySQL, but not the
php-mysql module, which allows PHP to talk to the database. Depending on
how you installed PHP, there could be a variety of ways to fix this.

Thanks,
Ash
http://www.ashleysheridan.co.uk





Try opening the php.ini file and uncommenting the line

;extension = php_mysql.dll;

(by uncommenting i mean remove the first semi-colon). save the file
and restart the apache service



My guess is, that since he said that he is getting an error returned from the function call, that 
the function is being loaded, so the php_mysql.so is being loaded fine.  But the problem, more then 
likely, lies with the arguments being passed to the mysql_connect function call itself.


Check the values that you are passing to your function.  But first, make sure that mysql is actually 
 running.  You should be able to use phpmyadmin, with the correct DB settings, and have it connect 
to the DB.  If that doesn't work, try using a command line utility that came with your mysql 
installation.


Jim Lucas

--
Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP APACHE SAVE AS

2009-11-27 Thread kranthi
as jim stated you'll get a undefined function error if php_mysql
extension is not loaded.
in this case probably the MySql server is not running, or not running
on the default port (most likely the former)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Bastien Koert
On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
jason-lists@lixfeld.ca wrote:
 I have no doubt that this is due to an update that was done on my system at
 some point, but unfortunately I can't pinpoint where.  The upshot is that
 PHP is completely unresponsive for me when run from Apache and I'm not sure
 where to look.  I recognize that this isn't an apache support list.  This
 message is being cc'd there too.

 The system is FreeBSD 6.1-RELEASE-p15.  PHP 5.2.11 from ports.

 The only error I get in my php log is this:

 [27-Oct-2009 13:05:00] PHP Fatal error:  Call to undefined function
 preg_match() in
 /usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php
 on line 125

 Now I've checked and double checked that pcre support is built into php.
  I'm not sure if there's a command that I can run in php to show all the
 extensions that are installed or something, but I'm a bazillion percent sure
 that it's there, so I don't believe that's the cause of the error.  I'm
 reasonably sure of this because the preg_match error thrown every minute
 when a cron job runs, I have a .php that calls phpinfo() that shows a blank
 screen when hit from a browser.

 My problem is that I don't know how to troubleshoot this.

 I can seem to run PHP from the CLI just fine, so does this look more like an
 apache issue or perhaps some php module or extension that talks to apache?

 [r...@ricky /]# php
 ?php
 phpinfo();
 ?
 phpinfo()
 PHP Version = 5.2.11

 System = FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD
 6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007
 jlixf...@ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64
 Build Date = Oct 26 2009 15:38:06
 Configure Command =  './configure'  '--with-layout=GNU'
 '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
 '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
 '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs'
 '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6'
 '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/'
 '--build=amd64-portbld-freebsd6.1'
 Server API = Command Line Interface
 Virtual Directory Support = disabled
 Configuration File (php.ini) Path = /usr/local/etc
 Loaded Configuration File = /usr/local/etc/php.ini
 Scan this dir for additional .ini files = /usr/local/etc/php
 additional .ini files parsed = /usr/local/etc/php/extensions.ini
 ...
 ...
 ...
 etc
 ...

 [r...@ricky /]# pkg_info | grep php5
 php5-5.2.11_1       PHP Scripting Language
 php5-ctype-5.2.11_1 The ctype shared extension for php
 php5-dom-5.2.11_1   The dom shared extension for php
 php5-extensions-1.3 A meta-port to install PHP extensions
 php5-filter-5.2.11_1 The filter shared extension for php
 php5-gd-5.2.11_1    The gd shared extension for php
 php5-gettext-5.2.11_1 The gettext shared extension for php
 php5-iconv-5.2.11_1 The iconv shared extension for php
 php5-imap-5.2.11_1  The imap shared extension for php
 php5-ldap-5.2.11_1  The ldap shared extension for php
 php5-mbstring-5.2.11_1 The mbstring shared extension for php
 php5-mysql-5.2.11_1 The mysql shared extension for php
 php5-openssl-5.2.11_1 The openssl shared extension for php
 php5-pcre-5.2.11_1  The pcre shared extension for php
 php5-pdo-5.2.11_1   The pdo shared extension for php
 php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php
 php5-posix-5.2.11_1 The posix shared extension for php
 php5-session-5.2.11_1 The session shared extension for php
 php5-simplexml-5.2.11_1 The simplexml shared extension for php
 php5-spl-5.2.11_1   The spl shared extension for php
 php5-sqlite-5.2.11_1 The sqlite shared extension for php
 php5-tokenizer-5.2.11_1 The tokenizer shared extension for php
 php5-xml-5.2.11_1   The xml shared extension for php
 php5-xmlreader-5.2.11_1 The xmlreader shared extension for php
 php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php
 [r...@ricky /]#

 Any ideas for a completely ignorant, non-developer type?

 Thanks in advance.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



create a small file with this code

?php phpinfo(); ?

which will tell you want modules are enabled in php

-- 

Bastien

Cat, the other other white meat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote:

 On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
 jason-lists@lixfeld.ca wrote:
  I have no doubt that this is due to an update that was done on my system at
  some point, but unfortunately I can't pinpoint where.  The upshot is that
  PHP is completely unresponsive for me when run from Apache and I'm not sure
  where to look.  I recognize that this isn't an apache support list.  This
  message is being cc'd there too.
 
  The system is FreeBSD 6.1-RELEASE-p15.  PHP 5.2.11 from ports.
 
  The only error I get in my php log is this:
 
  [27-Oct-2009 13:05:00] PHP Fatal error:  Call to undefined function
  preg_match() in
  /usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php
  on line 125
 
  Now I've checked and double checked that pcre support is built into php.
   I'm not sure if there's a command that I can run in php to show all the
  extensions that are installed or something, but I'm a bazillion percent sure
  that it's there, so I don't believe that's the cause of the error.  I'm
  reasonably sure of this because the preg_match error thrown every minute
  when a cron job runs, I have a .php that calls phpinfo() that shows a blank
  screen when hit from a browser.
 
  My problem is that I don't know how to troubleshoot this.
 
  I can seem to run PHP from the CLI just fine, so does this look more like an
  apache issue or perhaps some php module or extension that talks to apache?
 
  [r...@ricky /]# php
  ?php
  phpinfo();
  ?
  phpinfo()
  PHP Version = 5.2.11
 
  System = FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD
  6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007
  jlixf...@ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64
  Build Date = Oct 26 2009 15:38:06
  Configure Command =  './configure'  '--with-layout=GNU'
  '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
  '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
  '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs'
  '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6'
  '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/'
  '--build=amd64-portbld-freebsd6.1'
  Server API = Command Line Interface
  Virtual Directory Support = disabled
  Configuration File (php.ini) Path = /usr/local/etc
  Loaded Configuration File = /usr/local/etc/php.ini
  Scan this dir for additional .ini files = /usr/local/etc/php
  additional .ini files parsed = /usr/local/etc/php/extensions.ini
  ...
  ...
  ...
  etc
  ...
 
  [r...@ricky /]# pkg_info | grep php5
  php5-5.2.11_1   PHP Scripting Language
  php5-ctype-5.2.11_1 The ctype shared extension for php
  php5-dom-5.2.11_1   The dom shared extension for php
  php5-extensions-1.3 A meta-port to install PHP extensions
  php5-filter-5.2.11_1 The filter shared extension for php
  php5-gd-5.2.11_1The gd shared extension for php
  php5-gettext-5.2.11_1 The gettext shared extension for php
  php5-iconv-5.2.11_1 The iconv shared extension for php
  php5-imap-5.2.11_1  The imap shared extension for php
  php5-ldap-5.2.11_1  The ldap shared extension for php
  php5-mbstring-5.2.11_1 The mbstring shared extension for php
  php5-mysql-5.2.11_1 The mysql shared extension for php
  php5-openssl-5.2.11_1 The openssl shared extension for php
  php5-pcre-5.2.11_1  The pcre shared extension for php
  php5-pdo-5.2.11_1   The pdo shared extension for php
  php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php
  php5-posix-5.2.11_1 The posix shared extension for php
  php5-session-5.2.11_1 The session shared extension for php
  php5-simplexml-5.2.11_1 The simplexml shared extension for php
  php5-spl-5.2.11_1   The spl shared extension for php
  php5-sqlite-5.2.11_1 The sqlite shared extension for php
  php5-tokenizer-5.2.11_1 The tokenizer shared extension for php
  php5-xml-5.2.11_1   The xml shared extension for php
  php5-xmlreader-5.2.11_1 The xmlreader shared extension for php
  php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php
  [r...@ricky /]#
 
  Any ideas for a completely ignorant, non-developer type?
 
  Thanks in advance.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 create a small file with this code
 
 ?php phpinfo(); ?
 
 which will tell you want modules are enabled in php
 
 -- 
 
 Bastien
 
 Cat, the other other white meat
 

He already mentioned that phpinfo() fails.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Jim Lucas
Ashley Sheridan wrote:
 On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote:
 
 On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
 jason-lists@lixfeld.ca wrote:
 I have no doubt that this is due to an update that was done on my system at
 some point, but unfortunately I can't pinpoint where.  The upshot is that
 PHP is completely unresponsive for me when run from Apache and I'm not sure
 where to look.  I recognize that this isn't an apache support list.  This
 message is being cc'd there too.

 The system is FreeBSD 6.1-RELEASE-p15.  PHP 5.2.11 from ports.

 The only error I get in my php log is this:

 [27-Oct-2009 13:05:00] PHP Fatal error:  Call to undefined function
 preg_match() in
 /usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php
 on line 125

 Now I've checked and double checked that pcre support is built into php.
  I'm not sure if there's a command that I can run in php to show all the
 extensions that are installed or something, but I'm a bazillion percent sure
 that it's there, so I don't believe that's the cause of the error.  I'm
 reasonably sure of this because the preg_match error thrown every minute
 when a cron job runs, I have a .php that calls phpinfo() that shows a blank
 screen when hit from a browser.

 My problem is that I don't know how to troubleshoot this.

 I can seem to run PHP from the CLI just fine, so does this look more like an
 apache issue or perhaps some php module or extension that talks to apache?

 [r...@ricky /]# php
 ?php
 phpinfo();
 ?
 phpinfo()
 PHP Version = 5.2.11

 System = FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD
 6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007
 jlixf...@ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64
 Build Date = Oct 26 2009 15:38:06
 Configure Command =  './configure'  '--with-layout=GNU'
 '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
 '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
 '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs'
 '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6'
 '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/'
 '--build=amd64-portbld-freebsd6.1'
 Server API = Command Line Interface
 Virtual Directory Support = disabled
 Configuration File (php.ini) Path = /usr/local/etc
 Loaded Configuration File = /usr/local/etc/php.ini
 Scan this dir for additional .ini files = /usr/local/etc/php
 additional .ini files parsed = /usr/local/etc/php/extensions.ini
 ...
 ...
 ...
 etc
 ...

 [r...@ricky /]# pkg_info | grep php5
 php5-5.2.11_1   PHP Scripting Language
 php5-ctype-5.2.11_1 The ctype shared extension for php
 php5-dom-5.2.11_1   The dom shared extension for php
 php5-extensions-1.3 A meta-port to install PHP extensions
 php5-filter-5.2.11_1 The filter shared extension for php
 php5-gd-5.2.11_1The gd shared extension for php
 php5-gettext-5.2.11_1 The gettext shared extension for php
 php5-iconv-5.2.11_1 The iconv shared extension for php
 php5-imap-5.2.11_1  The imap shared extension for php
 php5-ldap-5.2.11_1  The ldap shared extension for php
 php5-mbstring-5.2.11_1 The mbstring shared extension for php
 php5-mysql-5.2.11_1 The mysql shared extension for php
 php5-openssl-5.2.11_1 The openssl shared extension for php
 php5-pcre-5.2.11_1  The pcre shared extension for php
 php5-pdo-5.2.11_1   The pdo shared extension for php
 php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php
 php5-posix-5.2.11_1 The posix shared extension for php
 php5-session-5.2.11_1 The session shared extension for php
 php5-simplexml-5.2.11_1 The simplexml shared extension for php
 php5-spl-5.2.11_1   The spl shared extension for php
 php5-sqlite-5.2.11_1 The sqlite shared extension for php
 php5-tokenizer-5.2.11_1 The tokenizer shared extension for php
 php5-xml-5.2.11_1   The xml shared extension for php
 php5-xmlreader-5.2.11_1 The xmlreader shared extension for php
 php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php
 [r...@ricky /]#

 Any ideas for a completely ignorant, non-developer type?

 Thanks in advance.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 create a small file with this code

 ?php phpinfo(); ?

 which will tell you want modules are enabled in php

 -- 

 Bastien

 Cat, the other other white meat

 
 He already mentioned that phpinfo() fails.
 
 Thanks,
 Ash
 http://www.ashleysheridan.co.uk
 
 
 

No, he mentioned that the page that he navigates to fails.

My best guess would be that he is getting a fatal error, like he mentioned
above, which is preventing the output of the phpinfo() to be displayed.

He needs a stripped down file that has nothing but this in it.

?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
phpinfo();
?

If that still doesn't work, the op needs to set the error level and error
reporting options in his php.ini so it will 

RE: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Yuri Yarlei

Hi all,

 

If the basic functions of php not work, maybe the extension for php5 or 4 are 
disabled, or the library is missing, sometimes apache does not show the erros 
for missing library, or yet, the library for php4 or 5 are both on, or they 
crash

Yuri Yarlei.
www.yuriyarlei.net (under construction)
Programmer PHP, JAVA, CSS, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.



 
 Date: Tue, 27 Oct 2009 07:59:16 -0700
 From: li...@cmsws.com
 To: a...@ashleysheridan.co.uk
 CC: phps...@gmail.com; jason-lists@lixfeld.ca; php-general@lists.php.net
 Subject: Re: [PHP] PHP+Apache suddenly not working
 
 Ashley Sheridan wrote:
  On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote:
  
  On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
  jason-lists@lixfeld.ca wrote:
  I have no doubt that this is due to an update that was done on my system 
  at
  some point, but unfortunately I can't pinpoint where. The upshot is that
  PHP is completely unresponsive for me when run from Apache and I'm not 
  sure
  where to look. I recognize that this isn't an apache support list. This
  message is being cc'd there too.
 
  The system is FreeBSD 6.1-RELEASE-p15. PHP 5.2.11 from ports.
 
  The only error I get in my php log is this:
 
  [27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined function
  preg_match() in
  /usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php
  on line 125
 
  Now I've checked and double checked that pcre support is built into php.
  I'm not sure if there's a command that I can run in php to show all the
  extensions that are installed or something, but I'm a bazillion percent 
  sure
  that it's there, so I don't believe that's the cause of the error. I'm
  reasonably sure of this because the preg_match error thrown every minute
  when a cron job runs, I have a .php that calls phpinfo() that shows a 
  blank
  screen when hit from a browser.
 
  My problem is that I don't know how to troubleshoot this.
 
  I can seem to run PHP from the CLI just fine, so does this look more like 
  an
  apache issue or perhaps some php module or extension that talks to apache?
 
  [r...@ricky /]# php
  ?php
  phpinfo();
  ?
  phpinfo()
  PHP Version = 5.2.11
 
  System = FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD
  6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007
  jlixf...@ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64
  Build Date = Oct 26 2009 15:38:06
  Configure Command = './configure' '--with-layout=GNU'
  '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
  '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
  '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs'
  '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6'
  '--prefix=/usr/local' '--mandir=/usr/local/man' 
  '--infodir=/usr/local/info/'
  '--build=amd64-portbld-freebsd6.1'
  Server API = Command Line Interface
  Virtual Directory Support = disabled
  Configuration File (php.ini) Path = /usr/local/etc
  Loaded Configuration File = /usr/local/etc/php.ini
  Scan this dir for additional .ini files = /usr/local/etc/php
  additional .ini files parsed = /usr/local/etc/php/extensions.ini
  ...
  ...
  ...
  etc
  ...
 
  [r...@ricky /]# pkg_info | grep php5
  php5-5.2.11_1 PHP Scripting Language
  php5-ctype-5.2.11_1 The ctype shared extension for php
  php5-dom-5.2.11_1 The dom shared extension for php
  php5-extensions-1.3 A meta-port to install PHP extensions
  php5-filter-5.2.11_1 The filter shared extension for php
  php5-gd-5.2.11_1 The gd shared extension for php
  php5-gettext-5.2.11_1 The gettext shared extension for php
  php5-iconv-5.2.11_1 The iconv shared extension for php
  php5-imap-5.2.11_1 The imap shared extension for php
  php5-ldap-5.2.11_1 The ldap shared extension for php
  php5-mbstring-5.2.11_1 The mbstring shared extension for php
  php5-mysql-5.2.11_1 The mysql shared extension for php
  php5-openssl-5.2.11_1 The openssl shared extension for php
  php5-pcre-5.2.11_1 The pcre shared extension for php
  php5-pdo-5.2.11_1 The pdo shared extension for php
  php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php
  php5-posix-5.2.11_1 The posix shared extension for php
  php5-session-5.2.11_1 The session shared extension for php
  php5-simplexml-5.2.11_1 The simplexml shared extension for php
  php5-spl-5.2.11_1 The spl shared extension for php
  php5-sqlite-5.2.11_1 The sqlite shared extension for php
  php5-tokenizer-5.2.11_1 The tokenizer shared extension for php
  php5-xml-5.2.11_1 The xml shared extension for php
  php5-xmlreader-5.2.11_1 The xmlreader shared extension for php
  php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php
  [r...@ricky /]#
 
  Any ideas for a completely ignorant, non-developer type?
 
  Thanks in advance.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit

RE: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Yuri Yarlei

Hi all,

 

If the basic functions of php not work, maybe the extension for php5 or 4 are 
disabled, or the library is missing, sometimes apache does not show the erros 
for missing library, or yet, the library for php4 or 5 are both on, or they 
crash

Yuri Yarlei.
www.yuriyarlei.net (under construction)
Programmer PHP, JAVA, CSS, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.



 
 Date: Tue, 27 Oct 2009 07:59:16 -0700
 From: li...@cmsws.com
 To: a...@ashleysheridan.co.uk
 CC: phps...@gmail.com; jason-lists@lixfeld.ca; php-general@lists.php.net
 Subject: Re: [PHP] PHP+Apache suddenly not working
 
 Ashley Sheridan wrote:
  On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote:
  
  On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
  jason-lists@lixfeld.ca wrote:
  I have no doubt that this is due to an update that was done on my system 
  at
  some point, but unfortunately I can't pinpoint where. The upshot is that
  PHP is completely unresponsive for me when run from Apache and I'm not 
  sure
  where to look. I recognize that this isn't an apache support list. This
  message is being cc'd there too.
 
  The system is FreeBSD 6.1-RELEASE-p15. PHP 5.2.11 from ports.
 
  The only error I get in my php log is this:
 
  [27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined function
  preg_match() in
  /usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php
  on line 125
 
  Now I've checked and double checked that pcre support is built into php.
  I'm not sure if there's a command that I can run in php to show all the
  extensions that are installed or something, but I'm a bazillion percent 
  sure
  that it's there, so I don't believe that's the cause of the error. I'm
  reasonably sure of this because the preg_match error thrown every minute
  when a cron job runs, I have a .php that calls phpinfo() that shows a 
  blank
  screen when hit from a browser.
 
  My problem is that I don't know how to troubleshoot this.
 
  I can seem to run PHP from the CLI just fine, so does this look more like 
  an
  apache issue or perhaps some php module or extension that talks to apache?
 
  [r...@ricky /]# php
  ?php
  phpinfo();
  ?
  phpinfo()
  PHP Version = 5.2.11
 
  System = FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD
  6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007
  jlixf...@ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64
  Build Date = Oct 26 2009 15:38:06
  Configure Command = './configure' '--with-layout=GNU'
  '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
  '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
  '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs'
  '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6'
  '--prefix=/usr/local' '--mandir=/usr/local/man' 
  '--infodir=/usr/local/info/'
  '--build=amd64-portbld-freebsd6.1'
  Server API = Command Line Interface
  Virtual Directory Support = disabled
  Configuration File (php.ini) Path = /usr/local/etc
  Loaded Configuration File = /usr/local/etc/php.ini
  Scan this dir for additional .ini files = /usr/local/etc/php
  additional .ini files parsed = /usr/local/etc/php/extensions.ini
  ...
  ...
  ...
  etc
  ...
 
  [r...@ricky /]# pkg_info | grep php5
  php5-5.2.11_1 PHP Scripting Language
  php5-ctype-5.2.11_1 The ctype shared extension for php
  php5-dom-5.2.11_1 The dom shared extension for php
  php5-extensions-1.3 A meta-port to install PHP extensions
  php5-filter-5.2.11_1 The filter shared extension for php
  php5-gd-5.2.11_1 The gd shared extension for php
  php5-gettext-5.2.11_1 The gettext shared extension for php
  php5-iconv-5.2.11_1 The iconv shared extension for php
  php5-imap-5.2.11_1 The imap shared extension for php
  php5-ldap-5.2.11_1 The ldap shared extension for php
  php5-mbstring-5.2.11_1 The mbstring shared extension for php
  php5-mysql-5.2.11_1 The mysql shared extension for php
  php5-openssl-5.2.11_1 The openssl shared extension for php
  php5-pcre-5.2.11_1 The pcre shared extension for php
  php5-pdo-5.2.11_1 The pdo shared extension for php
  php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php
  php5-posix-5.2.11_1 The posix shared extension for php
  php5-session-5.2.11_1 The session shared extension for php
  php5-simplexml-5.2.11_1 The simplexml shared extension for php
  php5-spl-5.2.11_1 The spl shared extension for php
  php5-sqlite-5.2.11_1 The sqlite shared extension for php
  php5-tokenizer-5.2.11_1 The tokenizer shared extension for php
  php5-xml-5.2.11_1 The xml shared extension for php
  php5-xmlreader-5.2.11_1 The xmlreader shared extension for php
  php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php
  [r...@ricky /]#
 
  Any ideas for a completely ignorant, non-developer type?
 
  Thanks in advance.
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit

RE: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 19:16 +0300, Yuri Yarlei wrote:

 Hi all,
 
  
 
 If the basic functions of php not work, maybe the extension for php5 or 4 are 
 disabled, or the library is missing, sometimes apache does not show the erros 
 for missing library, or yet, the library for php4 or 5 are both on, or they 
 crash
 
 Yuri Yarlei.
 www.yuriyarlei.net (under construction)
 Programmer PHP, JAVA, CSS, PostregreSQL;
 Today PHP, tomorrow Java, after the world.
 Kyou wa PHP, ashita wa Java, sono ato sekai desu.
 
 
 
  
  Date: Tue, 27 Oct 2009 07:59:16 -0700
  From: li...@cmsws.com
  To: a...@ashleysheridan.co.uk
  CC: phps...@gmail.com; jason-lists@lixfeld.ca; php-general@lists.php.net
  Subject: Re: [PHP] PHP+Apache suddenly not working
  
  Ashley Sheridan wrote:
   On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote:
   
   On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
   jason-lists@lixfeld.ca wrote:
   I have no doubt that this is due to an update that was done on my 
   system at
   some point, but unfortunately I can't pinpoint where. The upshot is that
   PHP is completely unresponsive for me when run from Apache and I'm not 
   sure
   where to look. I recognize that this isn't an apache support list. This
   message is being cc'd there too.
  
   The system is FreeBSD 6.1-RELEASE-p15. PHP 5.2.11 from ports.
  
   The only error I get in my php log is this:
  
   [27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined function
   preg_match() in
   /usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php
   on line 125
  
   Now I've checked and double checked that pcre support is built into php.
   I'm not sure if there's a command that I can run in php to show all the
   extensions that are installed or something, but I'm a bazillion percent 
   sure
   that it's there, so I don't believe that's the cause of the error. I'm
   reasonably sure of this because the preg_match error thrown every minute
   when a cron job runs, I have a .php that calls phpinfo() that shows a 
   blank
   screen when hit from a browser.
  
   My problem is that I don't know how to troubleshoot this.
  
   I can seem to run PHP from the CLI just fine, so does this look more 
   like an
   apache issue or perhaps some php module or extension that talks to 
   apache?
  
   [r...@ricky /]# php
   ?php
   phpinfo();
   ?
   phpinfo()
   PHP Version = 5.2.11
  
   System = FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD
   6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007
   jlixf...@ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC amd64
   Build Date = Oct 26 2009 15:38:06
   Configure Command = './configure' '--with-layout=GNU'
   '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
   '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
   '--program-prefix=' '--enable-fastcgi' 
   '--with-apxs2=/usr/local/sbin/apxs'
   '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6'
   '--prefix=/usr/local' '--mandir=/usr/local/man' 
   '--infodir=/usr/local/info/'
   '--build=amd64-portbld-freebsd6.1'
   Server API = Command Line Interface
   Virtual Directory Support = disabled
   Configuration File (php.ini) Path = /usr/local/etc
   Loaded Configuration File = /usr/local/etc/php.ini
   Scan this dir for additional .ini files = /usr/local/etc/php
   additional .ini files parsed = /usr/local/etc/php/extensions.ini
   ...
   ...
   ...
   etc
   ...
  
   [r...@ricky /]# pkg_info | grep php5
   php5-5.2.11_1 PHP Scripting Language
   php5-ctype-5.2.11_1 The ctype shared extension for php
   php5-dom-5.2.11_1 The dom shared extension for php
   php5-extensions-1.3 A meta-port to install PHP extensions
   php5-filter-5.2.11_1 The filter shared extension for php
   php5-gd-5.2.11_1 The gd shared extension for php
   php5-gettext-5.2.11_1 The gettext shared extension for php
   php5-iconv-5.2.11_1 The iconv shared extension for php
   php5-imap-5.2.11_1 The imap shared extension for php
   php5-ldap-5.2.11_1 The ldap shared extension for php
   php5-mbstring-5.2.11_1 The mbstring shared extension for php
   php5-mysql-5.2.11_1 The mysql shared extension for php
   php5-openssl-5.2.11_1 The openssl shared extension for php
   php5-pcre-5.2.11_1 The pcre shared extension for php
   php5-pdo-5.2.11_1 The pdo shared extension for php
   php5-pdo_sqlite-5.2.11_1 The pdo_sqlite shared extension for php
   php5-posix-5.2.11_1 The posix shared extension for php
   php5-session-5.2.11_1 The session shared extension for php
   php5-simplexml-5.2.11_1 The simplexml shared extension for php
   php5-spl-5.2.11_1 The spl shared extension for php
   php5-sqlite-5.2.11_1 The sqlite shared extension for php
   php5-tokenizer-5.2.11_1 The tokenizer shared extension for php
   php5-xml-5.2.11_1 The xml shared extension for php
   php5-xmlreader-5.2.11_1 The xmlreader shared extension for php
   php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php

RE: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Yuri Yarlei

Ash,

I think the apache is working, because he recieve the error [27-Oct-2009 
13:05:00] PHP Fatal error:  Call to undefined function, if apache are not 
started he will receive some error about apache starting or someting like that.

Yuri Yarlei.
http://www.yuriyarlei.net.net (under construction)
Programmer PHP, JAVA, CSS, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.



 
 From: a...@ashleysheridan.co.uk
 To: gargari...@hotmail.com
 CC: li...@cmsws.com; phps...@gmail.com; jason-lists@lixfeld.ca; 
 php-general@lists.php.net
 Date: Tue, 27 Oct 2009 16:20:45 +
 Subject: RE: [PHP] PHP+Apache suddenly not working
 
 On Tue, 2009-10-27 at 19:16 +0300, Yuri Yarlei wrote:
 
  Hi all,
  
  
  
  If the basic functions of php not work, maybe the extension for php5 or 4 
  are disabled, or the library is missing, sometimes apache does not show the 
  erros for missing library, or yet, the library for php4 or 5 are both on, 
  or they crash
  
  Yuri Yarlei.
  www.yuriyarlei.net (under construction)
  Programmer PHP, JAVA, CSS, PostregreSQL;
  Today PHP, tomorrow Java, after the world.
  Kyou wa PHP, ashita wa Java, sono ato sekai desu.
  
  
  
  
   Date: Tue, 27 Oct 2009 07:59:16 -0700
   From: li...@cmsws.com
   To: a...@ashleysheridan.co.uk
   CC: phps...@gmail.com; jason-lists@lixfeld.ca; 
   php-general@lists.php.net
   Subject: Re: [PHP] PHP+Apache suddenly not working
   
   Ashley Sheridan wrote:
On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote:

On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
jason-lists@lixfeld.ca wrote:
I have no doubt that this is due to an update that was done on my 
system at
some point, but unfortunately I can't pinpoint where. The upshot is 
that
PHP is completely unresponsive for me when run from Apache and I'm 
not sure
where to look. I recognize that this isn't an apache support list. 
This
message is being cc'd there too.
   
The system is FreeBSD 6.1-RELEASE-p15. PHP 5.2.11 from ports.
   
The only error I get in my php log is this:
   
[27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined function
preg_match() in
/usr/home/foo/public_html/cerb4/libs/devblocks/libs/zend_framework/Zend/Cache/Backend/File.php
on line 125
   
Now I've checked and double checked that pcre support is built into 
php.
I'm not sure if there's a command that I can run in php to show all 
the
extensions that are installed or something, but I'm a bazillion 
percent sure
that it's there, so I don't believe that's the cause of the error. I'm
reasonably sure of this because the preg_match error thrown every 
minute
when a cron job runs, I have a .php that calls phpinfo() that shows a 
blank
screen when hit from a browser.
   
My problem is that I don't know how to troubleshoot this.
   
I can seem to run PHP from the CLI just fine, so does this look more 
like an
apache issue or perhaps some php module or extension that talks to 
apache?
   
[r...@ricky /]# php
?php
phpinfo();
?
phpinfo()
PHP Version = 5.2.11
   
System = FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD
6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007
jlixf...@ricky.arionetworks.ca:/usr/src/sys/amd64/compile/GENERIC 
amd64
Build Date = Oct 26 2009 15:38:06
Configure Command = './configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
'--program-prefix=' '--enable-fastcgi' 
'--with-apxs2=/usr/local/sbin/apxs'
'--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6'
'--prefix=/usr/local' '--mandir=/usr/local/man' 
'--infodir=/usr/local/info/'
'--build=amd64-portbld-freebsd6.1'
Server API = Command Line Interface
Virtual Directory Support = disabled
Configuration File (php.ini) Path = /usr/local/etc
Loaded Configuration File = /usr/local/etc/php.ini
Scan this dir for additional .ini files = /usr/local/etc/php
additional .ini files parsed = /usr/local/etc/php/extensions.ini
...
...
...
etc
...
   
[r...@ricky /]# pkg_info | grep php5
php5-5.2.11_1 PHP Scripting Language
php5-ctype-5.2.11_1 The ctype shared extension for php
php5-dom-5.2.11_1 The dom shared extension for php
php5-extensions-1.3 A meta-port to install PHP extensions
php5-filter-5.2.11_1 The filter shared extension for php
php5-gd-5.2.11_1 The gd shared extension for php
php5-gettext-5.2.11_1 The gettext shared extension for php
php5-iconv-5.2.11_1 The iconv shared extension for php
php5-imap-5.2.11_1 The imap shared extension for php
php5-ldap-5.2.11_1 The ldap shared extension for php
php5-mbstring-5.2.11_1 The mbstring shared extension for php
php5-mysql

Re: [PHP] PHP+Apache suddenly not working

2009-10-27 Thread Jason Lixfeld
  
'error|log' | grep -v ^;

error_reporting  =  E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
track_errors = Off
html_errors = On
error_log = /tmp/php.log
[Syslog]
define_syslog_variables  = Off
pgsql.log_notice = 0
sybase.min_error_severity = 10
mssql.min_error_severity = 10
[r...@ricky /usr/local/www]#


On 2009-10-27, at 12:39 PM, Yuri Yarlei wrote:



Ash,

I think the apache is working, because he recieve the error [27- 
Oct-2009 13:05:00] PHP Fatal error:  Call to undefined function, if  
apache are not started he will receive some error about apache  
starting or someting like that.


Yuri Yarlei.
http://www.yuriyarlei.net.net (under construction)
Programmer PHP, JAVA, CSS, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.





From: a...@ashleysheridan.co.uk
To: gargari...@hotmail.com
CC: li...@cmsws.com; phps...@gmail.com; jason-lists@lixfeld.ca; 
php-general@lists.php.net
Date: Tue, 27 Oct 2009 16:20:45 +
Subject: RE: [PHP] PHP+Apache suddenly not working

On Tue, 2009-10-27 at 19:16 +0300, Yuri Yarlei wrote:


Hi all,



If the basic functions of php not work, maybe the extension for  
php5 or 4 are disabled, or the library is missing, sometimes  
apache does not show the erros for missing library, or yet, the  
library for php4 or 5 are both on, or they crash


Yuri Yarlei.
www.yuriyarlei.net (under construction)
Programmer PHP, JAVA, CSS, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.





Date: Tue, 27 Oct 2009 07:59:16 -0700
From: li...@cmsws.com
To: a...@ashleysheridan.co.uk
CC: phps...@gmail.com; jason-lists@lixfeld.ca; php-general@lists.php.net
Subject: Re: [PHP] PHP+Apache suddenly not working

Ashley Sheridan wrote:

On Tue, 2009-10-27 at 09:24 -0400, Bastien Koert wrote:


On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
jason-lists@lixfeld.ca wrote:
I have no doubt that this is due to an update that was done on  
my system at
some point, but unfortunately I can't pinpoint where. The  
upshot is that
PHP is completely unresponsive for me when run from Apache and  
I'm not sure
where to look. I recognize that this isn't an apache support  
list. This

message is being cc'd there too.

The system is FreeBSD 6.1-RELEASE-p15. PHP 5.2.11 from ports.

The only error I get in my php log is this:

[27-Oct-2009 13:05:00] PHP Fatal error: Call to undefined  
function

preg_match() in
/usr/home/foo/public_html/cerb4/libs/devblocks/libs/ 
zend_framework/Zend/Cache/Backend/File.php

on line 125

Now I've checked and double checked that pcre support is built  
into php.
I'm not sure if there's a command that I can run in php to  
show all the
extensions that are installed or something, but I'm a  
bazillion percent sure
that it's there, so I don't believe that's the cause of the  
error. I'm
reasonably sure of this because the preg_match error thrown  
every minute
when a cron job runs, I have a .php that calls phpinfo() that  
shows a blank

screen when hit from a browser.

My problem is that I don't know how to troubleshoot this.

I can seem to run PHP from the CLI just fine, so does this  
look more like an
apache issue or perhaps some php module or extension that  
talks to apache?


[r...@ricky /]# php
?php
phpinfo();
?
phpinfo()
PHP Version = 5.2.11

System = FreeBSD ricky.arionetworks.ca 6.1-RELEASE-p15 FreeBSD
6.1-RELEASE-p15 #0: Sat Mar 31 11:43:34 EDT 2007
jlixf...@ricky.arionetworks.ca:/usr/src/sys/amd64/compile/ 
GENERIC amd64

Build Date = Oct 26 2009 15:38:06
Configure Command = './configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local' '--enable- 
reflection'
'--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/ 
local/sbin/apxs'

'--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6'
'--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/ 
usr/local/info/'

'--build=amd64-portbld-freebsd6.1'
Server API = Command Line Interface
Virtual Directory Support = disabled
Configuration File (php.ini) Path = /usr/local/etc
Loaded Configuration File = /usr/local/etc/php.ini
Scan this dir for additional .ini files = /usr/local/etc/php
additional .ini files parsed = /usr/local/etc/php/ 
extensions.ini

...
...
...
etc
...

[r...@ricky /]# pkg_info | grep php5
php5-5.2.11_1 PHP Scripting Language
php5-ctype-5.2.11_1 The ctype shared extension for php
php5-dom-5.2.11_1 The dom shared extension for php
php5-extensions-1.3 A meta-port to install PHP extensions
php5-filter-5.2.11_1 The filter shared extension for php
php5-gd-5.2.11_1 The gd shared extension for php
php5-gettext-5.2.11_1 The gettext shared extension for php
php5-iconv-5.2.11_1 The iconv shared extension for php
php5-imap-5.2.11_1 The imap shared extension for php
php5-ldap-5.2.11_1 The ldap shared extension for php
php5-mbstring

Re: [PHP] PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Virgilio Quilario
 Hi all,

 I wrote a PHP script running in Apache which takes more than 30 seconds to
 complete. It uses set_time_limit() to extend the time it is allowed to run.
 The script generates thumbnails from a list of images. Upon completion, the
 script redirects the browser to another page using HTTP headers.

 On my local machine (Windows + EasyPHP), the script runs as expected and
 completes after a few minutes.

 I observe an unexpected behavior on my production web server:
 - The script runs as expected for the first 30 seconds.
 - After 30 seconds, the same script with the same parameters starts again in
 a new thread/process. The initial thread/process is *not* interrupted, so 2
 threads/processes run in parallel, executing the same sequence of operations
 with a 30 time shift.
 - The same scenario happens every 30 seconds (i.e.: at 030, 100, 130, and
 so on), multiplying the parallel threads/processes.
 - The browser keeps on loading while the above happens.
 - After some time, the browser displays a blank page and all the
 threads/processes stop. I assume this is due to resources exhaustion, but I
 have no means to check this assumption.

 I deduced the above reading a text file in which I log the sequence of
 called functions.

 Unfortunately I have no access *at all* to my production web server
 configuration (shared hosting, no documentation). I cannot even read the
 configuration settings. While I'm considering moving to another host, I'd be
 extremely pleased to have an explanation of the observed behavior.

 I have browsed the mailing list archives and looked for an explanation in
 other forums to no avail. This thread may deal with the same issue but does
 not include any explanation or solution:
 http://www.networkedmediatank.com/showthread.php?tid=17140

 Thanks for reading, and please do not hesitate to ask for further
 explanations if what I'm trying to achieve was not clear!

 Cheers,
 Marc.


hi Marc,

probably your php file on your production server is index.php.
and you must have generated a image tag with empty src like below:
img src=

with src being empty, browsers will load your index.php as if it was
an image url so loading in parallel.
hope this explains your case.

Virgil
http://www.jampmark.com
Free tips, tutorials, innovative tools and techniques for building and
improving web sites.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Marc Venturini
Thanks for your contribution Virgil. Unfortunately my file is not index.php
(nor anything else declared in a DirectoryIndex directive).

I'm planning to fix the issue using a lock to test that the script is not
already running before starting it again, but I would like to find out the
explanation for this unexpected behavior!

Cheers,
Marc.


On Wed, Mar 11, 2009 at 1:08 PM, Virgilio Quilario 
virgilio.quila...@gmail.com wrote:

  Hi all,
 
  I wrote a PHP script running in Apache which takes more than 30 seconds
 to
  complete. It uses set_time_limit() to extend the time it is allowed to
 run.
  The script generates thumbnails from a list of images. Upon completion,
 the
  script redirects the browser to another page using HTTP headers.
 
  On my local machine (Windows + EasyPHP), the script runs as expected and
  completes after a few minutes.
 
  I observe an unexpected behavior on my production web server:
  - The script runs as expected for the first 30 seconds.
  - After 30 seconds, the same script with the same parameters starts again
 in
  a new thread/process. The initial thread/process is *not* interrupted, so
 2
  threads/processes run in parallel, executing the same sequence of
 operations
  with a 30 time shift.
  - The same scenario happens every 30 seconds (i.e.: at 030, 100, 130,
 and
  so on), multiplying the parallel threads/processes.
  - The browser keeps on loading while the above happens.
  - After some time, the browser displays a blank page and all the
  threads/processes stop. I assume this is due to resources exhaustion, but
 I
  have no means to check this assumption.
 
  I deduced the above reading a text file in which I log the sequence of
  called functions.
 
  Unfortunately I have no access *at all* to my production web server
  configuration (shared hosting, no documentation). I cannot even read the
  configuration settings. While I'm considering moving to another host, I'd
 be
  extremely pleased to have an explanation of the observed behavior.
 
  I have browsed the mailing list archives and looked for an explanation in
  other forums to no avail. This thread may deal with the same issue but
 does
  not include any explanation or solution:
  http://www.networkedmediatank.com/showthread.php?tid=17140
 
  Thanks for reading, and please do not hesitate to ask for further
  explanations if what I'm trying to achieve was not clear!
 
  Cheers,
  Marc.
 

 hi Marc,

 probably your php file on your production server is index.php.
 and you must have generated a image tag with empty src like below:
 img src=

 with src being empty, browsers will load your index.php as if it was
 an image url so loading in parallel.
 hope this explains your case.

 Virgil
 http://www.jampmark.com
 Free tips, tutorials, innovative tools and techniques for building and
 improving web sites.



Re: [PHP] PHP Apache - Consuming Too much memory

2009-03-05 Thread Chris

Shota Gedenidze wrote:

Php and apache memory problem.

I have apache and php, recently added APC module to php, and after
that each apache process consumes 30-100 mb of resident memory.
Operating System is Linux.
Does anybody have Idea how to optimize php to consume less memory?


ini_set('memory_limit', '32M');

fix what it complains about when you view your site/application/whatever 
and says you're using too much memory.


There's no hard  fast rule here - it's all down to time, patience and 
lots of effort.


You could also use xdebug to profile your app and see where to start.

--
Postgresql  php tutorials
http://www.designmagick.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP/Apache configuration failure

2007-01-11 Thread Ford, Mike
On 10 January 2007 16:28, Bruce A. Julseth wrote:

 I can't get Apache to restart after I've configured for PHP.
 I've upgraded my installation to
 5.2.
 Now, Apache 2.2.3 runs fine without any PHP additions.
[...]
 4) I made the following changes to Httpd.conf
 After the last entry in the LoadModule section:
 
   LoadModule php5_module c:/php5/php5apache.dll

My memory may be failing here, but I believe that's the .dll for Apache 1. For 
Apache 2.2, you should have a php5apache2_2.dll.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Albert
Thomas wrote:
 I had a look at the Apache log file I got from the SP ... no clue. All I
 know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

Did you look at the access_log or error_log?

The error_log should give you an indication of why it is happening.

Do you try to access system files or use a lot of memory? Are you sure that
the production server has all the modules installed that your testing server
has? Quite important, is the same version installed on your testing server
as on the production server?

 They say that it is not their server but my scripts, however, if that was
 the case I would get these errors on my machine too. Also, the randomness
 of this also indicates that it can't really be my php scripts, otherwise 
 it would happen all the time.

Yes and no. You can only say that with certainty if your test and production
environments are the same. 

If you are absolutely 100% certain that it is not your scripts, start
looking at the differences between what you have and what your ISP provides.

Alternatively test it on another server as well. 

Albert

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006/01/24
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Jochem Maas

Thomas wrote:

Hi there!

I am sitting with something of a mystery and was wondering if there is
someone out that might have dealt with this before:

I have developed a site that runs well and fine on my machine
(XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as


php5.WHAT?


Cache_Lite.


it's not completely impossible that HTML_Template_Flexy or Cache_Lite run
on either php5.1 and above OR on php5.0.4 and below but not both.



The site has been put up on the live server and works (mostly) fine there
too, with the exception of Internal Server errors 500, ever so often. It's
pretty random and can happen to any of the scripts (they all run through a
single index.php script that instantiates objects that then spit out the
resulting html).

I had a look at the Apache log file I got from the SP ... no clue. All I
know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).


php5.WHAT?

I would suggest getting both systems to run the same version of the software
packages you mention. it might cut out a few unknowns.



They say that it is not their server but my scripts, however, if that was
the case I would get these errors on my machine too. Also, the randomness of
this also indicates that it can't really be my php scripts, otherwise it
would happen all the time.

Does anybody have any suggestion as to how I can solve this issue? I know
this is pretty vague information, but it's all I have (hence the confusion).

Thanks,
Thomas


SPIRAL EYE STUDIOS 
P.O. Box 37907, Faerie Glen, 0043


Tel: +27 12 362 3486
Fax: +27 12 362 3493 
Mobile: +27 82 442 9228

Email: [EMAIL PROTECTED]
Web: www.spiraleye.co.za 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Thomas
Hi Jochem,

PHP5.0.4, on both systems. I suspect that either of the PEAE modules cause
some server id10t error (if indeed the issue is on my side).

Thomas

-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED] 
Sent: 25 January 2006 03:00 PM
To: Thomas
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP / Apache + Error 500

Thomas wrote:
 Hi there!
 
 I am sitting with something of a mystery and was wondering if there is
 someone out that might have dealt with this before:
 
 I have developed a site that runs well and fine on my machine
 (XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as

php5.WHAT?

 Cache_Lite.

it's not completely impossible that HTML_Template_Flexy or Cache_Lite run
on either php5.1 and above OR on php5.0.4 and below but not both.

 
 The site has been put up on the live server and works (mostly) fine there
 too, with the exception of Internal Server errors 500, ever so often. It's
 pretty random and can happen to any of the scripts (they all run through a
 single index.php script that instantiates objects that then spit out the
 resulting html).
 
 I had a look at the Apache log file I got from the SP ... no clue. All I
 know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

php5.WHAT?

I would suggest getting both systems to run the same version of the software
packages you mention. it might cut out a few unknowns.

 
 They say that it is not their server but my scripts, however, if that was
 the case I would get these errors on my machine too. Also, the randomness
of
 this also indicates that it can't really be my php scripts, otherwise it
 would happen all the time.
 
 Does anybody have any suggestion as to how I can solve this issue? I know
 this is pretty vague information, but it's all I have (hence the
confusion).
 
 Thanks,
 Thomas
 
 
 SPIRAL EYE STUDIOS 
 P.O. Box 37907, Faerie Glen, 0043
 
 Tel: +27 12 362 3486
 Fax: +27 12 362 3493 
 Mobile: +27 82 442 9228
 Email: [EMAIL PROTECTED]
 Web: www.spiraleye.co.za 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP / Apache + Error 500

2006-01-25 Thread Gerry Danen
Interestingly, I installed mod_security the other day and noticed
error 500 show up. As it turns out, mod_security generates those when
they block nasties.

Gerry

On 1/25/06, Thomas [EMAIL PROTECTED] wrote:

 Hi there!

 I am sitting with something of a mystery and was wondering if there is
 someone out that might have dealt with this before:

 I have developed a site that runs well and fine on my machine
 (XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as
 Cache_Lite.

 The site has been put up on the live server and works (mostly) fine there
 too, with the exception of Internal Server errors 500, ever so often. It's
 pretty random and can happen to any of the scripts (they all run through a
 single index.php script that instantiates objects that then spit out the
 resulting html).

 I had a look at the Apache log file I got from the SP ... no clue. All I
 know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

 They say that it is not their server but my scripts, however, if that was
 the case I would get these errors on my machine too. Also, the randomness of
 this also indicates that it can't really be my php scripts, otherwise it
 would happen all the time.

 Does anybody have any suggestion as to how I can solve this issue? I know
 this is pretty vague information, but it's all I have (hence the confusion).

 Thanks,
 Thomas


 SPIRAL EYE STUDIOS
 P.O. Box 37907, Faerie Glen, 0043

 Tel: +27 12 362 3486
 Fax: +27 12 362 3493
 Mobile: +27 82 442 9228
 Email: [EMAIL PROTECTED]
 Web: www.spiraleye.co.za

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




--
Gerry
http://portal.danen.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP, Apache, Windows 2003

2005-04-22 Thread Ryan J. Cavicchioni
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello,

What is the exact error message the Apache is giving you?

Reynier Perez Mira wrote:

 Hi list:

 Recently I installed Windows 2003 Server. Now I try to install
 Apache 2.0.48 and PHP 5.0.4. First I install PHP 5.0.4 from source
 binary to Win32 downloaded from www.php.net http://www.php.net/ .
 It's means that php5apache2.dll is include in this packet. Well
 when I try to config the httpd.conf file and put this LoadModule
 C:/PHP/php5apache2.dll into Modules config the service doesn't
 start. Why? Some help?

 Thanks



 Reynier Pérez Mira

 3ero. Ing. Informática

 Entre más inteligente me siento, más me doy cuenta de lo ignorante
 que soy.




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: GnuPT 2.6.1.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCaW0MTMDaAcJxvKgRAk8jAKCtLnKANk4dtI8RdiZnj8fVK8WWVgCdHBAy
HqIfkAkhh5fH/f/Bj70r8Xc=
=bQMO
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP, Apache, Windows 2003

2005-04-22 Thread Ryan J. Cavicchioni
Hello,

What is the exact error message the Apache is giving you?

- Ryan

Reynier Perez Mira wrote:

Hi list:

Recently I installed Windows 2003 Server. Now I try to install Apache 2.0.48 
and PHP 5.0.4. First I install PHP 5.0.4 from source binary to Win32 
downloaded from www.php.net http://www.php.net/ . It's means that 
php5apache2.dll is include in this packet. Well when I try to config the 
httpd.conf file and put this LoadModule C:/PHP/php5apache2.dll into Modules 
config the service doesn't start. Why? Some help?

Thanks

 

Reynier Pérez Mira

3ero. Ing. Informática

Entre más inteligente me siento, más me doy cuenta de lo ignorante que soy. 

 


  


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-16 Thread Raditha Dissanayake
Michael Leung wrote:
Hi All,
  My problem is finally solved by totally off SELinux Security
Policies.
I told you so :-))
Thank you very verry much the helps from yours! I know this
is not very safe solution, but at the leasy my script can work
 


yours,
Michael
 


--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache Upload file Permission denied

2004-12-15 Thread Michael Leung
Hi All,
   My problem is finally solved by totally off SELinux Security
Policies. Thank you very verry much the helps from yours! I know this
is not very safe solution, but at the leasy my script can work


yours,
Michael

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-14 Thread Michael Leung
Yes, I have restarted my Apache.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-14 Thread Richard Lynch
Michael Leung wrote:
Yes, apache can do read/write in /tmp.  I can't su to apache.
 But I created  another account in apache group(userid test1). I have
 such tests by using that account. I can do mv , cp , create new file.
 After those successful test, I have  modified httpd.conf to make
 apache web server run as test1. But they are still working like the
 same error.

You re-started Apache, right?...

Just to be sure, does ?php phpinfo();? show 'test1' as the user?

If so, check http://bugs.php.net for your OS/PHP version and bugs related
to file upload:  If the user running PHP can do all that stuff, PHP should
be able to do it with no problem.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache Upload file Permission denied

2004-12-13 Thread Richard Lynch
Michael Leung wrote:
I have faced the upload file permission denied for weeks. I can't
 write a new file/create a directory. I did a test in PHP standalone
 (Linux shell).  The operation is very normal.

But what *USER* were you when you did that test?!

Were you the same user PHP runs as, IE, the user Apache runs as?

If not, your test is meaningless.

If you were root, your test is beyond meaningless, bordering on the
ridiculous :-)

 But in web environment, I got this error message:

 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
 move '/tmp/phpjsLZfC' to '/var/www/htm/test/icons.zip' in
 /var/www/html/simple_upload.php on line 76.

 I think this is a problem bewteen Apache and PHP. The safe mode of PHP
 is off and test directory is changed to 777.

Are you 100% certain you have the directory names correct?

Can the PHP user *READ* /tmp/* files?
Can the PHP user *WRITE* /var/www/htm/test/* files?



-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-13 Thread Michael Leung
Hi all,
the user is apache for PHP. the directory is owned by apache user.
I am 100% certain for the directory name.

yours,
Michael

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-13 Thread Richard Lynch
And apache user can read/write /tmp?

What files are in /tmp?

su to apache and see if you can read the uploaded files, and mv them to
the directory.

Michael Leung wrote:
 Hi all,
 the user is apache for PHP. the directory is owned by apache user.
 I am 100% certain for the directory name.

 yours,
 Michael

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-13 Thread Michael Leung
Hi,
   Yes, apache can do read/write in /tmp.  I can't su to apache.
But I created  another account in apache group(userid test1). I have
such tests by using that account. I can do mv , cp , create new file. 
After those successful test, I have  modified httpd.conf to make 
apache web server run as test1. But they are still working like the
same error.

yours,
Michael

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-12 Thread Andre Dubuc
Dear Michael,

I spent the better part of today trying to get a file upload script to work 
too. Same sort of problem: local linux works ok, but web - nope.

Looking at your error message, it might be the renaming of the temp file that 
is barfing.

if (($_FILES[pix][size]  0)($_FILES[pix][size]  75000)){

if ($_FILES[pix][type] == image/jpeg)
{
$pix_file = $_FILES[pix][name];
$pix_temp_file = $_FILES[pix][tmp_name];

$new_pix_file = -5.jpg;

if(is_uploaded_file($pix_temp_file)){
move_uploaded_file($pix_temp_file, pix/$new_pix_file);
}
}
}
else {

print brbrbrbrbigbPicture Upload 
Errorb/bigbrbrh5Filesize is greater than maximum 75k!brbr 
Please resize your picture to below 75k, and try again!/h5br;
}

This works for me -- might want to modify it and see if it clicks on yours. My 
pix directory is 777, uploaded files go in as apache:apache 755. (also, if 
you try to upload greater than limit set in apache, nothing will show up in 
'/var/www/htm/test/icons.zip'.
  ^

Btw, is that a typo: 'htm' or did you want 'html'??

Hth,
Andre

On Sunday 12 December 2004 07:46 pm, Michael Leung wrote:
 Hi all,
I have faced the upload file permission denied for weeks. I can't
 write a new file/create a directory. I did a test in PHP standalone
 (Linux shell).  The operation is very normal.
 But in web environment, I got this error message:

 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
 move '/tmp/phpjsLZfC' to '/var/www/htm/test/icons.zip' in
 /var/www/html/simple_upload.php on line 76.

 I think this is a problem bewteen Apache and PHP. The safe mode of PHP
 is off and test directory is changed to 777.

 yours,
 Michael

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-12 Thread Michael Leung
Hi Andre,
  thank you, I have hided my html path in the message. I have replace 
my real path with '/var/www/html/'.  the error message should be like
this.
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
  move '/tmp/phpjsLZfC' to '/var/www/html/test/icons.zip' in
  /var/www/html/simple_upload.php on line 76.
Pervious error message , I have some typing mistakes in there.

Yes, this kind of script is working in my pervious old server. But
after I have upgraded the OS to Fedora 3 with PHP 5.0.2 and Apache 2.
The script does not work any more. I am thinking may be I need to
modify some configure in Apache 2 to allow the upload file function.

yours,
Michael

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-12 Thread Travis Conway
Ha!
Sorry for that Fedora 3 is causing all kinds of havoc. I would stay away 
for a while.

Trav
- Original Message - 
From: Michael Leung [EMAIL PROTECTED]
To: Andre Dubuc [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 7:25 PM
Subject: Re: [PHP] PHP Apache Upload file Permission denied


Hi Andre,
 thank you, I have hided my html path in the message. I have replace
my real path with '/var/www/html/'.  the error message should be like
this.
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
 move '/tmp/phpjsLZfC' to '/var/www/html/test/icons.zip' in
 /var/www/html/simple_upload.php on line 76.
Pervious error message , I have some typing mistakes in there.
Yes, this kind of script is working in my pervious old server. But
after I have upgraded the OS to Fedora 3 with PHP 5.0.2 and Apache 2.
The script does not work any more. I am thinking may be I need to
modify some configure in Apache 2 to allow the upload file function.
yours,
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache Upload file Permission denied

2004-12-12 Thread Michael Leung
Hi all,
  I am more believing this is a kind of apache configure problem. If
that's Fedora 3 problem, I can't do this kind in command line.
Therefore, if I bypassed Apache, my problem is solved. Moreover, my
system is highly OOP , I can't fall back into PHP 4.


yours,
Michael

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Upload file Permission denied

2004-12-12 Thread Raditha Dissanayake

Yes, this kind of script is working in my pervious old server. But
after I have upgraded the OS to Fedora 3 with PHP 5.0.2 and Apache 2.
 

Then as I mentioned in my previous mail SELinux is to blame. Uninstall 
it or disable it. (pass selinux=0 when you boot).

 


--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache Upload file Permission denied

2004-12-12 Thread Travis Conway
What user did you run your command line as?
Trav
- Original Message - 
From: Michael Leung [EMAIL PROTECTED]
To: Travis Conway [EMAIL PROTECTED]
Cc: Andre Dubuc [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, December 12, 2004 8:01 PM
Subject: Re: [PHP] PHP Apache Upload file Permission denied


Hi all,
 I am more believing this is a kind of apache configure problem. If
that's Fedora 3 problem, I can't do this kind in command line.
Therefore, if I bypassed Apache, my problem is solved. Moreover, my
system is highly OOP , I can't fall back into PHP 4.
yours,
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache Upload file Permission denied

2004-12-12 Thread Raditha Dissanayake
Michael Leung wrote:
Hi all,
  I have faced the upload file permission denied for weeks. I can't
write a new file/create a directory. I did a test in PHP standalone
(Linux shell).  The operation is very normal.
But in web environment, I got this error message:
 

Something that just occurred to me?
do you have SELinux installed?
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move '/tmp/phpjsLZfC' to '/var/www/htm/test/icons.zip' in
/var/www/html/simple_upload.php on line 76.
I think this is a problem bewteen Apache and PHP. The safe mode of PHP
is off and test directory is changed to 777.
yours,
Michael
 


--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache Version

2004-04-30 Thread Richard Harb
Friday, April 30, 2004, 3:21:41 PM, thus was written:

 Is there a version of Apache 2+ that now works with PHP?
snipped

Yes there is. Works without problems.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php/apache/mysql on ntfs

2004-04-24 Thread -{ Rene Brehmer }-
Sure you can :) ... I've been doing it for a very long time now ... works
alot better than FAT32 actually ... much faster...

The programs don't care about the file system, that's for the OS to deal
with. Only pure DOS programs have problems with the NTFS ... for all other
programs they can't see what FS it is anyway, since it's not for them to
worry about ... 


Rene

According to historical records, on Sat, 24 Apr 2004 07:18:40 -0400 Andy B
wrote about [PHP] php/apache/mysql on ntfs:

hi...
we are upgrading test servers to xp home and want to know if its possible to
run php/apache/mysql and all that sort of stuff on ntfs or does the servers
have to run fat32??

-- 
Rene Brehmer
aka Metalbunny

~ If you don't like what I have to say ... don't read it ~

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums at http://forums.metalbunny.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php/apache/mysql on ntfs

2004-04-24 Thread -{ Rene Brehmer }-
Because someone that's subscribed to the list has a full mailbox ... I get
it too ... all the time ... just like the address harvesters masquerading as
banks ... Advance Credit Suisse Bank [EMAIL PROTECTED] and
Information Desk [EMAIL PROTECTED]


Rene

According to historical records, on Sat, 24 Apr 2004 07:28:07 -0400 Andy B
wrote about Fw: [PHP] php/apache/mysql on ntfs:

does anybody have any idea why this message keeps coming up every time i
send a msg to the list?? im sort of confused now

- Original Message - 
From: [EMAIL PROTECTED]
To: Andy B [EMAIL PROTECTED]
Sent: Saturday, April 24, 2004 7:17 AM
Subject: NDN: [PHP] php/apache/mysql on ntfs


 Sorry. Your message could not be delivered to:

 PHP Net List [Conference] (Mailbox or Conference is full.)



-- 
Rene Brehmer
aka Metalbunny

~ If you don't like what I have to say ... don't read it ~

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums at http://forums.metalbunny.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Log Stats and viewer?

2004-02-27 Thread Michael Kunze
Michal Migurski wrote:

 It's not PHP, but it's probably exactly what you're looking for:
   http://www.mrunix.net/webalizer/

http://awstats.sf.net - much better

-- 
Michael Kunze
http://www.smrealms.de/

Don't Steal. The government hates competition

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache Log Stats and viewer?

2004-02-26 Thread Jim Serio
At 08:17 PM 2/26/2004, you wrote:
Warning. I would NOT use Webalizer. This guy went commercial around 1999
and it's well known that the free version (demo) contains code to
call-home on every use. Beware.
Talk to me - what do you mean? I can't find any references on that, and
the fact that the project is distributed as source and licensed under the
GPL makes me think it wouldn't be in wide use if it were malware.
My mistake. AccessWatch (http://accesswatch.com/) is the log analyzer I was 
speaking of. I always get the two mixed up. It used to be free but the guy 
went commercial in the late 90s.

Jim

--
Jim Serio - [EMAIL PROTECTED] 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache Log Stats and viewer?

2004-02-26 Thread Michal Migurski
I am looking for a PHP program to dynamically read big apache log files
(over 500 MBs) and show interesting stats and graphs. Does anything like
this exist?

It's not PHP, but it's probably exactly what you're looking for:
http://www.mrunix.net/webalizer/

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Apache

2004-01-31 Thread Anti-Gulu
Hi Ashley,

I think you didn't told Apache to parse PHP. You have to add the following lines
into the httpd.conf:

| LoadFile C:/www/apache/bin/php4ts.dll
| LoadModule php4_module C:/www/apache/bin/php4apache2.dll
| AddType application/x-httpd-php .php .php4 .php3 .phtml

(without |, replace the Paths  Filenames)


If you don't want to configure everything yourself take a preconfigured package
- like WAMPP from http://www.apachefriends.org/index-en.html 
It comes with Apache 2, PHP, MySQL, Perl, ...


Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP+Apache Question

2004-01-30 Thread Raditha Dissanayake
Hi,
Many linux users still believe in compiling from source. and many php 
developers still believe php 4.x works better with apache 1.3x

Ashley M. Kirchner wrote:

   This has probably been asked before, but I want to know from those 
actually running (Red Hat) Fedora: how well does the stock PHP (4.3.x) 
work with the stock httpd (Apache 2.x)?  Are PHP developers still 
concerned about that combination?  Should I not bother and roll my own 
source?



--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache Build Problem (Correction to original question)

2004-01-16 Thread pw


 /apache/source/path/src/modules/php4/
 /apache/source/path/src/include/ap_config.h:77:28: ap_config_auto.h: No
such
 file or directory

This goes away if I run 'configure' once for apache.
Then I carry on as in the previous post.

Sorry about my editing.

Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache 2

2003-10-31 Thread Dean E. Weimer
I have been running it since 02-02-2003 without a problem on A FreeBSD
Server.  I started with Apache 2.0.44, PHP 4.3.0, and FreeBSD-RELEASE 4.7.
 I have upgraded every step of the way to currently running with Apache
2.0.48, PHP 4.3.3, and FreeBSD-RELEASE 4.8.  It is a low use server,
Apache only handles around 1,900 request a day, averaging about 16Kb a
request.

Here is my configure command I used for apache:
./configure \
--prefix=/usr/local/apache2 \
--enable-spelling \
--enable-so \
--enable-ssl \
--enable-info

And For PHP:
./configure \
--with-pgsql=/usr/local/pgsql \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-xml \
--with-imap=/usr/local/imap-2002e \
--with-gettext \
--with-mhash \
--with-mcrypt \
--with-mime-magic=/usr/share/misc/magic.mime \
--with-openssl \
--enable-trackvars \
--enable-calendar \
--enable-ftp

 PHP needs to speed up for its own good.

 PHP itself is not the issue.  Extensions to PHP are what may cause
 problems.  As Filip said, there are already many discussions about this on
 the web.

 Edward Dudlik
 Those who say it cannot be done
 should not interrupt the person doing it.

 wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



 - Original Message -
 From: Fernando Melo [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, 30 October, 2003 08:53
 Subject: RE: [PHP] PHP  Apache 2


 And when will it be considered stable?  It's been a while since Apache 2
 was
 released.  PHP needs to speed up for its own good.

 -Original Message-
 From: Eugene Lee [mailto:[EMAIL PROTECTED]
 Sent: 30 October 2003 11:55
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP  Apache 2

 On Thu, Oct 30, 2003 at 11:22:38AM +0200, Fernando Melo wrote:
 :
 : I would like to use apache 2 in a production environment, but initially
 : there seemed to be some issues with the PHP module. Does anybody know
 : if it is ok use it now or is it still buggy with apache 2?

 The combination of PHP 4.x and Apache 2.x are not considered stable for
 a production environment.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
Thanks,
  Dean E. Weimer
  http://www.dwiemer.org/
  [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache 2

2003-10-30 Thread Eugene Lee
On Thu, Oct 30, 2003 at 11:22:38AM +0200, Fernando Melo wrote:
: 
: I would like to use apache 2 in a production environment, but initially
: there seemed to be some issues with the PHP module. Does anybody know
: if it is ok use it now or is it still buggy with apache 2?

The combination of PHP 4.x and Apache 2.x are not considered stable for
a production environment.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Apache 2

2003-10-30 Thread Fernando Melo
And when will it be considered stable?  It's been a while since Apache 2 was
released.  PHP needs to speed up for its own good.

-Original Message-
From: Eugene Lee [mailto:[EMAIL PROTECTED] 
Sent: 30 October 2003 11:55
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP  Apache 2

On Thu, Oct 30, 2003 at 11:22:38AM +0200, Fernando Melo wrote:
: 
: I would like to use apache 2 in a production environment, but initially
: there seemed to be some issues with the PHP module. Does anybody know
: if it is ok use it now or is it still buggy with apache 2?

The combination of PHP 4.x and Apache 2.x are not considered stable for
a production environment.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Apache 2

2003-10-30 Thread Filip de Waard
On Thu, 2003-10-30 at 14:53, Fernando Melo wrote:
 And when will it be considered stable?  It's been a while since Apache 2 was
 released.  PHP needs to speed up for its own good.

Maybe soon, maybe never. This question is covered in a lot of FAQ's on
the web. Please search google if you are interested in more specific
information.

Regards,

Filip de Waard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache 2

2003-10-30 Thread Becoming Digital
 PHP needs to speed up for its own good.

PHP itself is not the issue.  Extensions to PHP are what may cause problems.  As Filip 
said, there are already many discussions about this on the web.

Edward Dudlik
Those who say it cannot be done
should not interrupt the person doing it.

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



- Original Message - 
From: Fernando Melo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, 30 October, 2003 08:53
Subject: RE: [PHP] PHP  Apache 2


And when will it be considered stable?  It's been a while since Apache 2 was
released.  PHP needs to speed up for its own good.

-Original Message-
From: Eugene Lee [mailto:[EMAIL PROTECTED] 
Sent: 30 October 2003 11:55
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP  Apache 2

On Thu, Oct 30, 2003 at 11:22:38AM +0200, Fernando Melo wrote:
: 
: I would like to use apache 2 in a production environment, but initially
: there seemed to be some issues with the PHP module. Does anybody know
: if it is ok use it now or is it still buggy with apache 2?

The combination of PHP 4.x and Apache 2.x are not considered stable for
a production environment.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Marek Kilimajer
check your mysql.default_socket setting in php.ini

Frank Tudor wrote:

I can run mysql from a command line.

What I create a connection string using my php.ini file I get

failure. mysql_connect() errors

My connection string code is very simple:

?php
//list_db.php
$link_id = mysql_connect(localhost, username, password);
$result = mysql_list_dbs($link_id);
$num_rows = mysql_num_rows($result);
while($db_data = mysql_fetch_row($result)) {
echo $db_data[0]. BR;
$result2 = mysql_list_tables($db_data[0]);
$num_rows2 = mysql_num_rows($result2);
while($table_data = mysql_fetch_row($result2)) echo -- .
$table_data[0]. BR;
echo == $num_rows2 table(s) in  . $db_data[0] . P;
}
?
 Using this as a test and all my other connection strings
residing on my include file or one the same page as my code
fails.


--- Jay Blanchard [EMAIL PROTECTED] wrote:

[snip]
I have installed Mandrake Linux and it comes standard with
Apache PHP and MySQL.  You can install all these rpms through
the server selectionAnyway.
In my test environment it is function city and of course
register globals were on.
Now I have Taked my PHP.INI-DIST  set the globals to on and
copied it to my /etc directory.
It worked like a charmbut guess what.  I can't create a
connection string to my database.  Now I have to find a
solution
to get this website to work with globals on and mysql.
I have tried adding an .htacess with the php globals override
thing
php_value register_globals 1

Ok this didn't work.

So I found the Mysql-PHP RPM on my mandrake cd (of course
enabling my php.ini file) and it didn't work.
I'm getting closer to a solution but I am stuck.  Why won't
the
htaccess file work?  I would like to use my php.ini file but
it
is not configured for mysql, how could I fix this?  Is there
anything I can do for either of these two questions to get my
globals on?
I swear I will never use functions again if someone helps me.
[/snip]
Actually this sounds like a bunch of mutually exclusive
things.
1. Can you run MySQL from the command line?
2. Register_globlas has nothing to do with the connection
string to
MySQL
3. Can you show us your connection string code?


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread John Nichel
Frank Tudor wrote:
snip
It worked like a charmbut guess what.  I can't create a
connection string to my database.  Now I have to find a
solution
to get this website to work with globals on and mysql.
Register globals has nothing to do with making a connection to MySQL. 
Post your code for the connection please.

I have tried adding an .htacess with the php globals override
thing
php_value register_globals 1

Ok this didn't work.

So I found the Mysql-PHP RPM on my mandrake cd (of course
enabling my php.ini file) and it didn't work.
I'm getting closer to a solution but I am stuck.  Why won't
the
htaccess file work?  I would like to use my php.ini file but
What isn't working for .htaccess?  Is Apache configured to allow 
.htaccess files the ability to override php variables?

it
is not configured for mysql, how could I fix this?  Is there
anything I can do for either of these two questions to get my
globals on?
Not that you should turn globals on, but if this is really what you want 
to do, enable it in your php.ini file, and restart your webserver.

I swear I will never use functions again if someone helps me.

:)

Frank
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread John Nichel
Frank Tudor wrote:
I can run mysql from a command line.

What I create a connection string using my php.ini file I get

failure. mysql_connect() errors

My connection string code is very simple:

?php
//list_db.php
$link_id = mysql_connect(localhost, username, password);
$result = mysql_list_dbs($link_id);
$num_rows = mysql_num_rows($result);
while($db_data = mysql_fetch_row($result)) {
echo $db_data[0]. BR;
$result2 = mysql_list_tables($db_data[0]);
$num_rows2 = mysql_num_rows($result2);
while($table_data = mysql_fetch_row($result2)) echo -- .
$table_data[0]. BR;
echo == $num_rows2 table(s) in  . $db_data[0] . P;
}
?
 Using this as a test and all my other connection strings
residing on my include file or one the same page as my code
fails.


--- Jay Blanchard [EMAIL PROTECTED] wrote:

[snip]
I have installed Mandrake Linux and it comes standard with
Apache PHP and MySQL.  You can install all these rpms through
the server selectionAnyway.
In my test environment it is function city and of course
register globals were on.
Now I have Taked my PHP.INI-DIST  set the globals to on and
copied it to my /etc directory.
It worked like a charmbut guess what.  I can't create a
connection string to my database.  Now I have to find a
solution
to get this website to work with globals on and mysql.
I have tried adding an .htacess with the php globals override
thing
php_value register_globals 1

Ok this didn't work.

So I found the Mysql-PHP RPM on my mandrake cd (of course
enabling my php.ini file) and it didn't work.
I'm getting closer to a solution but I am stuck.  Why won't
the
htaccess file work?  I would like to use my php.ini file but
it
is not configured for mysql, how could I fix this?  Is there
anything I can do for either of these two questions to get my
globals on?
I swear I will never use functions again if someone helps me.
[/snip]
Actually this sounds like a bunch of mutually exclusive
things.
1. Can you run MySQL from the command line?
2. Register_globlas has nothing to do with the connection
string to
MySQL
3. Can you show us your connection string code?
Echo out mysql_error() after your connection attempt.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread John Nichel
Frank Tudor wrote:
I did set my php.ini file in the etc dir and it worked fine.

But there was no mysql listed when I did a phpinfo.php page.
You installed all of this from RPM's, right?  Did you install the 
php-mysql RPM?

# rpm -q php-mysql

So more specifically, when I ude my php.ini file i have globals
on but mysql_connect failures
When I don't use php.ini files I get globals set to off and
mysql access
in ref. to .htaccess when I put and .htaccess in a dir and make
and enable httpd.conf to use htaccess it errors in the
http_perl.conf and if I try to edit my vhost config file with
the 

php_value register_globals 1

or

php_flag register_globals on

it failes when i restart my web seerver in the httpd-perl.conf
file
Frank

--- John Nichel [EMAIL PROTECTED] wrote:

Frank Tudor wrote:
snip
It worked like a charmbut guess what.  I can't create a
connection string to my database.  Now I have to find a
solution
to get this website to work with globals on and mysql.
Register globals has nothing to do with making a connection to
MySQL. 
Post your code for the connection please.


I have tried adding an .htacess with the php globals
override

thing

php_value register_globals 1

Ok this didn't work.

So I found the Mysql-PHP RPM on my mandrake cd (of course
enabling my php.ini file) and it didn't work.
I'm getting closer to a solution but I am stuck.  Why won't
the
htaccess file work?  I would like to use my php.ini file but
What isn't working for .htaccess?  Is Apache configured to
allow 
.htaccess files the ability to override php variables?


it
is not configured for mysql, how could I fix this?  Is there
anything I can do for either of these two questions to get
my

globals on?
Not that you should turn globals on, but if this is really
what you want 
to do, enable it in your php.ini file, and restart your
webserver.


I swear I will never use functions again if someone helps
me.

:)

Frank
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread John Nichel
Frank Tudor wrote:
Yes to the php-mysql rpm,

But listen I think it was the way it built the initial appach
php mysql configurations  I don't think the php.ini refects an
accurate setup of my php mysql setup.
Frank
Let's get away from the php.ini for a moment.  Being that you did 
everything from RPM, the ini file doesn't come into play here (you 
basically have a default setup, with default settings).  The stock 
php.ini file will do just fine.

What is the output of this code on your box.

if ([EMAIL PROTECTED](your_host, your_username, your_password)){
echo ( mysql_error() );
} else {
echo ( Connection exists );
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread John Nichel
Frank Tudor wrote:
Thanks for the response.

Ok with php.ini in the ect directory I get a 

Call to undefined function: mysql_connect() 

Without the php.ini file all my functions fail, because Mandrake
linux has all the latest and greatest apache php and mysql
stuff.  so during that build (which doesn't use the php.ini and
frankly I'm not sure where the php stuff is defined in apache),
because before the php.ini files ended up in the etc directory I
had to modify it from the php.ini-dist from the common lib
directory.  

does this help?

Frank
What's the value of Configuration File (php.ini) Path when you do a 
phpinfo() page?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Jay Blanchard
[snip]
I have installed Mandrake Linux and it comes standard with
Apache PHP and MySQL.  You can install all these rpms through
the server selectionAnyway.

In my test environment it is function city and of course
register globals were on.

Now I have Taked my PHP.INI-DIST  set the globals to on and
copied it to my /etc directory.

It worked like a charmbut guess what.  I can't create a
connection string to my database.  Now I have to find a solution
to get this website to work with globals on and mysql.

I have tried adding an .htacess with the php globals override
thing


php_value register_globals 1

Ok this didn't work.

So I found the Mysql-PHP RPM on my mandrake cd (of course
enabling my php.ini file) and it didn't work.

I'm getting closer to a solution but I am stuck.  Why won't the
htaccess file work?  I would like to use my php.ini file but it
is not configured for mysql, how could I fix this?  Is there
anything I can do for either of these two questions to get my
globals on?

I swear I will never use functions again if someone helps me.
[/snip]

Actually this sounds like a bunch of mutually exclusive things.

1. Can you run MySQL from the command line?
2. Register_globlas has nothing to do with the connection string to
MySQL
3. Can you show us your connection string code?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Frank Tudor
I can run mysql from a command line.

What I create a connection string using my php.ini file I get

failure. mysql_connect() errors

My connection string code is very simple:

?php
//list_db.php

$link_id = mysql_connect(localhost, username, password);
$result = mysql_list_dbs($link_id);
$num_rows = mysql_num_rows($result);

while($db_data = mysql_fetch_row($result)) {
echo $db_data[0]. BR;
$result2 = mysql_list_tables($db_data[0]);
$num_rows2 = mysql_num_rows($result2);
while($table_data = mysql_fetch_row($result2)) echo -- .
$table_data[0]. BR;
echo == $num_rows2 table(s) in  . $db_data[0] . P;
}
?
 Using this as a test and all my other connection strings
residing on my include file or one the same page as my code
fails.




--- Jay Blanchard [EMAIL PROTECTED] wrote:
 [snip]
 I have installed Mandrake Linux and it comes standard with
 Apache PHP and MySQL.  You can install all these rpms through
 the server selectionAnyway.
 
 In my test environment it is function city and of course
 register globals were on.
 
 Now I have Taked my PHP.INI-DIST  set the globals to on and
 copied it to my /etc directory.
 
 It worked like a charmbut guess what.  I can't create a
 connection string to my database.  Now I have to find a
 solution
 to get this website to work with globals on and mysql.
 
 I have tried adding an .htacess with the php globals override
 thing
 
 
 php_value register_globals 1
 
 Ok this didn't work.
 
 So I found the Mysql-PHP RPM on my mandrake cd (of course
 enabling my php.ini file) and it didn't work.
 
 I'm getting closer to a solution but I am stuck.  Why won't
 the
 htaccess file work?  I would like to use my php.ini file but
 it
 is not configured for mysql, how could I fix this?  Is there
 anything I can do for either of these two questions to get my
 globals on?
 
 I swear I will never use functions again if someone helps me.
 [/snip]
 
 Actually this sounds like a bunch of mutually exclusive
 things.
 
 1. Can you run MySQL from the command line?
 2. Register_globlas has nothing to do with the connection
 string to
 MySQL
 3. Can you show us your connection string code?
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Frank Tudor
When I remane my php.ini file I get 

/var/lib/mysql/mysql.sock

When I take the .old of the the end of my php.ini.old and put in
my etc directory i don't see any mysql stuff listed.

Frank

--- Marek Kilimajer [EMAIL PROTECTED] wrote:
 check your mysql.default_socket setting in php.ini
 
 Frank Tudor wrote:
 
  I can run mysql from a command line.
  
  What I create a connection string using my php.ini file I
 get
  
  failure. mysql_connect() errors
  
  My connection string code is very simple:
  
  ?php
  //list_db.php
  
  $link_id = mysql_connect(localhost, username,
 password);
  $result = mysql_list_dbs($link_id);
  $num_rows = mysql_num_rows($result);
  
  while($db_data = mysql_fetch_row($result)) {
  echo $db_data[0]. BR;
  $result2 = mysql_list_tables($db_data[0]);
  $num_rows2 = mysql_num_rows($result2);
  while($table_data = mysql_fetch_row($result2)) echo -- .
  $table_data[0]. BR;
  echo == $num_rows2 table(s) in  . $db_data[0] . P;
  }
  ?
   Using this as a test and all my other connection strings
  residing on my include file or one the same page as my code
  fails.
  
  
  
  
  --- Jay Blanchard [EMAIL PROTECTED]
 wrote:
  
 [snip]
 I have installed Mandrake Linux and it comes standard with
 Apache PHP and MySQL.  You can install all these rpms
 through
 the server selectionAnyway.
 
 In my test environment it is function city and of course
 register globals were on.
 
 Now I have Taked my PHP.INI-DIST  set the globals to on and
 copied it to my /etc directory.
 
 It worked like a charmbut guess what.  I can't create a
 connection string to my database.  Now I have to find a
 solution
 to get this website to work with globals on and mysql.
 
 I have tried adding an .htacess with the php globals
 override
 thing
 
 
 php_value register_globals 1
 
 Ok this didn't work.
 
 So I found the Mysql-PHP RPM on my mandrake cd (of course
 enabling my php.ini file) and it didn't work.
 
 I'm getting closer to a solution but I am stuck.  Why won't
 the
 htaccess file work?  I would like to use my php.ini file but
 it
 is not configured for mysql, how could I fix this?  Is there
 anything I can do for either of these two questions to get
 my
 globals on?
 
 I swear I will never use functions again if someone helps
 me.
 [/snip]
 
 Actually this sounds like a bunch of mutually exclusive
 things.
 
 1. Can you run MySQL from the command line?
 2. Register_globlas has nothing to do with the connection
 string to
 MySQL
 3. Can you show us your connection string code?
 
  
  
  
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site design
 software
  http://sitebuilder.yahoo.com
  
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Frank Tudor
I did set my php.ini file in the etc dir and it worked fine.

But there was no mysql listed when I did a phpinfo.php page.

So more specifically, when I ude my php.ini file i have globals
on but mysql_connect failures

When I don't use php.ini files I get globals set to off and
mysql access

in ref. to .htaccess when I put and .htaccess in a dir and make
and enable httpd.conf to use htaccess it errors in the
http_perl.conf and if I try to edit my vhost config file with
the 

php_value register_globals 1

or

php_flag register_globals on

it failes when i restart my web seerver in the httpd-perl.conf
file

Frank


--- John Nichel [EMAIL PROTECTED] wrote:
 Frank Tudor wrote:
 snip
 It worked like a charmbut guess what.  I can't create a
 connection string to my database.  Now I have to find a
 solution
 to get this website to work with globals on and mysql.
 
 Register globals has nothing to do with making a connection to
 MySQL. 
 Post your code for the connection please.
 
 I have tried adding an .htacess with the php globals
 override
 thing
 
 
 php_value register_globals 1
 
 Ok this didn't work.
 
 So I found the Mysql-PHP RPM on my mandrake cd (of course
 enabling my php.ini file) and it didn't work.
 
 I'm getting closer to a solution but I am stuck.  Why won't
 the
 htaccess file work?  I would like to use my php.ini file but
 
 What isn't working for .htaccess?  Is Apache configured to
 allow 
 .htaccess files the ability to override php variables?
 
 it
 is not configured for mysql, how could I fix this?  Is there
 anything I can do for either of these two questions to get
 my
 globals on?
 
 Not that you should turn globals on, but if this is really
 what you want 
 to do, enable it in your php.ini file, and restart your
 webserver.
 
 I swear I will never use functions again if someone helps
 me.
 
 :)
 
 Frank
 -- 
 By-Tor.com
 It's all about the Rush
 http://www.by-tor.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Jay Blanchard
[snip]
...please snip replies
[/snip]

Your php.ini should be in /etc/apache/
Once you have it there restart your Apache server.

Now, let's creat a MySQL connection string in a seperate file (not in
the php.ini, which acording to some of the stuff I have read you have
done. Also there should not a reference to mysql.sock in the php.ini)
that will return errors to us if it fails;

?php
if(!($dbconnect = mysql_pconnect(name_of_the_database_server,
user_name, password))){
echoFailed to connect to database!\n;
echo mysql_error.\n;
exit();
}
if(!mysql_select_db(the_database_you_wish_to_use, $dbconnect)){
Failed to select database!\n;
echo mysql_error().\n;
exit();
}
?

Let us know how this works for you.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Frank Tudor
Thanks for the response.

Ok with php.ini in the ect directory I get a 

Call to undefined function: mysql_connect() 

Without the php.ini file all my functions fail, because Mandrake
linux has all the latest and greatest apache php and mysql
stuff.  so during that build (which doesn't use the php.ini and
frankly I'm not sure where the php stuff is defined in apache),
because before the php.ini files ended up in the etc directory I
had to modify it from the php.ini-dist from the common lib
directory.  

does this help?

Frank 
--- John Nichel [EMAIL PROTECTED] wrote:
 Frank Tudor wrote:
  Yes to the php-mysql rpm,
  
  But listen I think it was the way it built the initial
 appach
  php mysql configurations  I don't think the php.ini refects
 an
  accurate setup of my php mysql setup.
  
  Frank
 
 Let's get away from the php.ini for a moment.  Being that you
 did 
 everything from RPM, the ini file doesn't come into play here
 (you 
 basically have a default setup, with default settings).  The
 stock 
 php.ini file will do just fine.
 
 What is the output of this code on your box.
 
 if ([EMAIL PROTECTED](your_host, your_username,
 your_password)){
   echo ( mysql_error() );
 } else {
   echo ( Connection exists );
 }
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [PHP-WIN] Re: [PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Frank Tudor
Also,

On the phpinfo.php

MYSQL_SOCKET /var/lib/mysql/mysql.sock 
MYSQL_INCLUDE -I/usr/include/mysql 
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 

ARE MISSING.  

When I run a phpinfo.php page I get all my config info

with my php.ini file put in the etc dir i get no mention of the
above mysql information

with the php.ini file removed or renamed and then running a
phpinfo page I get

MYSQL information in my config file.

So what can I do because the php.ini file just shows config info
I don't think I can modify it to see mysql can I?  doesn't that
have to reply on the rpm install?  or when the php libary was
built?

Frank

--- Frank Tudor [EMAIL PROTECTED] wrote:
 Thanks for the response.
 
 Ok with php.ini in the ect directory I get a 
 
 Call to undefined function: mysql_connect() 
 
 Without the php.ini file all my functions fail, because
 Mandrake
 linux has all the latest and greatest apache php and mysql
 stuff.  so during that build (which doesn't use the php.ini
 and
 frankly I'm not sure where the php stuff is defined in
 apache),
 because before the php.ini files ended up in the etc directory
 I
 had to modify it from the php.ini-dist from the common lib
 directory.  
 
 does this help?
 
 Frank 
 --- John Nichel [EMAIL PROTECTED] wrote:
  Frank Tudor wrote:
   Yes to the php-mysql rpm,
   
   But listen I think it was the way it built the initial
  appach
   php mysql configurations  I don't think the php.ini
 refects
  an
   accurate setup of my php mysql setup.
   
   Frank
  
  Let's get away from the php.ini for a moment.  Being that
 you
  did 
  everything from RPM, the ini file doesn't come into play
 here
  (you 
  basically have a default setup, with default settings).  The
  stock 
  php.ini file will do just fine.
  
  What is the output of this code on your box.
  
  if ([EMAIL PROTECTED](your_host, your_username,
  your_password)){
  echo ( mysql_error() );
  } else {
  echo ( Connection exists );
  }
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design
 software
 http://sitebuilder.yahoo.com
 
 -- 
 PHP Windows Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php/apache timeout

2003-03-11 Thread Chris Hayes
At 18:40 11-3-03, you wrote:
We are using Apache/PHP and using ORACLE as the database. When I submit 
the page with hugs database when the server side script (PHP) running I am 
getting an error Page not found. But on the background it is adding 
records to the database. Though I modified all the configuration in 
php.ini file max_script_execution , sesssion_gc_maxsize .etc and 
http.conf file TimeOut, KeepAliveTime paramets. How to stop this error?? 
do I need to sent any other parameters either in php.ini or in http.conf file.
Can it be that your script works like this:

* a page with the form, for instance form.php
 - when someone presses submit, they are sen on to either the page 
mentioned in  FORM ACTION=nextpage.php , or a 
location.href=nextpage.php in a bit of javascript
[nextpage.php could be form.php itself, with a form submission detection.]

* nextpage.php will check the entered values and enter them in the 
database, and looking at probably
 - lead the user to a next page. in this case probably  with a bad url.
Check for lines with 'headers(location' or javascripts with location.href...



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] php/apache timeout

2003-03-11 Thread M.A.Bond
HI,

Yes I was having this problem, it's probably not php timing out, but your
browser. To stop this move the execution of your sql. I assume you do
something like this:

?php

$sql = insert...;
Execute SQL;

?

HTML
...

...

/HTML

You need to move this as follows:

HTML
HEAD
/HEAD
BODY
?php

$sql = insert..;
Execute SQL;

?

Html code

/Body
/HTML

This starts sending the page to the browser, before running the sql, so the
browser doesn't time out whilst waiting to download a page.

Thanks

Mark


-Original Message-
From: Hilmi Hilmiev [mailto:[EMAIL PROTECTED] 
Sent: 11 March 2003 17:41
To: [EMAIL PROTECTED]
Subject: [PHP] php/apache timeout


Hi,

We are using Apache/PHP and using ORACLE as the database. When I submit 
the page with hugs database when the server side script (PHP) running I 
am getting an error Page not found. But on the background it is adding 
records to the database. Though I modified all the configuration in 
php.ini file max_script_execution , sesssion_gc_maxsize .etc and 
http.conf file TimeOut, KeepAliveTime paramets. How to stop this error?? 
do I need to sent any other parameters either in php.ini or in http.conf 
file.


Thanx in Advance
MrE


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Apache

2003-01-31 Thread Justin French
strings must be wrapped in quotes

$name = 'ab';

Justin

on 31/01/03 8:45 PM, Aaron Stephan William Boeren ([EMAIL PROTECTED]) wrote:

 The script:
 ?php
 #start variables
 $name = ab;
 $age = 16;
 #start script
 echo Hi, my name is $name and I'am $age years old.;
 ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP Apache

2003-01-31 Thread John W. Holmes
 $name = ab;
 Notice: Use of undefined constant ab - assumed 'ab' in
 c:\inetpub\wwwroot\sdd\pages\nameage.php on line 3

rant
Honestly, do you read the error messages or do you just post them to the
list? You need to stop using us for the easy answer and do a little
looking yourself. For example... when I see that error, I'm going to ask
my self why is PHP thinking ab is a constant? Do I mean it to be a
constant? If so, I must of forgot to define() it somewhere. If it's not
supposed to be a constant, what is it supposed to be? An integer... well
a and b don't make very good integers, so probably not. It's supposed to
be a string, right? So why is PHP thinking it's a constant? At this
point, if I didn't know what was going on, I'd go to the manual and read
the chapter on variable types and the sections on constants and
strings... to learn what the difference is. I'll guarantee that if you
actually read those sections, you'd realize... on your own... (imagine
that) that strings have to be surrounded by quotes... either single or
double (the section will even explain the difference). So now you'd know
the answer, you found it yourself, you maybe learned a few other things
as you read, and I bet you would have gotten your answer a lot faster
than waiting for answers on a mailing list...
/rant

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP Apache

2003-01-30 Thread 1LT John W. Holmes
 Maby you could help me on why I get this message when using variables:
 Undefined variable: UN1 in c:\inetpub\wwwroot\sdd\pages\redirection.php
 on line 15

Because you have an undefined variable. You have a variable that has not
been assigned a value. Assign it a default value or use isset() in your
tests and this will go away.

 I have PWS being used, PHP 4.3.0  Apache 2.0.34. OS is Windows 2k
 If you could help that would be great because I need it for testing
 scripts for my HSC Course.

Or look at error_reporting()

www.php.net/error_reporting

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP apache module question

2002-11-14 Thread BigDog
When you compile php + apachemany people have php as a DSO.  So
there is no actual binary file in a bin directory that is called.  You
can also have php as a module that is in the apache core, where it is
loaded automatically in apache (not a DSO).

You can run php as a cgi which uses the binary...however that is really
slow compared to the module.

If you need the binary php then you can reconfigure php without apache
(leave everything else), make, make install.  I also like to add the
config option of --bindir=/usr/local/bin to mine so that i get it all
in where all users can use the php binary...

HTH


On Thu, 2002-11-14 at 19:25, Mike D wrote:
 I am trying to execute a php script from the command line but came to 
 realize that I can't locate any php binary file.
 I thought there had to be a php bin file in order for php to work or am 
 i missing something?
 
 NOTE: i have looked in /usr/bin/, /usr/local/bin/ and ran locates but 
 found nothing.
 
 Msytified,
 Mike D
-- 
.: B i g D o g :.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP, Apache, and MySQL on MacOS X (Jaguar)

2002-11-11 Thread John Nichel
Come on guys, it's not that hard to look.

http://www.php.net/manual/en/install.macosx.php

http://www.mysql.com/doc/en/Mac_OS_X.html


Gregory Hernandez wrote:

hello everyone.

would anyone point me to a site or online article with details
regarding the installation of PHP, Apache, and MySQL on MacOS X
(Jaguar).

any assistance would be greatly appreciated.

gregory hernandez
[EMAIL PROTECTED]




--
By-Tor.com
It's all about the Rush
http://www.by-tor.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP, Apache, and MySQL on MacOS X (Jaguar)

2002-11-11 Thread Tracy Finifter Rotton
Check out Marc Liyange's site at
http://www.entropy.ch/software/macosx/welcome.html  He has a lot of Mac
software pre-compiled and ready for installation, including PHP installs for
Jaguar.

-- tracy

On 11/11/02 2:06 PM, Gregory Hernandez [EMAIL PROTECTED] wrote:

 hello everyone.
 
 would anyone point me to a site or online article with details
 regarding the installation of PHP, Apache, and MySQL on MacOS X
 (Jaguar).
 
 any assistance would be greatly appreciated.
 
 gregory hernandez
 [EMAIL PROTECTED]

-- 
Tracy F. Rotton
[EMAIL PROTECTED]
http://www.taupecat.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP, Apache, and MySQL on MacOS X (Jaguar)

2002-11-11 Thread Paul Welty
This is the first in an excellent series of articles on this topic:

http://www.macdevcenter.com/pub/a/mac/2001/12/07/apache.html

HTH,

Paul


On 11/11/02 5:06 PM, Gregory Hernandez [EMAIL PROTECTED] wrote:

 hello everyone.
 
 would anyone point me to a site or online article with details
 regarding the installation of PHP, Apache, and MySQL on MacOS X
 (Jaguar).
 
 any assistance would be greatly appreciated.
 
 gregory hernandez
 [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP / Apache 2.0.39 issues

2002-07-27 Thread electroteque

geez i thought they had it right this time , i had the same problem with php
4.2.1 , i downloaded the latest snapshot and just copied over the
php_functions.c from there and the install worked after that
Bob Lockie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...

 Hello again..
 
 I have another compile problem, I'm wondering if someone
 can help me. I've built and installed Apache 2.0.39 and am recompiling
 PHP4.2.2. Below are the details..
 
 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr
 --with-oci8=`dbhome`
 
 Compiling...
 Entering director '/php-4.2.2/sapi/apache2filter'
 /bin/sh /php-4.2.2/libtool --silent --mode=compile gcc -I.
 -I/php4.2.2/sapi/apache2filter -I/php4.2.2/main -I/php-4.2.2
 -I/usr/local/apache2/include -I/php-4.2.2/Zend
 -I/php-4.2.2/ext/mysql/libmysql
 -I/export/home/oracleuser/OraHome1/rdbms/public
 -I/export/home/oracleuser/OraHome1/rdbms/demo -I/php-4.2.2/ext/xml/expat
 -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
 -I/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthreads -DZTS -prefer-pic -c
 php_functions.c
 php_functions.c:93:27: missing binary operator before '('

 Use Apache 1.3.26 with PHP 4.2.2.
 Apache 2 support is experimental at this time.
 If you really want to use Apache2, do a search on google.






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP / Apache 2.0.39 issues

2002-07-26 Thread Frank S. Kicenko

Yes I found it... thank you!

-Original Message-
From: Aaron Gould [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 9:56 AM
To: Frank S. Kicenko; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP / Apache 2.0.39 issues


Searching the list archives will reveal the answer.  I've answered this
exact question several times this past week...

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer


- Original Message -
From: Frank S. Kicenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 10:15 AM
Subject: [PHP] PHP / Apache 2.0.39 issues


Hello again..

I have another compile problem, I'm wondering if someone
can help me. I've built and installed Apache 2.0.39 and am recompiling
PHP4.2.2. Below are the details..

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr
--with-oci8=`dbhome`

Compiling...
Entering director '/php-4.2.2/sapi/apache2filter'
/bin/sh /php-4.2.2/libtool --silent --mode=compile gcc -I.
-I/php4.2.2/sapi/apache2filter -I/php4.2.2/main -I/php-4.2.2
-I/usr/local/apache2/include -I/php-4.2.2/Zend
-I/php-4.2.2/ext/mysql/libmysql
-I/export/home/oracleuser/OraHome1/rdbms/public
-I/export/home/oracleuser/OraHome1/rdbms/demo -I/php-4.2.2/ext/xml/expat
-D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthreads -DZTS -prefer-pic -c
php_functions.c
php_functions.c:93:27: missing binary operator before '('

This is the error...

Thanks all.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP Apache Module AND command Line

2002-06-05 Thread Jason Wong

On Thursday 06 June 2002 01:26, Steve Buehler wrote:
 Is there doc somewhere to would tell how to install PHP as a command line
 interpreter (like perl) without messing up the installation of PHP that is
 installed as a module in/for Apache?  

Manual - Installation - Servers-CGI/Commandline

 Basically, I want to have both on the
 same server.  Or can this even be done?

Yes.

./configure
make

Then copy the resulting php binary to wherever you like.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Isn't it strange that the same people that laugh at gypsy fortune
tellers take economists seriously?
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP Apache Module AND command Line

2002-06-05 Thread Ray Hunter

Or you can run the configuration with the bin dir option so that it places
it where you want:


Example:

./configure --bindir=/usr/bin
make
make install



Thank you,

RAY HUNTER



-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Apache Module AND command Line


On Thursday 06 June 2002 01:26, Steve Buehler wrote:
 Is there doc somewhere to would tell how to install PHP as a command line
 interpreter (like perl) without messing up the installation of PHP that is
 installed as a module in/for Apache?  

Manual - Installation - Servers-CGI/Commandline

 Basically, I want to have both on the
 same server.  Or can this even be done?

Yes.

./configure
make

Then copy the resulting php binary to wherever you like.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Isn't it strange that the same people that laugh at gypsy fortune
tellers take economists seriously?
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php apache log analysers/website stats

2002-05-24 Thread Ray Hunter

Do a search on google and you will find plenty to keep you busy with...

Thanks,

Ray Hunter



-Original Message-
From: John Ngo [mailto:[EMAIL PROTECTED]] 
Sent: Friday, May 24, 2002 8:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php apache log analysers/website stats


hey does anybody know of any good apache log analyser or website
statistics php projects?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP,Apache disabled FTP?

2002-05-18 Thread Craig Vincent

 I'm a newbie so please forgive the question,
 I have reciently setup apache and PHP and now FTP does not work!
 I am running a win2k pro machine, is this because of PHP or
 APACHE or what?
 am going crazy and have searched google like crap without any damn
 answer...then went to microsoft.com searching...still no #$#$# answer.

Unless you did something totally off the wall I seriously doubt Apache or
PHP are affecting your FTP server.  Perhaps you should check the
documentation at your FTP provider's site.  Perhaps it can assist you in
troubleshooting why the server isn't working.

Sincerely,

Craig Vincent



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP,Apache disabled FTP?

2002-05-18 Thread Dan Hardiker

 I have reciently setup apache and PHP and now FTP does not work! I am
 running a win2k pro machine, is this because of PHP or
 APACHE or what?
[..]
 Unless you did something totally off the wall I seriously doubt Apache
 or PHP are affecting your FTP server.

Unless your using IIS to serve your FTP ;) That would go belly up if youve
got another http processes running. More information about your setup is
required for us to help further.

-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software  Systems Engineer



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP,Apache disabled FTP?

2002-05-18 Thread r

Hey,
Thank you for replying.
Nope am not using IIS, I just have a plain win2k machine that used to ftp
without any problems before.now i cant even find ftp.dll but can find
ftp://ftp.exe
I am unable to connect to 5 sites owned by the company i work for but am
able to connect to them when i go to a cyber cafe I have tried stopping
apache no use...tried to go to the php.ini file and see if there is
anything about enableing FTP...none...going crazy.

Any help or ideas.
-Ryan.


 Unless your using IIS to serve your FTP ;) That would go belly up if youve
 got another http processes running. More information about your setup is
 required for us to help further.

 --
 Dan Hardiker [[EMAIL PROTECTED]]
 ADAM Software  Systems Engineer



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP,Apache disabled FTP?

2002-05-18 Thread r

Hi,
I tried to use ftp via the command prompt it didnt work, got a timed out
error.
Tried to use it via cuteFTPtimed out error..will try after 30
seconds5 minutes later...10 timeouts.


Any ideas?

-Ryan

- Original Message -
From: Michael Geier [EMAIL PROTECTED]
To: r [EMAIL PROTECTED]
Sent: Saturday, May 18, 2002 7:29 AM
Subject: Re: [PHP] PHP,Apache disabled FTP?


 More information about the ftp daemon would be needed
 for us to make an informed opinion.  Neither PHP, nor
 Apache is, or ever has been, and ftp daemon*

 * - well, you could write a socket program with PHP to
 listen to port 21 and receive and transmit files,
 but IMHO is probably not the best tool for the job.

 ftp.exe is the ftp client for windows, not a daemon.
 If you were previously using IIS, that web server comes
 bundled with a FTP server.  If not, what ftpd were you
 using?  There are several free|commercial packages that
 could be used to suit your needs.

 --
 Michael Geier
 CDM Sports, Inc. - Systems Administrator
 email: [EMAIL PROTECTED]
 phone: 314.991.1511 x 6505


 Quoting r [EMAIL PROTECTED]:

  Hey,
  Thank you for replying.
  Nope am not using IIS, I just have a plain win2k machine that used to
ftp
  without any problems before.now i cant even find ftp.dll but can
find
  ftp://ftp.exe
  I am unable to connect to 5 sites owned by the company i work for but am
  able to connect to them when i go to a cyber cafe I have tried
stopping
  apache no use...tried to go to the php.ini file and see if there is
  anything about enableing FTP...none...going crazy.
 
  Any help or ideas.
  -Ryan.
 
 
   Unless your using IIS to serve your FTP ;) That would go belly up if
  youve
   got another http processes running. More information about your setup
is
   required for us to help further.
  
   --
   Dan Hardiker [[EMAIL PROTECTED]]
   ADAM Software  Systems Engineer
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 


 -
 This mail sent through CDM Sports Webmail.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] [PHP/Apache] Transparent Subdomains ?

2001-12-15 Thread Shane Wright


If there are no other virtual hosts on your box, you could leave Apache as is 
(unrecognised hostnames will go to the default site), and do the dynamic 
processing in PHP using the $REQUEST_URI variable...

as for the crazy-page.php thing, you could set up a custom error handler page 
that points at your dynamic page...

Hope that helps...

--
Shane



On Thursday 13 Dec 2001 7:56 pm, Jon Shoberg wrote:
 Any ideas on how to pull this off.

 I would like to have http://mydomain.com and http://www.mydomain.com
 resolve to my /index.html page.  When a user types in
 http://crazy.mydomain.com or http://crazy.mydomain.com/crazy-page.php, I
 would like to have it resolve to /home/mydomain/public_html/handler.php
 where I can trap for the subdomain/URI and perform dynamic processing on
 those values.

 I presume it would have to be a process though mod_rewrite and
 .htaccess?  Is this able to be done.  I've gone though quite a bit yet
 unable to get it working as described.

 Any ideas?

 Jon

-- 
PHP General 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]




Re: [PHP] PHP APACHE Authenticate

2001-12-13 Thread Rasmus Lerdorf

Are you sure you want to send an external POST request to a PHP script on 
the same server?  That doesn't make a whole lot of sense to me.  Why not 
simply include file1_1.php4 directly from file_1.php4.

However, assuming you have some logical reason for wanting to do this, it 
is rather simple.  In your POST request just add another header.  The 
header looks like this:

  Authorization: Basic Zm9vOmJhcg==

So just fputs() this after your POST.

The format of Basic auth is amazingly simplistic.  Try a 

  base64_decode('Zm9vOmJhcg==') 

and you will see that it turns into:

  foo:bar

ie. just username:password.  So you would most likely want something like:

 fputs($sock, 'Authorization: ' . base64_encode($user:$pass) . \r\n);

-Rasmus

On Thu, 13 Dec 2001, Silvia Mahiques wrote:

   Hi Friends!:
 I have some problems with APACHE Authenticate. I have a directory with
 access control. This is his structure:
 
   intranet_directory
   file_1.php4
   ...
   people_directory
   file1_1.php4
   ...
   research_directory
   publications_directory
   ...
 
 The problem is that I can't access to file1_1.php4 that is call from
 file_1.php4 with a POST method. This POST method is make without user
 interaction, is call internaly by script file_1.php4. All is Ok when I
 access file_1.php4, but when I try to access file1_1.php4 the server sends
 this message:
 
 
 HTTP/1.1 401 Authorization Required Date: Wed, 12 Dec 2001 18:45:16 GMT
 Server: Apache/1.3.20 (Win32) PHP/4.0.6 WWW-Authenticate: Basic
 realm=Restricted GTC member Directory Connection: close Content-Type:
 text/html; charset=iso-8859-1
 Authorization Required
 This server could not verify that you are authorized to access the document
 requested. Either you supplied the wrong credentials (e.g., bad password),
 or your browser doesn't understand how to supply the credentials required.
 
 
 
 I think that I have to pass to the server the information about Authenticate
 (type of Authenticate, user, password) when I make a POST internaly, because
 this work is make normaly by browser and perhaps I have to do now. But, how
 can I make this?
 
 
 
 


-- 
PHP General 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]




Re: [PHP] PHP/Apache/Interbase/Linux

2001-12-11 Thread Douglas McKenzie

Theres a mail archive on the php site that you can search through if I 
remember correctly

Todd Cary wrote:

I just updated my Linux 7.1 to Linux 7.2 and apparently the version of
Apache that I was running was replaced.  When I execute phpinfo(),
Interbase is not listed.  In the /tmp/php.ini, Interbase is uncommented.

Now this is where I am lost - again!  As I recall, I had to create a
special version of Apache that incorporated Interbase and some kind soul
on this group gave me the steps on how to do this and how to implement
it.

Is there a way to check old messages or is there another person who
could step me through it?  I'll file the message in a binder - I
promise!

Many thanks

Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]






-- 
PHP General 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]




RE: [PHP] PHP/Apache/Windows 2000 - Does not send mail

2001-10-23 Thread Nick Richardson

You need to make sure you have a few things configured on you SMTP Virtual
server.

Start IISAdmin and right click on 'Default SMTP Virtual Server' then choose
properties.

Ok, from here, things might not match perfectly because i'm running Windows
XP (no i didn't pirate it, i work for microsoft).

Under the access tab in access control, click authentication
make sure that anonymous access is checked.
you can leave basic auth and integrated windows auth checked also
click ok
click on relay under relay restrictions
add your local machine to the list allowed to relay, and enable relaying
go to the delivery tab
under outbound security, verify it's set to anonymous access.

If all this stuff is setup, you should be able to use mail() -

//Nick

-Original Message-
From: Yuval Zukerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 8:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP/Apache/Windows 2000 - Does not send mail


Hi there,

I installed PHP 4.0.6 on a Windows 2000 machine running Apache 1.3.22.
I followed all the instructions for installation - added the php.ini file
to the C:\winnt directory, added php to httpd.conf. I tried both the module
and the CGI versions and the following problem still persisted:
Whenever I try to use the mail() function to send a an e-mail with a single
file attachment, I receive a server error.

If I set the SMTP variable in php.ini to localhost (where I am running an
SMTP server) , I receive a PHP error and Apache logs a 'Premature end of
script headers: C:/php/php.exe' error.
If my SMTP variable is set to either a remote host, php reports in the next
browser window of a server error at the line containing the mail() function
call.

Do I have a permissions issue with any of my files or directories? I did
not know how to set the IUSR_MachineName permissions as described in the
instructions. Do I need to create such a user? where do I find it if it
exists?

Thanks for any response,

Yuval


--
PHP General 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]


-- 
PHP General 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]




Re: [PHP] php+apache 2

2001-10-02 Thread Stig Venaas

On Wed, Oct 03, 2001 at 01:32:13AM +0200, Jiri Mikulas wrote:
 sapi_apache2.c: In function `php_input_filter':
 sapi_apache2.c:248: too many arguments to function `ap_get_brigade'

I haven't looked that much at the code, you could perhaps try to
simply remove the last parameter... Not sure how well that would
work. I build with 2.0.18, I then had to remove the last parameter
in the ap_save_brigade call. Perhaps the best thing is to get the
latest from http://dev.apache.org/dist/.

Stig

-- 
PHP General 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]




Re: [PHP] PHP/Apache configuration for Win NT

2001-08-22 Thread paul . eaton

Hi Julie,

I realised that I had a case sensitivity issue with my script alias and
corrected it.

So far so good.

I then retried it and got the following error message:-

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and
inform them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error log.



and then:-

Fatal error: Call to undefined function: info() in C:\Program Files\Apache
Group\Apache\htdocs/phpinfo.php on line 3

when I tried the phpinfo test.

Well I just completely confused, everything is exactly as you said it should be
(I think)

Can anyone offer any further suggestions,

Thanks,

Paul Eaton.






Julie Meloni [EMAIL PROTECTED] on 08/21/2001 05:09:56 PM

Please respond to Julie Meloni [EMAIL PROTECTED]

To:   Paul Eaton/Harlequin@Harlequin
cc:   [EMAIL PROTECTED]
Subject:  Re: [PHP] PHP/Apache configuration for Win NT



pegc ScriptAlias /php/ C:/Php/

pegc AddType application/x-httpd-php .php .phtml .html
pegc AddType application/x-httpd-php-source .phps

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

Check for mismatched cases in httpd.conf.



   Julie Meloni
[EMAIL PROTECTED]
PHP Essentials  PHP Fast  Easy
 --- www.thickbook.com ---








-- 
PHP General 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]




Re: [PHP] PHP/Apache configuration for Win NT

2001-08-21 Thread Julie Meloni

pegc ScriptAlias /php/ C:/Php/

pegc AddType application/x-httpd-php .php .phtml .html
pegc AddType application/x-httpd-php-source .phps

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

Check for mismatched cases in httpd.conf.



   Julie Meloni 
[EMAIL PROTECTED]
PHP Essentials  PHP Fast  Easy
 --- www.thickbook.com ---


-- 
PHP General 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]




Re: [PHP] PHP/Apache configuration for Win NT

2001-08-21 Thread Neil Freeman

You appear to have a typo in your httpd.conf:

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

should be as follows: (note the )

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

Hope that helps,

Neil

[EMAIL PROTECTED] wrote:

 ***
  This message was virus checked with: SAVI 3.48
  last updated 14th August 2001
 ***

 Hi,

 Here's the scenario,

 I've installed and am running mySQL on my machine
 I've installed Apache and have ran it and seen the page in IE confirming correct
 setup.

 I've installed PHP4 from a CGI binary distribution at the following location

  c:\Php\

 and have been following a tutorial on WebMonkey in order to configure it.

 As instructed I have inserted the following lines in my httpd.conf file

 ScriptAlias /php/ C:/Php/

 AddType application/x-httpd-php .php .phtml .html
 AddType application/x-httpd-php-source .phps

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

  DocumentRoot C:/Program Files/Apache Group/Apache/htdocs

 The tutorial also instructed me to move the php4ts.dll to the following place

  c:\Winnt\system

 which I have done

 After rebooting my machine I started IE and pointed it at the apache server
 again.
 This time it produced an error as follows (from the log)

  [Tue Aug 21 14:54:47 2001] [error] [client 172.16.18.149] File does not
 exist:
  c:/program files/apache group/apache/htdocs/php/php.exe/index.html

 As instructed I created the filephpinfo.php in the Document root and pointed the
  browser at it.

 This yielded the following error message:

  [Tue Aug 21 14:54:53 2001] [error] [client 172.16.18.149] File does not
 exist:
  c:/program files/apache group/apache/htdocs/php/php.exe/phpinfo.php

 Can anyone tell me where I am going wrong here please?

 Any suggestions gratefully received.

 Thanks,

 Paul Eaton.

 --
 PHP General 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]

--

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]




-- 
PHP General 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]




RE: [PHP] PHP/Apache security question

2001-07-07 Thread ..s.c.o.t.t..

of course that's possible... it's not default, but it's very possible

i think it's an apache module called suEXEC
that will run the script with the script owner's name.group,
not apache.apache

 -Original Message-
 From: [EMAIL PROTECTED]
 Subject: [PHP] PHP/Apache security question
 
 Is there anything anyone can do about this? of course it would be ideal if
 php would inherit uid/gid from the script file instead of the server
 ownership but I think there is no way to accomplish this, so this is why
 I am clueless.
 
 Oh, one more thingie: I have this CGI script here:
 
 #!/usr/bin/php
 htmlhead.
 etc etc
 
 
 I try to access it and the security warning! page appears. The
 documentation sais that it's ok to use such CGI scripts, and warns the
 user about the security threat of using the php binary as a CGI. Obviously
 I am not using the php binary as a CGI, rather I am creating a CGI script
 that's interpreted using the php binary, so what seems to be the problem
 here?
 
 Thx a lot,
 georgeb
 
 
 -- 
 PHP General 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]
 

-- 
PHP General 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]




RE: [PHP] PHP/Apache security question

2001-07-07 Thread Aaron Bennett

Does anyone know if SuExec plays friendly with PHP? From my recollection,
when using suexec, it only alters the current UID/GID for scripts executed
by httpd. Does PHP get treated the same way as would say a perl cgi script?

I've looked a little at how phpwebhosting.com does it, and they set each
user to their own unique primary group, and are (i believe) using suexec in
their apache config setting each VirtualHost with their respective user and
group... But does that really 'secure' everyone's code from other equally
privileged users? :-?

--
Aaron Bennett
[EMAIL PROTECTED]


-Original Message-
From: ..s.c.o.t.t.. [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 07, 2001 4:33 PM
To: Php-General
Subject: RE: [PHP] PHP/Apache security question


of course that's possible... it's not default, but it's very possible

i think it's an apache module called suEXEC
that will run the script with the script owner's name.group,
not apache.apache

 -Original Message-
 From: [EMAIL PROTECTED]
 Subject: [PHP] PHP/Apache security question
 
 Is there anything anyone can do about this? of course it would be ideal if
 php would inherit uid/gid from the script file instead of the server
 ownership but I think there is no way to accomplish this, so this is why
 I am clueless.
 
 Oh, one more thingie: I have this CGI script here:
 
 #!/usr/bin/php
 htmlhead.
 etc etc
 
 
 I try to access it and the security warning! page appears. The
 documentation sais that it's ok to use such CGI scripts, and warns the
 user about the security threat of using the php binary as a CGI. Obviously
 I am not using the php binary as a CGI, rather I am creating a CGI script
 that's interpreted using the php binary, so what seems to be the problem
 here?
 
 Thx a lot,
 georgeb
 
 
 -- 
 PHP General 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]
 

-- 
PHP General 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]



RE: [PHP] PHP/Apache security question

2001-07-07 Thread ..s.c.o.t.t..

if the script is running as user scott group scott,
then it can only alter/read/execute files that the user
scott has access to... nothing else.

of course, if you have user scott, group users,
and have user tom in group users, then any files
that have the group read/write/exec permissions set
could possibly be vulnerable to other user's scripts.

 -Original Message-
 From: Aaron Bennett [mailto:[EMAIL PROTECTED]]
 Subject: RE: [PHP] PHP/Apache security question
 
 Does anyone know if SuExec plays friendly with PHP? From my recollection,
 when using suexec, it only alters the current UID/GID for scripts executed
 by httpd. Does PHP get treated the same way as would say a perl cgi script?
 
 I've looked a little at how phpwebhosting.com does it, and they set each
 user to their own unique primary group, and are (i believe) using suexec in
 their apache config setting each VirtualHost with their respective user and
 group... But does that really 'secure' everyone's code from other equally
 privileged users? :-?
 
 --
 Aaron Bennett
 [EMAIL PROTECTED]
 
 
 -Original Message-
 From: ..s.c.o.t.t.. [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, July 07, 2001 4:33 PM
 To: Php-General
 Subject: RE: [PHP] PHP/Apache security question
 
 
 of course that's possible... it's not default, but it's very possible
 
 i think it's an apache module called suEXEC
 that will run the script with the script owner's name.group,
 not apache.apache
 
  -Original Message-
  From: [EMAIL PROTECTED]
  Subject: [PHP] PHP/Apache security question
  
  Is there anything anyone can do about this? of course it would be ideal if
  php would inherit uid/gid from the script file instead of the server
  ownership but I think there is no way to accomplish this, so this is why
  I am clueless.
  
  Oh, one more thingie: I have this CGI script here:
  
  #!/usr/bin/php
  htmlhead.
  etc etc
  
  
  I try to access it and the security warning! page appears. The
  documentation sais that it's ok to use such CGI scripts, and warns the
  user about the security threat of using the php binary as a CGI. Obviously
  I am not using the php binary as a CGI, rather I am creating a CGI script
  that's interpreted using the php binary, so what seems to be the problem
  here?
  
  Thx a lot,
  georgeb
  
  
  -- 
  PHP General 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]
  
 
 -- 
 PHP General 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]
 

-- 
PHP General 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]




RE: [PHP] php / apache

2001-07-02 Thread Pétur Björn Thorsteinsson


its because I have a php file that needs a password to view - that file
contains 'includes' to another script that gets images from a database and
displays them. I need to make it so that only that particular php file can
access these image-viewing scripts.

-petur


   
 
Jason Lustig 
 
[EMAIL PROTECTED]To: Pétur Björn Thorsteinsson   
 
ffalo.edu [EMAIL PROTECTED], 
 
   [EMAIL PROTECTED] 
 
30.06.2001 cc: 
 
02:58  Subject: RE: [PHP] php / apache 
 
Please respond 
 
to lustig  
 
   
 
   
 




Why would you want to do that?

I don't think it's really possible... unless you do something wacky with
Apache...

--Jason






--
PHP General 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]




RE: [PHP] php / apache

2001-06-30 Thread Jason Lustig

Why would you want to do that?

I don't think it's really possible... unless you do something wacky with
Apache...

--Jason


-- 
PHP General 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]




  1   2   >