[PHP] php apache module before read a file recursively scan full path

2010-06-14 Thread Vincenzo D'Amore
Hello,

I have performance problems during execution of php code.
With strace I have recorded system calls which are called by apache httpd
and what I have is quite singular.
It seems that php apache module before read file recursively scan with lstat
all the path (please also see attached file).
If you take a look at attached file, it is also odd because there are many
tries before read the file.
Is there somebody that could help me to understand why I have this behavior?


lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...})
= 0
lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755,
st_size=3072, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755,
st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755,
st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755,
st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro",
{st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace",
{st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs",
{st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes",
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php",
{st_mode=S_IFREG|0644, st_size=2513, ...}) = 0

Best regards,
Vincenzo D'Amore



-- 
Vincenzo D'Amore
email: v.dam...@gmail.com
msn: free...@hotmail.com
skype: free.dev
mobile: +39 349 8513251
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, 
st_size=3072, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, 
st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, 
st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, 
st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", 
{st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace", 
{st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs", 
{st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes",
 {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php",
 {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, 
st_size=3072, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, 
st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, 
st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, 
st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", 
{st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace", 
{st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs", 
{st_mode=S_IFDIR|0750, st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes",
 {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro/webspace/httpdocs/wp-includes/feed-rss2.php",
 {st_mode=S_IFREG|0644, st_size=2513, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml", {st_mode=S_IFDIR|0755, 
st_size=3072, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP", {st_mode=S_IFDIR|0755, 
st_size=2048, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la", {st_mode=S_IFDIR|0755, 
st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av", {st_mode=S_IFDIR|0755, 
st_size=80, ...}) = 0
lstat("/usr/local/sitipersonali/disco4_ml/NSP/la/av/lavoro", 
{st_m

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  wrote:

>  On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
>  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 
> 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
> >> >  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 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 SAVE AS

2009-11-27 Thread Jim Lucas

Bastien Koert wrote:

On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
 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  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
 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 Bastien Koert
On Fri, Nov 27, 2009 at 11:20 AM, Ashley Sheridan
 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  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
>> >  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 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  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
> >  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 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  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
>  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 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
 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 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 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
>



-- 
- Ŧ₳ᶇṾḛḗƦ


[PHP] PHP APACHE SAVE AS

2009-11-27 Thread Julian Muscat Doublesin
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 suddenly not working

2009-10-27 Thread Jason Lixfeld
 in and of itself considering pcre is a installed properly  
too :|


[r...@ricky /usr/local/www]# cat /usr/local/etc/php.ini | egrep -i  
'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
 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

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

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 +0000
> 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
> > > >>  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
> > > >>>  > > >>> 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 
> &

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

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
> >>  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
> >>>  >>> 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 P

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
> >>  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
> >>>  >>> 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 P

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
>>  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
>>> >> 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
>>
>> 
>>
>> 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 t

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
>  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
> >  > 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
> 
> 
> 
> 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 Bastien Koert
On Tue, Oct 27, 2009 at 9:18 AM, Jason Lixfeld
 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
>  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



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



[PHP] PHP+Apache suddenly not working

2009-10-27 Thread Jason Lixfeld
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

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



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 0"30, 1"00, 1"30,
> 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:
> 
>
> 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: 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 0"30, 1"00, 1"30, 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:


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



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

2009-03-10 Thread Marc Venturini
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 0"30, 1"00, 1"30, 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.


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



[PHP] PHP & Apache - Consuming Too much memory

2009-03-05 Thread Shota Gedenidze
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?

Your help is greatly appreciated,
Thank you.

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



[PHP] PHP/Apache configuration failure

2007-01-10 Thread Bruce A. Julseth

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.

1) I added my PHP directory, C:/PHP5, to my PATH
2) I copied php.ini-recommended to my C:/windows directory and renamed
it php.ini
3) I made the following changes to PHP.ini
   doc_root = "c:/inetpub/wwwroot"
extension_dir = "c:/php5/ext"
4) I made the following changes to Httpd.conf
After the last entry in the LoadModule section:

  LoadModule php5_module "c:/php5/php5apache.dll"
 AddModule mod_php5.c

NOTE: If I comment out the above two statemens, Apache will start.

   In the  Section, I added

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

And that's it.

When I restart Apache, I get an error dialog with the message:

  The requested operation has failed.

What have I missed or done wrong?

Thanks for the help...

Bruce


My mailbox is spam-free with ChoiceMail, the leader in personal and corporate 
anti-spam solutions. Download your free copy of ChoiceMail from 
www.digiportal.com

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 + 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 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 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



[PHP] PHP / Apache + Error 500

2006-01-25 Thread Thomas

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



[PHP] PHP, Apache, Windows 2003

2005-04-22 Thread Reynier Perez Mira
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  . 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. 

 



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  . 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, 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  .
> 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 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  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 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-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 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
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-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

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 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 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 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 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 "Picture Upload 
ErrorFilesize is greater than maximum 75k! 
Please resize your picture to below 75k, and try again!";
}

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



[PHP] PHP &Apache Upload file Permission denied

2004-12-12 Thread Michael Leung
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 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?


Yes there is. Works without problems.

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



[PHP] PHP & Apache Version

2004-04-30 Thread Mike R

Is there a version of Apache 2+ that now works with PHP?  Last I checked,
the were incompatible, but recently someone I ran into claimed that the bugs
have been for such a setup.

:)

Thanks,

-MIke

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



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

2004-04-24 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]):
> 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

I've gotten so used to them now, that I consider them receipts that
my messages have been posted to everyone :)


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
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/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



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

2004-04-24 Thread Andy B
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.)
>
>

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



[PHP] php/apache/mysql on ntfs

2004-04-24 Thread Andy B
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??

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



[PHP] PHP Apache Log Stats and viewer?

2004-02-26 Thread Karl Timmermann
Hi,

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?

Thanks!

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

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



[PHP] PHP Apache

2004-01-31 Thread Ash
Hi friends of PHP,
I am new to PHP and just created a code. I tried it out on a php enabled
site and it worked, oh joy!

I then installed apache 2.0.48. All was good.

I then downloaded and installed php 4.3.4.exe, the auto install version. I
chose apache in the bullet menu thing but when it installed it said i have
to configure a file as it failed to work.

I uploaded some PHP files to the htdocs, and loaded it via
http://localhost/file.php. The file exists and it loaded, but wasnt reading
the PHP script? It was like when you just open the file in internet
explorer. I am using inetrnet explorer 6.

Help me, i am running XP Home Edition!

Thanks   Ashley

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


[PHP] PHP+Apache Question

2004-01-30 Thread Ashley M. Kirchner
   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?

--
W | I haven't lost my mind; it's backed up on tape somewhere.
 +
 Ashley M. Kirchner    .   303.442.6410 x130
 IT Director / SysAdmin / WebSmith . 800.441.3873 x130
 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6
 http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A.
--
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



[PHP] PHP Apache Build Problem

2004-01-16 Thread pw
Hello,

I am trying to build php-4.3.3 into apache_1.3.28 as a module.
I configure php

--with-apache=/apache/source/path

and the php make process puts the source for mod_php4 into

/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
I then configure apache with:

./configure --prefix=/usr/local/apache --add-module=src/modules/php4/mod_php
4.c

The apache autoconf configure script generates a Makefile with no errors.

When I try to build apache with 'make' everything compiles fine until the
build of mod_php4 comes up.

Make complains that it can't find headers:

===> src/modules/extra
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXP
AT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_php4.c
mod_php4.c:22:29: php_apache_http.h: No such file or directory
In file included from mod_php4.c:23:

What's wrong with my build?

Thanks for any info.

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



[PHP] PHP & Apache 2

2003-10-30 Thread Fernando Melo
Hi everyone,

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?

Fern

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


[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 (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



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 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;



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 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:

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 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:
> 
> >>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 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:
> > 
> >  > //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]. "";
> > $result2 = mysql_list_tables($db_data[0]);
> > $num_rows2 = mysql_num_rows($result2);
> > while($table_data = mysql_fetch_row($result2)) echo "--" .
> > $table_data[0]. "";
> > echo "==> $num_rows2 table(s) in " . $db_data[0] . "";
> > }
> > ?>
> >  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 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:


$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]. "";
$result2 = mysql_list_tables($db_data[0]);
$num_rows2 = mysql_num_rows($result2);
while($table_data = mysql_fetch_row($result2)) echo "--" .
$table_data[0]. "";
echo "==> $num_rows2 table(s) in " . $db_data[0] . "";
}
?>
 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:

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 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:


$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]. "";
$result2 = mysql_list_tables($db_data[0]);
$num_rows2 = mysql_num_rows($result2);
while($table_data = mysql_fetch_row($result2)) echo "--" .
$table_data[0]. "";
echo "==> $num_rows2 table(s) in " . $db_data[0] . "";
}
?>
 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
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:

";
$result2 = mysql_list_tables($db_data[0]);
$num_rows2 = mysql_num_rows($result2);
while($table_data = mysql_fetch_row($result2)) echo "--" .
$table_data[0]. "";
echo "==> $num_rows2 table(s) in " . $db_data[0] . "";
}
?>
 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



[PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Frank Tudor
I'm forwarding this from the php-windows group. (I sent it to
both with the hopes someone with information would see this).

> 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.
> 
> :)
> 
> Frank

__
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]
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



[PHP] PHP Apache (GLOBALS) question

2003-09-19 Thread Frank Tudor
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.

:)

Frank

__
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] php+apache+accelerator

2003-08-14 Thread Uros Gruber
Hello!

I installer php and apache on many computers. I also try some of
accelerators (phpaccelerato and turckmmcache). And I found some
strange bahaviour about apache server. I didn't find any solution yet.

Here is the problem.

Apache server gets core dump whenever I have any php_admin... stuff in
virtual host. If I disable accelerator there's no such problem and
also if I enable it and remove all php_admin.. tags out of virtual
hosts it also works.

I get core dump only when i use apachectl graceful, restart or http -S
or apachectl configtest. If I use stop and start there's no problem at
all. There's nothing in logs, so I'm asking you guys If anyone had
such problem.

I use FreBSD from 4.7 to 5.1 apache 1.3 with mod_ssl and PHP version
from 4.3x and 4.2x. I tested with all this versions and there's no
diference. I test many things and now I'm without any.

I can't figure out who makes problem. Maybe any module of apache,
apache itself, php, accelerator, os.

Any suggestions how to start searching the ghost.

tia

Uros

P.S. can somebody resend this to maybe apache list, because I'm not
subscribed to it.
  

-- 
lp,
 Uros  mailto:[EMAIL PROTECTED]


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



[PHP] PHP/Apache - Problem with REMOTE_USER var.

2003-06-09 Thread Pavel Janda
Hello everyone,

I have installed apache and PHP (using Windows :o(() on two computers, where
httpd.conf and php.ini seem to be same. But, on one mashine is variable
REMOTE_USER working well and on the second it is empty all the time, however
apache auth.-function works well on both of them. (The computer, whitch is
OK is using apache 1.32 and the bad comp. is using apache 2.0.X(?)... - if
this information can help anyone to find the mistake)...

Any idea, where is the problem?
Thank you very much for any help!!!

Pavel



-- 
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:




...

...



You need to move this as follows:







Html code




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 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  , 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


[PHP] php/apache timeout

2003-03-11 Thread Hilmi Hilmiev
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


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\name&age.php on line 3


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...


---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-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:
>  #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 Aaron Stephan William Boeren
> > 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.

This is a test script I used as a test (below) and got these errors. (below 
the script)

The script:


The Error:
Notice: Use of undefined constant ab - assumed 'ab' in 
c:\inetpub\wwwroot\sdd\pages\name&age.php on line 3
Hi, my name is ab and I'am 16 years old.

How do I fix this.

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

There was nothing there that would really help it. Thanks any way

> ---John Holmes...

See Ya,

Boz
PC's Rule!
Quote: "The brain can understand everything, but itself", Aaron Boeren, 2002

*N**E***R**D***
Webpage: http://au.geocities.com/bozthepcnerd
Webpage: http://zeus.as.edu.au/~aboeren (not running)
*N**E***R**D***
Some good links: 
Moodle: http://zeus.as.edu.au/moodle
Up & ReparePC's: http://www.upgradingandreparingpcs.com/
Blizzar Entertainment: http://www.blizzard.com/
Samsung: http://www.samsung.com/
Intel: http://www.intel.com/
Microsoft Corp.: http://www.microsoft.com/
AMD: http://www.amd.com/
Google: http://www.google.com/
Apple: http://www.apple.com/
MACOSX: http://www.apple.com/macosx/
PHP: http://www.php.net/
HTML: http://hotwired.webmonkey.com/
HTML: http://au.geocities.com/bozthepcnerd/pages/html.html

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




[PHP] PHP & Apache

2003-01-30 Thread Aaron Stephan William Boeren
Hi,
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

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.

See Ya,

Boz
PC's Rule!
Quote: "The brain can understand everything, but itself", Aaron Boeren, 
2002

*N**E***R**D***
Webpage: http://au.geocities.com/bozthepcnerd
Webpage: http://zeus.as.edu.au/~aboeren (not running)
*N**E***R**D***
Some good links: 
Moodle: http://zeus.as.edu.au/moodle
Up & ReparePC's: http://www.upgradingandreparingpcs.com/
Blizzar Entertainment: http://www.blizzard.com/
Samsung: http://www.samsung.com/
Intel: http://www.intel.com/
Microsoft Corp.: http://www.microsoft.com/
AMD: http://www.amd.com/
Google: http://www.google.com/
Apple: http://www.apple.com/
MACOSX: http://www.apple.com/macosx/
PHP: http://www.php.net/
HTML: http://hotwired.webmonkey.com/
HTML: http://au.geocities.com/bozthepcnerd/pages/html.html

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




  1   2   >