Re: [PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista

2009-06-27 Thread ioan...@btinternet.com
Solved: In Windows 'Explorer' in Vista, set User permissions for the 
htdocs - go to htdocs folder within the Apache folders, right click, 
Properties, Security, Edit, select your name as User, allow Full 
Control, Modify etc.  Now open the files you created like test.php or 
index1.html and save them again.  Then they will be accessible like 
http://localhost/test.php etc.  Whereas without this they will be 'file 
not found'.


Even if there is only one User in Windows and it is also the 
Administrator, you need to be recognised as Administrator for the action 
being done, normal log on to Windows will be as User only.


I got to the above solution when I noticed the 
http://localhost/index.html showed Apache working, in the browser using 
the index.html that comes with the installation, but index1.html saved 
in the same folder did not appear in Windows Explorer and also was 'page 
not found' in the browser, even though it saved OK and was visible and 
loadable in the html editor. 

php now also works with Apache, I think I was missing from httpd.conf 
within IfModule mime_module /IfModule:


   AddHandler application/x-httpd-php .php
   AddHandler application/x-httpd-php-source .phps


John

ioan...@btinternet.com wrote:
I still have the strange thing of saving a file in htdocs within the 
Apache folders (on Vista, you need to right click on Notepad from 
Start and Run as Administrator), but then not seeing it in Windows 
Explorer - must be something to do with UAC.  But main problem is 
getting php to work with Apache.  Please let me know if there is 
anywhere else I should look.  I took the time to read the php 
installation notes carefully and the Apache notes (which seemed to be 
mostly about meeting someone in a computer fair to check their 
fingerprint, I joke), but to no avail.


Does anyone have a working, full, step-by-step set of instructions for 
Vista, PHP 5.2.9 Apache 2.2.11 ?


Thanks,

John


Original post [ed]

I have a working Apache 2.2.11 server and php 5.2.9 installed.

APACHE CONFIGURATION

Files are in: C:/Program Files/Apache Software Foundation/Apache2.2/
 
As per installation instructions, Apache httpd.conf is amended to add 
at the end of the LoadModule lines (though not between any tags):


   LoadModule php5_module C:/PHP/php5apache2_2.dll

   PHPIniDir C:/PHP

And at the end of the file:

   AddModule mod_php5.c

(Would this be .conf, not .c?). , (per php notes 'Installing as an 
Apache module').  On clicking Start Apache http server, this gives 
Invalid command 'AddModule' perhaps misspelled or defined by a module 
not included in server configuration.  The PHP Installation guide 
says to add this at the end of the AddModule section.  There is no 
AddModule in the default http.conf of Apache 2.2.11.  So for now have 
commented it out.


Between IfModule mime_module and /IfModule, I have added:

   AddType application/x-httpd-php .php


PHP CONFIGURATION

The php.ini file is in C:/PHP.

php.ini has been amended as follows:
doc_root = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs

WINDOWS CONFIGURATION

I have added ;C:/PHP to the end of the string for Environment Variables.

I have re-booted and re-started.  I am testing this file:

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php

which has
?
print(test);
?

and this outputs as code rather than as 'test' or it does not output 
at all.


When I start the Apache http server, I get:

httpd.exe: Could not reliably determine the server's fully qualified 
domain name

, using 10.0.0.4 for ServerName
(OS 10048)Only one usage of each socket address (protocol/network 
address/port)

is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

My ISP has a dynamic IP address system, what do I use for ServerName?  
Do I need a static address or registered web site name to run on home 
computer?


Apache httpd.conf has:
# ServerName gives the name and port that the server uses to identify 
itself.
# This can often be determined automatically, but we recommend you 
specify

# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP 
address here.

#
#ServerName

Any idea what might be wrong with the php code showing?

Thanks,

John






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



Re: [PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista

2009-06-27 Thread ioan...@btinternet.com

...though phpinfo seems to work fine without this handler.

ioan...@btinternet.com wrote:
php now also works with Apache, I think I was missing from httpd.conf 
within IfModule mime_module /IfModule:


   AddHandler application/x-httpd-php .php
   AddHandler application/x-httpd-php-source .phps


John




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



[PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista

2009-06-26 Thread ioan...@btinternet.com
I have a working apache 2.2.11 server and php 5.2.9 installed. 


APACHE CONFIGURATION
Files are in: C:/Program Files/Apache Software Foundation/Apache2.2/
Apache https.conf is amended to add at the end of the LoadModule lines 
(not between any tags):


   LoadModule php5_module C:/PHP/php5apache2_2.dll

   PHPIniDir C:/PHP

at the end of the file, though i cannot find any section called 
AddModule per the php installation notes ('Installing as an Apache module'):

   AddModule mod_php5.c
On clicking Start Apache http server, this gives Invalid command 
'AddModule' perhaps misspelled or defined by a module not included in 
server configuration.  The PHP Installation guide says to add this at 
the end of the AddModule section.  There is no AddModule in the default 
http.conf of Apache 2.2.11.  So for now have commented it out.


and between IfModule mime_module and /IfModule:

   AddType application/x-httpd-php .php

PHP CONFIGURATION
The php.ini file is in C:/PHP. 


php.ini:
doc_root = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs

WINDOWS CONFIGURATION

I have added ;C:/PHP to the end of the string for Environment Variables.

I have re-booted and re-started.  I am testing this file:

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php

which has
?
print(test);
?

and this outputs as code rather thna as 'test'.

When I start the Apache http server, I get:

httpd.exe: Could not reliably determine the server's fully qualified 
domain name

, using 10.0.0.4 for ServerName
(OS 10048)Only one usage of each socket address (protocol/network 
address/port)

is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

My ISP has a dynamic IP address system, what do I use for ServerName?  
Do I need a static address or registered web site name to run on home 
computer?


Apache httpd.conf has:
# ServerName gives the name and port that the server uses to identify 
itself.

# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address 
here.

#
#ServerName 


Any idea what might be wrong with the php code showing?

Thanks,

John




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



Re: [PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista

2009-06-26 Thread ioan...@btinternet.com

I meant httpd.conf.

And what is it about Vista that when in Notepad and you save a file, say 
test.php in directory htdocs, it shows test.php in the folder, but when 
you go to Windows Explorer there it is and it is gone?  Nor does it load 
as http://localhost/test.php although http://localhost/ loads as the 
index.html file which is in the same folder?


Pathetic notes on installation of Apache.

J.

ioan...@btinternet.com wrote:

I have a working apache 2.2.11 server and php 5.2.9 installed.
APACHE CONFIGURATION
Files are in: C:/Program Files/Apache Software Foundation/Apache2.2/
Apache https.conf is amended to add at the end of the LoadModule lines 
(not between any tags):


   LoadModule php5_module C:/PHP/php5apache2_2.dll

   PHPIniDir C:/PHP

at the end of the file, though i cannot find any section called 
AddModule per the php installation notes ('Installing as an Apache 
module'):

   AddModule mod_php5.c
On clicking Start Apache http server, this gives Invalid command 
'AddModule' perhaps misspelled or defined by a module not included in 
server configuration.  The PHP Installation guide says to add this at 
the end of the AddModule section.  There is no AddModule in the 
default http.conf of Apache 2.2.11.  So for now have commented it out.


and between IfModule mime_module and /IfModule:

   AddType application/x-httpd-php .php

PHP CONFIGURATION
The php.ini file is in C:/PHP.
php.ini:
doc_root = C:\Program Files\Apache Software Foundation\Apache2.2\htdocs

WINDOWS CONFIGURATION

I have added ;C:/PHP to the end of the string for Environment Variables.

I have re-booted and re-started.  I am testing this file:

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php

which has
?
print(test);
?

and this outputs as code rather thna as 'test'.

When I start the Apache http server, I get:

httpd.exe: Could not reliably determine the server's fully qualified 
domain name

, using 10.0.0.4 for ServerName
(OS 10048)Only one usage of each socket address (protocol/network 
address/port)

is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

My ISP has a dynamic IP address system, what do I use for ServerName?  
Do I need a static address or registered web site name to run on home 
computer?


Apache httpd.conf has:
# ServerName gives the name and port that the server uses to identify 
itself.
# This can often be determined automatically, but we recommend you 
specify

# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP 
address here.

#
#ServerName
Any idea what might be wrong with the php code showing?

Thanks,

John






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



[PHP] PHP and Apache configuration

2009-01-19 Thread R B
Hello,

I need that every time someone access one image file in my server, then
redirect to a php file.

I make this well with:

Redirect 301 imagefile.jpg scriptfile.php

But i need that the file scriptfile.php can only be accessed by this
redirect command.

If someone try to access directly from the url
http://www.mydomain.com/xyz/scriptfile.php, i want to send an error access.

I tried with:

Files scriptfile.php
Order allow,deny
Deny from all
/Files
But with this configuration, the redirect command cant access the
scriptfile.php

Do you have the solution for this?

thanks.


Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Kyle Terry
On Mon, Jan 19, 2009 at 11:28 AM, R B rbp...@gmail.com wrote:

 Hello,

 I need that every time someone access one image file in my server, then
 redirect to a php file.

 I make this well with:

 Redirect 301 imagefile.jpg scriptfile.php

 But i need that the file scriptfile.php can only be accessed by this
 redirect command.

 If someone try to access directly from the url
 http://www.mydomain.com/xyz/scriptfile.php, i want to send an error
 access.

 I tried with:

 Files scriptfile.php
 Order allow,deny
 Deny from all
 /Files
 But with this configuration, the redirect command cant access the
 scriptfile.php

 Do you have the solution for this?

 thanks.


You could use sessions. Start a session and set a redirect true variable of
some sort.


?php
session_start();

//image script

$_SESSION['redirect'] = true;

//image redirect here.
?

?php
//scriptfile.php
if($_SESSION['redirect']){

//do your stuff.
unset($_SESSION['redirect']);

} else {

echo 'error';

}
?

Get the idea?

-- 
Kyle Terry | www.kyleterry.com


Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Richard Heyes
 ...

This may be of some help. It's from the Apache website and only allows
access if the Referer header is sent by the browser and is
www.yourdomain.com, ie. Direct access is not permitted:

###
SetEnvIf Referer ^http://www.yourdomain.com; local_referal

Order Deny,Allow
Deny from all
Allow from env=local_referal
###

-- 
Richard Heyes

HTML5 Graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated January 17th)

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



Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Kyle Terry
On Mon, Jan 19, 2009 at 11:38 AM, Richard Heyes rich...@php.net wrote:

  ...

 This may be of some help. It's from the Apache website and only allows
 access if the Referer header is sent by the browser and is
 www.yourdomain.com, ie. Direct access is not permitted:

 ###
 SetEnvIf Referer ^http://www.yourdomain.com; local_referal

 Order Deny,Allow
 Deny from all
 Allow from env=local_referal
 ###

 --
 Richard Heyes

 HTML5 Graphing for Firefox, Chrome, Opera and Safari:
 http://www.rgraph.org (Updated January 17th)

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

 Richard's solution is much better.


-- 
Kyle Terry | www.kyleterry.com


Re: [PHP] PHP and Apache configuration

2009-01-19 Thread ceo

I doubt that you can use re-direct and do what you want, since a re-direct does 
just that:

re-direct the USER to the URL.



What you *could* do is get rid of the re-direct and just 
include('scriptfile.php'); by using ForceType on imagefile.jpg to be 
application/x-httpd-php



Then scriptfile.php can be outside the webtree where it is inaccessible by 
definition.



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



Re: [PHP] PHP and Apache configuration

2009-01-19 Thread R B
I like this apache solution, but if i put

SetEnvIf Referer ^http://www.yourdomain.com; local_referal

Then i can access the file putting this path in the URL:

 http://www.yourdomain.com/xyz/scriptfile.php
And i don´t want the script to be access by the url. That is the main
problem.

Thanks


On Mon, Jan 19, 2009 at 1:38 PM, Richard Heyes rich...@php.net wrote:

  ...

 This may be of some help. It's from the Apache website and only allows
 access if the Referer header is sent by the browser and is
 www.yourdomain.com, ie. Direct access is not permitted:

 ###
 SetEnvIf Referer ^http://www.yourdomain.com; local_referal

 Order Deny,Allow
 Deny from all
 Allow from env=local_referal
 ###

 --
 Richard Heyes

 HTML5 Graphing for Firefox, Chrome, Opera and Safari:
 http://www.rgraph.org (Updated January 17th)



Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Török Alpár
2009/1/19 R B rbp...@gmail.com

 I like this apache solution, but if i put

 SetEnvIf Referer ^http://www.yourdomain.com; local_referal

 Then i can access the file putting this path in the URL:

  http://www.yourdomain.com/xyz/scriptfile.php
 And i don´t want the script to be access by the url. That is the main
 problem.

No, you can't , not if you do it properly. imagine that you have a folder
like /srv/www/htdocs that is the document root of you web server, and you
have /srv/www/includes, just annother file. You can have al your protected
files ther, and include them from files that are in the document root of
your web server, and are public. If you don't want this sepparation, you can
use a .htaccess file in the folder, and deny the folder from all. (i recall
hearing/reding that this actually works even if allow overrule is off ,
didn't actually tryed it, but i imagine is more of a hack )


 Thanks


 On Mon, Jan 19, 2009 at 1:38 PM, Richard Heyes rich...@php.net wrote:

   ...
 
  This may be of some help. It's from the Apache website and only allows
  access if the Referer header is sent by the browser and is
  www.yourdomain.com, ie. Direct access is not permitted:
 
  ###
  SetEnvIf Referer ^http://www.yourdomain.com; local_referal
 
  Order Deny,Allow
  Deny from all
  Allow from env=local_referal
  ###
 
  --
  Richard Heyes
 
  HTML5 Graphing for Firefox, Chrome, Opera and Safari:
  http://www.rgraph.org (Updated January 17th)
 




-- 
Torok, Alpar Istvan


Re: [PHP] PHP and Apache

2008-06-24 Thread David Robley
R B wrote:

 The people that will install this system, don´t have programming
 knowledge. They have a website, buy don´t have knowledge of
 configurations.
 
 If i add all the lines, it don´t works, unless the last line is the
 correct for that particular server.
 
 
 
 


 Why not just read the manual and add the appropriate line for your
 version of PHP ?

 Makes the most sense.

 Or add all the lines.

 Pretty much an Apache list question though.

 Wolf

Like the man said - but for a little more help, look at
http://httpd.apache.org/docs/2.2/mod/core.html#ifmodule



Cheers
-- 
David Robley

Outlaw junk mail, and save the trees!
Today is Setting Orange, the 29th day of Confusion in the YOLD 3174. 


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



[PHP] PHP and Apache

2008-06-23 Thread R B
Hello,

I´m developing a PHP system that needs one of these lines in the .htaccess,
depending of the server configuration:

AddHandler application/x-httpd-php .xyz
or

AddHandler application/x-httpd-php4 .xyz

or

AddHandler application/x-httpd-php5 .xyz

How can i detect on the fly which line i have to use?


Re: [PHP] PHP and Apache

2008-06-23 Thread Wolf
 R B [EMAIL PROTECTED] wrote: 
 Hello,
 
 I´m developing a PHP system that needs one of these lines in the .htaccess,
 depending of the server configuration:
 
 AddHandler application/x-httpd-php .xyz
 or
 
 AddHandler application/x-httpd-php4 .xyz
 
 or
 
 AddHandler application/x-httpd-php5 .xyz
 
 How can i detect on the fly which line i have to use?

Why not just read the manual and add the appropriate line for your version of 
PHP ?

Makes the most sense.

Or add all the lines.

Pretty much an Apache list question though.

Wolf

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



Re: [PHP] PHP and Apache

2008-06-23 Thread R B
The people that will install this system, don´t have programming knowledge.
They have a website, buy don´t have knowledge of configurations.

If i add all the lines, it don´t works, unless the last line is the correct
for that particular server.






 Why not just read the manual and add the appropriate line for your version
 of PHP ?

 Makes the most sense.

 Or add all the lines.

 Pretty much an Apache list question though.

 Wolf



Re: [PHP] [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentationfault (11)

2006-12-01 Thread Jan Schröter

Chris wrote:


If nobody provides information then try the -internals list, they'll 
probably be able to help a bit more.




Thanks a lot! I've done so, because it's very urgent.

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



[PHP] [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentation fault (11)

2006-11-30 Thread Jan Schröter

Hi all! I'm having trouble with my server(s) for some weeks now and did not find
any solution for now. My System is Opensuse 10.1 (32 bit) with Apache 2.2.3 and
PHP 4.4.5-dev as apache module (latest stable CVS, but wasn't the solution).

Im having abrupt segmentation faults in my Apache errorlog. Most frequently the
problem seems to appear while accessing the start page of an actual Joomla
installation, but i've had the error with an Worpress too. So it cannot be
isolated to some php Scripts. Sadly i am not able to reproduce this error - when
it appears it will not go until an apache restart, but then everything works
fine for some time (maybe hours or even days).

Here is a gdb backtrace of the request which died with a segmentation fault.
Hopefully someon can help me with this. If you need any further details, tell
me, and please also tell me how to obtain this information ;-).

#0  0xb7fa91a4 in do_lookup_x () from /lib/ld-linux.so.2
#1  0xb7fa9587 in _dl_lookup_symbol_x () from /lib/ld-linux.so.2
#2  0xb7fad24d in _dl_fixup () from /lib/ld-linux.so.2
#3  0xb7fb2630 in _dl_runtime_resolve () from /lib/ld-linux.so.2
#4  0xb70f6029 in internal_getent () from /lib/libnss_files.so.2
#5  0xb70f6332 in _nss_files_gethostbyaddr_r () from /lib/libnss_files.so.2
#6  0xb7ddec22 in gethostbyaddr_r@@GLIBC_2.1.2 () from /lib/libc.so.6
#7  0xb7ddea32 in gethostbyaddr () from /lib/libc.so.6
#8  0xb79157fe in zif_gethostbyaddr (ht=1, return_value=0x8741224, this_ptr=0x0,
return_value_used=1)
at /usr/src/packages/BUILD/php4-4.4.4/ext/standard/dns.c:125
#9  0xb79b86ab in execute (op_array=0x856ff84) at
/usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1675
#10 0xb79b42c7 in execute (op_array=0x856b3cc) at
/usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1719
#11 0xb79a221e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at
/usr/src/packages/BUILD/php4-4.4.4/Zend/zend.
#12 0xb7975215 in php_execute_script (primary_file=0xbfaee9d4) at
/usr/src/packages/BUILD/php4-4.4.4/main/main.c:1752
#13 0xb79bc600 in php_handler (r=0x8596e68) at
/usr/src/packages/BUILD/php4-4.4.4/sapi/apache2handler/sapi_apache2.c:581
#14 0x080796f9 in ap_run_handler ()
#15 0x08079e43 in ap_invoke_handler ()
#16 0x0809c1e0 in ap_process_request ()
#17 0x08098d62 in ap_process_http_connection ()
#18 0x08081b2b in ap_run_process_connection ()
#19 0x08081f38 in ap_process_connection ()
#20 0x080be32f in child_main ()
#21 0x080be511 in make_child ()
#22 0x080be762 in perform_idle_server_maintenance ()
#23 0x080bec8c in ap_mpm_run ()
#24 0x08062f06 in main ()

kind regards
Jan

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



Re: [PHP] [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentation fault (11)

2006-11-30 Thread Chris

Jan Schröter wrote:
Hi all! I'm having trouble with my server(s) for some weeks now and did 
not find
any solution for now. My System is Opensuse 10.1 (32 bit) with Apache 
2.2.3 and
PHP 4.4.5-dev as apache module (latest stable CVS, but wasn't the 
solution).


Im having abrupt segmentation faults in my Apache errorlog. Most 
frequently the

problem seems to appear while accessing the start page of an actual Joomla
installation, but i've had the error with an Worpress too. So it cannot be
isolated to some php Scripts. Sadly i am not able to reproduce this 
error - when
it appears it will not go until an apache restart, but then everything 
works

fine for some time (maybe hours or even days).

Here is a gdb backtrace of the request which died with a segmentation 
fault.
Hopefully someon can help me with this. If you need any further details, 
tell

me, and please also tell me how to obtain this information ;-).


If nobody provides information then try the -internals list, they'll 
probably be able to help a bit more.


--
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 5 + Apache 2 on Windows: ms sql extension problem

2006-04-26 Thread Laszlo Nagy


Hello All,

I had a problem with a Win2003 server, IIS6 and PHP 5.1.2. The MS SQL 
extension was not working. I did not get an answer, but some people 
suggested me to use Apache. Now I installed Win 2000 server, Apache 
2.0.55 and PHP 5.1.2. The same computer has Microsoft SQL Server 
installed. I have only these lines in my php.ini file:


extension_dir=C:\PHP\ext
extension=php_mssql.dll

I checked phpinfo() and it tells that my php.ini file is at the correct 
location (C:\winnt\php.ini.) I can load other extensions. Another 
example: if I add php_curl.dll then I get a libsleay32.dll not found 
error message when I try to restart apache. But I do not get any error 
message about the php_mssql.dll. It is just not loaded. I'm sure that 
all the ms sql client libs are installed, because this is the same 
machine where the ms sql server is running. What can be the problem? 
Please help me. My bosses are killing me because I could not solve this 
problem for weeks. :-(


Thanks,

 Laszlo

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



Re: [PHP] PHP 5 + Apache 2 on Windows: ms sql extension problem

2006-04-26 Thread Wolf
This setup nagged me for a bit too, until I found the solution...

The DLL files in C:\php need to be put into system32 directory.  Once
that happens they work like a charm, but until then, you are plagued
with issues.  I have my path set for C:\php and everything as well, but
it was not until copying the DLLs into the C:\Windows\System32 that
everything started working.  Thankfully Google held the answer.

Wolf

 I checked phpinfo() and it tells that my php.ini file is at the correct
 location (C:\winnt\php.ini.) I can load other extensions. Another
 example: if I add php_curl.dll then I get a libsleay32.dll not found
 error message when I try to restart apache. But I do not get any error
 message about the php_mssql.dll. It is just not loaded. I'm sure that
 all the ms sql client libs are installed, because this is the same
 machine where the ms sql server is running. What can be the problem?

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



RE: [PHP] PHP 5 + Apache 2 on Windows: ms sql extension problem

2006-04-26 Thread Ing. Edwin Cruz
Try changing your direcive extension_dir:
extension_dir=C:/PHP/ext  instead of extension_dir=C:\PHP\ext




-Mensaje original-
De: Laszlo Nagy [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 26 de Abril de 2006 04:01 a.m.
Para: php-general@lists.php.net
Asunto: [PHP] PHP 5 + Apache 2 on Windows: ms sql extension problem



 Hello All,

I had a problem with a Win2003 server, IIS6 and PHP 5.1.2. The MS SQL 
extension was not working. I did not get an answer, but some people 
suggested me to use Apache. Now I installed Win 2000 server, Apache 
2.0.55 and PHP 5.1.2. The same computer has Microsoft SQL Server 
installed. I have only these lines in my php.ini file:

extension_dir=C:\PHP\ext
extension=php_mssql.dll

I checked phpinfo() and it tells that my php.ini file is at the correct 
location (C:\winnt\php.ini.) I can load other extensions. Another 
example: if I add php_curl.dll then I get a libsleay32.dll not found 
error message when I try to restart apache. But I do not get any error 
message about the php_mssql.dll. It is just not loaded. I'm sure that 
all the ms sql client libs are installed, because this is the same 
machine where the ms sql server is running. What can be the problem? 
Please help me. My bosses are killing me because I could not solve this 
problem for weeks. :-(

Thanks,

  Laszlo

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

2006-01-16 Thread Erik Saline
Where do I find fc5?


Erik

 On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
 Using Fedora Core 4 using the already Apache and Mysql.  I tried using the
 already installed PHP but mysql support was not setup or shown when using
 phpinfo().
 
 I recompiled PHP with the following.
 
 './configure' '--with-mysqli=/usr/bin/mysql_config'
 '--with-mysql=/usr/bin/mysql_config' '--enable-sockets'
 '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx'
 
 First off, --with-mysql doesn't expect a mysql_config as an option
 but the $prefix directory were mysql was installed.
 
 
 Now all my PHP scripts do not work here is the error I find in the Apache
 Error logs.  
 
 [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format error:
 exec of '/var/www/cgi-bin/create_user.php' failed,
 [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of
 script headers: create_user.php,
 
 
 This is a sign that your in rpm hell.
 
 I can use php -i phpinfo.html and see that PHP works and that mysql is now
 loaded.
 I added this to my httpd.conf
 
 but what does assuming your 'whatis database is upto date':
 
 'locate php | grep bin' give?
 'locate libphp' give?
 'locate php' give?
 
 And from those locates:
 ls -laF filenameoflocate
 
 
 My Guess:
 you will have a:
 /usr/bin/php
 /usr/local/bin/php
 /path/to/apache/modules/libphp(45).php
 
 Once that is figured out, what about the extenstions? is there any
 thing in your php.ini that specifies an extension_dir and/or
 extension=something.so?
 
 Last but should be first, check logs, turn on php.ini:error_log to
 syslog, turn on display_startup_errors, check /var/log/messages, if
 that doesnt work make sure php.ini:error_reporting  is E_ALL. If
 that doesn't work.. are you sure you are editing the correct
 php.ini for the environment you are using?
 
 
 AddType application/x-httpd-php .php
 
 This is for using php as a moudule, the error you are getting is
 based on php ran as a cgi.
 
 
 # which php at the command line returns
  /usr/local/bin/php
 
 try: /usr/bin/php -i
 
 
 Do I need to add something in the httpd.d to direct it to /usr/local/bin/php
 instead of the intial defalt where
 # which php returned
 /usr/bin/php
 
 Ah, yeah, well, the thing you need to do is:
 1) either get rid of the system's installation of php and do the
installation by hand. Getting rid of php via the systems
installation process. Be forwarned, do this with care.
 
 2) use fc5
 
 
 Curt.

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



Re: [PHP] PHP and Apache

2006-01-16 Thread Rodolfo Andrade
www.google.com

or

http://fedoraproject.org/wiki/

But it's in test yet.

Best regards
Rodolfo Andrade
- Original Message - 
From: Erik Saline
To: Curt Zirzow ; php-general@lists.php.net
Sent: Monday, January 16, 2006 3:06 PM
Subject: Re: [PHP] PHP and Apache


Where do I find fc5?


Erik

 On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
 Using Fedora Core 4 using the already Apache and Mysql.  I tried using
the
 already installed PHP but mysql support was not setup or shown when using
 phpinfo().

 I recompiled PHP with the following.

 './configure' '--with-mysqli=/usr/bin/mysql_config'
 '--with-mysql=/usr/bin/mysql_config' '--enable-sockets'
 '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx'

 First off, --with-mysql doesn't expect a mysql_config as an option
 but the $prefix directory were mysql was installed.


 Now all my PHP scripts do not work here is the error I find in the Apache
 Error logs.

 [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format
error:
 exec of '/var/www/cgi-bin/create_user.php' failed,
 [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of
 script headers: create_user.php,


 This is a sign that your in rpm hell.

 I can use php -i phpinfo.html and see that PHP works and that mysql is
now
 loaded.
 I added this to my httpd.conf

 but what does assuming your 'whatis database is upto date':

 'locate php | grep bin' give?
 'locate libphp' give?
 'locate php' give?

 And from those locates:
 ls -laF filenameoflocate


 My Guess:
 you will have a:
 /usr/bin/php
 /usr/local/bin/php
 /path/to/apache/modules/libphp(45).php

 Once that is figured out, what about the extenstions? is there any
 thing in your php.ini that specifies an extension_dir and/or
 extension=something.so?

 Last but should be first, check logs, turn on php.ini:error_log to
 syslog, turn on display_startup_errors, check /var/log/messages, if
 that doesnt work make sure php.ini:error_reporting  is E_ALL. If
 that doesn't work.. are you sure you are editing the correct
 php.ini for the environment you are using?


 AddType application/x-httpd-php .php

 This is for using php as a moudule, the error you are getting is
 based on php ran as a cgi.


 # which php at the command line returns
  /usr/local/bin/php

 try: /usr/bin/php -i


 Do I need to add something in the httpd.d to direct it to
/usr/local/bin/php
 instead of the intial defalt where
 # which php returned
 /usr/bin/php

 Ah, yeah, well, the thing you need to do is:
 1) either get rid of the system's installation of php and do the
installation by hand. Getting rid of php via the systems
installation process. Be forwarned, do this with care.

 2) use fc5


 Curt.

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

2006-01-16 Thread Erik Saline
Thanks.  I need to hone my google skills.  I spent hours looking.

Never thought to try the wiki pages.


Erik

 www.google.com
 
 or
 
 http://fedoraproject.org/wiki/
 
 But it's in test yet.
 
 Best regards
 Rodolfo Andrade
 - Original Message -
 From: Erik Saline
 To: Curt Zirzow ; php-general@lists.php.net
 Sent: Monday, January 16, 2006 3:06 PM
 Subject: Re: [PHP] PHP and Apache
 
 
 Where do I find fc5?
 
 
 Erik
 
 On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
 Using Fedora Core 4 using the already Apache and Mysql.  I tried using
 the
 already installed PHP but mysql support was not setup or shown when using
 phpinfo().
 
 I recompiled PHP with the following.
 
 './configure' '--with-mysqli=/usr/bin/mysql_config'
 '--with-mysql=/usr/bin/mysql_config' '--enable-sockets'
 '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx'
 
 First off, --with-mysql doesn't expect a mysql_config as an option
 but the $prefix directory were mysql was installed.
 
 
 Now all my PHP scripts do not work here is the error I find in the Apache
 Error logs.
 
 [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format
 error:
 exec of '/var/www/cgi-bin/create_user.php' failed,
 [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of
 script headers: create_user.php,
 
 
 This is a sign that your in rpm hell.
 
 I can use php -i phpinfo.html and see that PHP works and that mysql is
 now
 loaded.
 I added this to my httpd.conf
 
 but what does assuming your 'whatis database is upto date':
 
 'locate php | grep bin' give?
 'locate libphp' give?
 'locate php' give?
 
 And from those locates:
 ls -laF filenameoflocate
 
 
 My Guess:
 you will have a:
 /usr/bin/php
 /usr/local/bin/php
 /path/to/apache/modules/libphp(45).php
 
 Once that is figured out, what about the extenstions? is there any
 thing in your php.ini that specifies an extension_dir and/or
 extension=something.so?
 
 Last but should be first, check logs, turn on php.ini:error_log to
 syslog, turn on display_startup_errors, check /var/log/messages, if
 that doesnt work make sure php.ini:error_reporting  is E_ALL. If
 that doesn't work.. are you sure you are editing the correct
 php.ini for the environment you are using?
 
 
 AddType application/x-httpd-php .php
 
 This is for using php as a moudule, the error you are getting is
 based on php ran as a cgi.
 
 
 # which php at the command line returns
  /usr/local/bin/php
 
 try: /usr/bin/php -i
 
 
 Do I need to add something in the httpd.d to direct it to
 /usr/local/bin/php
 instead of the intial defalt where
 # which php returned
 /usr/bin/php
 
 Ah, yeah, well, the thing you need to do is:
 1) either get rid of the system's installation of php and do the
installation by hand. Getting rid of php via the systems
installation process. Be forwarned, do this with care.
 
 2) use fc5
 
 
 Curt.

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



[PHP] PHP and Apache

2006-01-15 Thread Erik Saline
Using Fedora Core 4 using the already Apache and Mysql.  I tried using the 
already installed PHP but mysql support was not setup or shown when using 
phpinfo().

I recompiled PHP with the following.

'./configure' '--with-mysqli=/usr/bin/mysql_config' 
'--with-mysql=/usr/bin/mysql_config' '--enable-sockets' '--with-jpeg-dir=/usr' 
'--enable-exif' '--with-apx' 

Now all my PHP scripts do not work here is the error I find in the Apache Error 
logs.  

[Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format error: 
exec of '/var/www/cgi-bin/create_user.php' failed,
[Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of script 
headers: create_user.php,

I can use php -i phpinfo.html and see that PHP works and that mysql is now 
loaded.
I added this to my httpd.conf

AddType application/x-httpd-php .php


# which php at the command line returns
 /usr/local/bin/php 

Do I need to add something in the httpd.d to direct it to /usr/local/bin/php 
instead of the intial defalt where 
# which php returned 
/usr/bin/php


Erik



Re: [PHP] PHP and Apache

2006-01-15 Thread Curt Zirzow
On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
 Using Fedora Core 4 using the already Apache and Mysql.  I tried using the 
 already installed PHP but mysql support was not setup or shown when using 
 phpinfo().
 
 I recompiled PHP with the following.
 
 './configure' '--with-mysqli=/usr/bin/mysql_config' 
 '--with-mysql=/usr/bin/mysql_config' '--enable-sockets' 
 '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx' 

First off, --with-mysql doesn't expect a mysql_config as an option
but the $prefix directory were mysql was installed.

 
 Now all my PHP scripts do not work here is the error I find in the Apache 
 Error logs.  
 
 [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format error: 
 exec of '/var/www/cgi-bin/create_user.php' failed,
 [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of 
 script headers: create_user.php,
 

This is a sign that your in rpm hell.

 I can use php -i phpinfo.html and see that PHP works and that mysql is now 
 loaded.
 I added this to my httpd.conf

but what does assuming your 'whatis database is upto date':

 'locate php | grep bin' give?
 'locate libphp' give? 
 'locate php' give? 

And from those locates:
  ls -laF filenameoflocate


My Guess:
 you will have a:
 /usr/bin/php
 /usr/local/bin/php
 /path/to/apache/modules/libphp(45).php

Once that is figured out, what about the extenstions? is there any
thing in your php.ini that specifies an extension_dir and/or
extension=something.so?

Last but should be first, check logs, turn on php.ini:error_log to
syslog, turn on display_startup_errors, check /var/log/messages, if
that doesnt work make sure php.ini:error_reporting  is E_ALL. If
that doesn't work.. are you sure you are editing the correct
php.ini for the environment you are using?

 
 AddType application/x-httpd-php .php

This is for using php as a moudule, the error you are getting is
based on php ran as a cgi.

 
 # which php at the command line returns
  /usr/local/bin/php 

  try: /usr/bin/php -i

 
 Do I need to add something in the httpd.d to direct it to /usr/local/bin/php 
 instead of the intial defalt where 
 # which php returned 
 /usr/bin/php

Ah, yeah, well, the thing you need to do is:
  1) either get rid of the system's installation of php and do the
 installation by hand. Getting rid of php via the systems
 installation process. Be forwarned, do this with care.

  2) use fc5


Curt.
-- 
cat .signature: No such file or directory

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



[PHP] PHP and Apache 2.2.0

2005-12-16 Thread Kevin McBride

Hello,

I hope I am not repeating something that was discussed on this list before.

I am curious to know if there are plans to make a module for Apache
2.2.0.  I couldn't find it in the anonymous CVS, but if it's already
there, can someone point to me where it is?

- KJM

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



[PHP] PHP mysql Apache install on FC3

2005-08-04 Thread robert
Hello,

I am not quite sure if this is the correct mailing list to post this
question, but here I go anyway.  I have a vanilla Fedora Core 3
installation, and I am trying to run a php script through a local
website that has calls into a MySQL database.  I can run this script
at the command line using the php PHPScript.php command, and it runs
perfectly.  When I run it through the firefox web browser, I get an
error that says:

[client 127.0.0.1] PHP Warning:  mysql_pconnect(): Can't connect to local
MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in
/var/www/html/index.php on line 4

I have checked the socket, it exists.  Again, if I run this script just
using php, it works just fine.  However, when running it through Apache or
httpd it does not.  What am I doing incorrectly?

Thank you for your time,
Robert

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



Re: [PHP] PHP mysql Apache install on FC3

2005-08-04 Thread Vidyut Luther
Look into the SELinux settings for your system, if you have that  
enabled, by default PHP is not allowed to get that file via the user  
nobody.

If you look into /var/log/messages you'll see some selinux messages.

You either need to disable selinux, or set your policy...http:// 
fedora.redhat.com/docs/selinux-faq-fc3/


that url should help.


On Aug 4, 2005, at 9:26 AM, [EMAIL PROTECTED] wrote:


Hello,

I am not quite sure if this is the correct mailing list to post  
this

question, but here I go anyway.  I have a vanilla Fedora Core 3
installation, and I am trying to run a php script through a local
website that has calls into a MySQL database.  I can run this script
at the command line using the php PHPScript.php command, and it runs
perfectly.  When I run it through the firefox web browser, I get an
error that says:

[client 127.0.0.1] PHP Warning:  mysql_pconnect(): Can't connect to  
local

MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in
/var/www/html/index.php on line 4

I have checked the socket, it exists.  Again, if I run this script  
just
using php, it works just fine.  However, when running it through  
Apache or

httpd it does not.  What am I doing incorrectly?

Thank you for your time,
Robert

--
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 causes Apache segmentation fault?

2005-03-14 Thread Burhan Khalid
John Swartzentruber wrote:
On 3/13/2005 3:55 PM John Swartzentruber wrote:
On 3/11/2005 11:57 AM John Swartzentruber wrote:
I am running Fedora core3 with Apache 2.0.52 (from default RPMs), 
MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from 
source.

I'm going through the PHP manual and trying some of the mysqli 
examples. The last one I tried didn't work. The problem appears to 
be this line:

$row = $result-fetch_array(MYSQLI_ASSOC);
Using MYSQLI_BOTH also fails, and MYSQLI_NUM works.
This is what is in my httpd error log:
[Thu Mar 10 17:07:06 2005] [notice] child pid 29903 exit signal 
Segmentation fault (11)

I've reported this as a PHP bug and then continued to do some more 
research. What I'm finding is very odd.

When I run this script under apache, it appears that there is a clash 
between the structures used in a MySQL library and what is in the 
mysql.h header file. When I do a phpinfo(), it says that my mysqli 
client API version is 3.23.58. That seems wrong. I have MySQL 
4.1.10a installed. This version difference *could* explain the 
difference, but I have no idea why it would be using the old version. 
The libmysql libraries and programs are all dated March 9, 2005 or 
later. The --with-mysqli configure parameter points to a mysql_config 
program with that date. Why would it think it was using an older API?

Another very weird thing is that when I run the script directly from 
the command line, the structure looks good and has all of the correct 
(i.e., expected) values. What is different about running PHP from the 
command line and from Apache that would cause it to use different 
MySQL structures?

Sorry to reply to myself, but here's the succinct question:
When I run phpinfo(), it says my mysqli API client version is 3.23.58. 
When I run php -i from the command line it says it is 4.1.10a. The 
latter is correct. What would cause the discrepancy? The server has been 
stopped and started many times, and PHP rebuilt a few times, so it isn't 
a browser buffer issue.
For the love of all that is holy, please don't send repeat messages to 
the list!!

Are you sure you built both the client and the server module versions? 
It seems only your cli build is using the new API.

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


Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread John Swartzentruber
On 3/14/2005 6:03 AM Burhan Khalid wrote:
John Swartzentruber wrote:
When I run phpinfo(), it says my mysqli API client version is 3.23.58. 
When I run php -i from the command line it says it is 4.1.10a. The 
latter is correct. What would cause the discrepancy? The server has 
been stopped and started many times, and PHP rebuilt a few times, so 
it isn't a browser buffer issue.

For the love of all that is holy, please don't send repeat messages to 
the list!!
I didn't. I have no idea why that came through twice. Believe me, it 
annoyed me more than it annoyed you. Or are you saying I should not have 
replied to myself to provide the additional information? When I 
discovered that, it seemed significant in terms of tracking down the 
problem, so I didn't see any reason to wait to provide it. I've been 
trying to track down these problems off and on for a couple months and 
I'm growing impatient (not with you or other people trying to help me, 
just in general).


Are you sure you built both the client and the server module versions? 
It seems only your cli build is using the new API.
Built both client and server module versions of what? I installed MySQL 
from RPMs, and installed all of the available packages (client, server, 
devel, libraries, bench). PHP, I built using a slightly modified version 
of the options that were in the version 4 RPM. My settings are available 
at http://john.swartzentruber.us/test.php. I'm currently running 
5.04-dev because I ran the most recent stable CVS version before 
reporting the bug.

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


Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread Richard Lynch
 When I run phpinfo(), it says my mysqli API client version is 3.23.58.
 When I run php -i from the command line it says it is 4.1.10a. The
 latter is correct. What would cause the discrepancy? The server has been
 stopped and started many times, and PHP rebuilt a few times, so it isn't
 a browser buffer issue.

Well, you've identified your problem.

Your RPMs are all screwed up (no surprise there) and the PHP_MySQL Module
is on version 3.23.58 but you are actually running MySQL 4.1.10a

Most likely, you didn't UNINSTALL the previous version of MySQL before you
installed PHP at some point.

You'll have to either switch to building from source, so you actually know
what's going on, or un-install everything (PHP, MySQL, etc) and then
re-install and hope the RPM maintainers have things right.

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



Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread John Swartzentruber
On 3/14/2005 12:22 PM Richard Lynch wrote:
When I run phpinfo(), it says my mysqli API client version is 3.23.58.
When I run php -i from the command line it says it is 4.1.10a. The
latter is correct. What would cause the discrepancy? The server has been
stopped and started many times, and PHP rebuilt a few times, so it isn't
a browser buffer issue.

Well, you've identified your problem.
Your RPMs are all screwed up (no surprise there) and the PHP_MySQL Module
is on version 3.23.58 but you are actually running MySQL 4.1.10a
Where does the PHP_MySQL Module come from? Is that part of PHP or MySQL? 
I would think that it is from PHP and would be built when I build PHP. I 
have --with-mysqli pointing to a version of mysql_config that has the 
correct version.


Most likely, you didn't UNINSTALL the previous version of MySQL before you
installed PHP at some point.
I uninstalled all of the MySQL RPMs except for the shared libraries, 
which I upgraded. The problem with uninstalling that one is that there 
is a dependency in dovecot and I don't want to uninstall my mail system.


You'll have to either switch to building from source, so you actually know
what's going on, or un-install everything (PHP, MySQL, etc) and then
re-install and hope the RPM maintainers have things right.
PHP I'm already building from Source. Uninstalling all of MySQL doesn't 
seem to be an option because of that dovecot dependency.

What I'd really like to know (among so many other things) is how 
configure is determining which MySQL it should use. Also knowing the 
difference between PHP via a browser (via apache) and PHP on the command 
line would give me some clues. I don't understand why the client API 
version for mysqli is different according to how PHP is accessed.

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


Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread Richard Lynch
 PHP I'm already building from Source. Uninstalling all of MySQL doesn't
 seem to be an option because of that dovecot dependency.

 What I'd really like to know (among so many other things) is how
 configure is determining which MySQL it should use. Also knowing the
 difference between PHP via a browser (via apache) and PHP on the command
 line would give me some clues. I don't understand why the client API
 version for mysqli is different according to how PHP is accessed.

Suppose, just for the sake of argument, that your Apache had
mod_auth_mysql compiled into it.

Also suppose, for the sake of argument, that it was on version MySQL 3
when you did that.

When you try to compile PHP, it *CANNOT* use MySQL 4 in the PHP Module, or
Apache's mod_auth_mysql would get all fargled up.

The CLI version, however, does not have that constraint.

*MAYBE* configure is smart enough to figure this kind of stuff out, and
that's why you got what you got.

More likely, you've still got MySQL 3 installed somewhere on your system.

If you're not willing to un-install that, and configure isn't finding the
version you want to use, then start reading/hacking the Makefiles that
configure builds.

-- 
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 causes Apache segmentation fault? [SOLVED]

2005-03-14 Thread John Swartzentruber
On 3/14/2005 1:26 PM Richard Lynch wrote:
PHP I'm already building from Source. Uninstalling all of MySQL doesn't
seem to be an option because of that dovecot dependency.
What I'd really like to know (among so many other things) is how
configure is determining which MySQL it should use. Also knowing the
difference between PHP via a browser (via apache) and PHP on the command
line would give me some clues. I don't understand why the client API
version for mysqli is different according to how PHP is accessed.

Suppose, just for the sake of argument, that your Apache had
mod_auth_mysql compiled into it.
Also suppose, for the sake of argument, that it was on version MySQL 3
when you did that.
When you try to compile PHP, it *CANNOT* use MySQL 4 in the PHP Module, or
Apache's mod_auth_mysql would get all fargled up.
The CLI version, however, does not have that constraint.
*MAYBE* configure is smart enough to figure this kind of stuff out, and
that's why you got what you got.
More likely, you've still got MySQL 3 installed somewhere on your system.
If you're not willing to un-install that, and configure isn't finding the
version you want to use, then start reading/hacking the Makefiles that
configure builds.

A-ha! Thank you! This is the kind of information I was looking for. I 
looked into mod_auth_mysql. It isn't compiled in, but it appears that it 
specifically wants to use libmysqlclient.so.10. That's the old version. 
I'm not (to the best of my knowledge) using mod_auth_mysql, so I removed 
the line that loaded it. After restarting Apache, the client api version 
jumped up to 4.1.10a, where it belongs. If I do want to use 
mod_auth_mysql, it looks simple enough to download the latest version 
and build it from source.

Thank you again for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP causes Apache segmentation fault?

2005-03-13 Thread John Swartzentruber
On 3/11/2005 11:57 AM John Swartzentruber wrote:
I am running Fedora core3 with Apache 2.0.52 (from default RPMs), 
MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from 
source.

I'm going through the PHP manual and trying some of the mysqli 
examples. The last one I tried didn't work. The problem appears to be 
this line:

$row = $result-fetch_array(MYSQLI_ASSOC);
Using MYSQLI_BOTH also fails, and MYSQLI_NUM works.
This is what is in my httpd error log:
[Thu Mar 10 17:07:06 2005] [notice] child pid 29903 exit signal 
Segmentation fault (11)
I've reported this as a PHP bug and then continued to do some more 
research. What I'm finding is very odd.

When I run this script under apache, it appears that there is a clash 
between the structures used in a MySQL library and what is in the 
mysql.h header file. When I do a phpinfo(), it says that my mysqli 
client API version is 3.23.58. That seems wrong. I have MySQL 4.1.10a 
installed. This version difference *could* explain the difference, but I 
have no idea why it would be using the old version. The libmysql 
libraries and programs are all dated March 9, 2005 or later. The 
--with-mysqli configure parameter points to a mysql_config program with 
that date. Why would it think it was using an older API?

Another very weird thing is that when I run the script directly from the 
command line, the structure looks good and has all of the correct (i.e., 
expected) values. What is different about running PHP from the command 
line and from Apache that would cause it to use different MySQL structures?

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


Re: [PHP] PHP causes Apache segmentation fault?

2005-03-13 Thread John Swartzentruber
On 3/13/2005 3:55 PM John Swartzentruber wrote:
On 3/11/2005 11:57 AM John Swartzentruber wrote:
I am running Fedora core3 with Apache 2.0.52 (from default RPMs), 
MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from 
source.

I'm going through the PHP manual and trying some of the mysqli 
examples. The last one I tried didn't work. The problem appears to 
be this line:

$row = $result-fetch_array(MYSQLI_ASSOC);
Using MYSQLI_BOTH also fails, and MYSQLI_NUM works.
This is what is in my httpd error log:
[Thu Mar 10 17:07:06 2005] [notice] child pid 29903 exit signal 
Segmentation fault (11)

I've reported this as a PHP bug and then continued to do some more 
research. What I'm finding is very odd.

When I run this script under apache, it appears that there is a clash 
between the structures used in a MySQL library and what is in the 
mysql.h header file. When I do a phpinfo(), it says that my mysqli 
client API version is 3.23.58. That seems wrong. I have MySQL 4.1.10a 
installed. This version difference *could* explain the difference, but I 
have no idea why it would be using the old version. The libmysql 
libraries and programs are all dated March 9, 2005 or later. The 
--with-mysqli configure parameter points to a mysql_config program with 
that date. Why would it think it was using an older API?

Another very weird thing is that when I run the script directly from the 
command line, the structure looks good and has all of the correct (i.e., 
expected) values. What is different about running PHP from the command 
line and from Apache that would cause it to use different MySQL structures?
Sorry to reply to myself, but here's the succinct question:
When I run phpinfo(), it says my mysqli API client version is 3.23.58. 
When I run php -i from the command line it says it is 4.1.10a. The 
latter is correct. What would cause the discrepancy? The server has been 
stopped and started many times, and PHP rebuilt a few times, so it isn't 
a browser buffer issue.

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


Re: [PHP] PHP causes Apache segmentation fault?

2005-03-11 Thread Burhan Khalid
John Swartzentruber wrote:
I am running Fedora core3 with Apache 2.0.52 (from default RPMs), MySQL 
4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from source.

I'm going through the PHP manual and trying some of the mysqli examples. 
The last one I tried didn't work. The problem appears to be this line:

$row = $result-fetch_array(MYSQLI_ASSOC);
Using MYSQLI_BOTH also fails, and MYSQLI_NUM works.
This is what is in my httpd error log:
[Thu Mar 10 17:07:06 2005] [error] jk2_init() Can't find child 29980 in 
scoreboard
[Thu Mar 10 17:07:06 2005] [notice] workerEnv.init() ok 
/etc/httpd/conf/workers2.properties
[Thu Mar 10 17:07:06 2005] [error] mod_jk child init 1 -2
[Thu Mar 10 17:07:06 2005] [notice] child pid 29903 exit signal 
Segmentation fault (11)
I'm not sure these lines are the ones that are triggered from PHP. 
These seem to be Tomcat/JSP related (mod_jk)

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


Re: [PHP] PHP causes Apache segmentation fault?

2005-03-11 Thread John Swartzentruber
On 3/11/2005 10:33 AM Burhan Khalid wrote:
John Swartzentruber wrote:
I am running Fedora core3 with Apache 2.0.52 (from default RPMs), 
MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from 
source.

I'm going through the PHP manual and trying some of the mysqli 
examples. The last one I tried didn't work. The problem appears to be 
this line:

$row = $result-fetch_array(MYSQLI_ASSOC);
Using MYSQLI_BOTH also fails, and MYSQLI_NUM works.
This is what is in my httpd error log:
[Thu Mar 10 17:07:06 2005] [error] jk2_init() Can't find child 29980 
in scoreboard
[Thu Mar 10 17:07:06 2005] [notice] workerEnv.init() ok 
/etc/httpd/conf/workers2.properties
[Thu Mar 10 17:07:06 2005] [error] mod_jk child init 1 -2
[Thu Mar 10 17:07:06 2005] [notice] child pid 29903 exit signal 
Segmentation fault (11)

I'm not sure these lines are the ones that are triggered from PHP. These 
seem to be Tomcat/JSP related (mod_jk)
I just tried it again, and it looks like I included too much 
information. This is all I got this time:

[Fri Mar 11 11:55:04 2005] [notice] child pid 31108 exit signal 
Segmentation fault (11)

So even though the other messages came through at the same time, it 
might only be the last one that is significant.

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


[PHP] PHP causes Apache segmentation fault?

2005-03-10 Thread John Swartzentruber
I am running Fedora core3 with Apache 2.0.52 (from default RPMs), MySQL 
4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from source.

I'm going through the PHP manual and trying some of the mysqli examples. 
The last one I tried didn't work. The problem appears to be this line:

$row = $result-fetch_array(MYSQLI_ASSOC);
Using MYSQLI_BOTH also fails, and MYSQLI_NUM works.
This is what is in my httpd error log:
[Thu Mar 10 17:07:06 2005] [error] jk2_init() Can't find child 29980 in 
scoreboard
[Thu Mar 10 17:07:06 2005] [notice] workerEnv.init() ok 
/etc/httpd/conf/workers2.properties
[Thu Mar 10 17:07:06 2005] [error] mod_jk child init 1 -2
[Thu Mar 10 17:07:06 2005] [notice] child pid 29903 exit signal 
Segmentation fault (11)

As I said, removing the second fetch_array() call allows the script to run.
Here is the entire script:
?php
include ../../secrets/rootmysqlpass.inc.php; // only defines $rootpass
$mysqli = new mysqli(localhost, root, $rootpass, World);
echo pre;
printf(Host information: %s\n, $mysqli-host_info);
/* check connection */
if (mysqli_connect_errno()) {
   printf(Connect failed: %s\n, mysqli_connect_error());
   exit();
}
$query = SELECT Name, CountryCode FROM City ORDER by ID LIMIT 3;
$result = $mysqli-query($query);
/* numeric array */
$row = $result-fetch_array(MYSQLI_NUM);
printf (%s (%s)\n, $row[0], $row[1]);
/* associative array */
$row = $result-fetch_array(MYSQLI_ASSOC);
printf (%s (%s)\n, $row[Name], $row[CountryCode]);
/* free result set */
$result-close();
$mysqli-close();
echo /pre;
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP based Apache admin tool?

2004-12-28 Thread John Nichel
Brian Dunning wrote:
Is there any such thing as a PHP based GUI tool for administering 
Apache? I've searched high  low and found nothing.

- Brian
I don't know of any php based ones, but there's webmin; Perl based.
--
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] PHP based Apache admin tool?

2004-12-27 Thread Brian Dunning
Is there any such thing as a PHP based GUI tool for administering 
Apache? I've searched high  low and found nothing.

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


[PHP] PHP+Oracle+Apache

2004-11-14 Thread Evgeniy Sudyr
Good day,

I use Apache2+PHP5+Oracle8 under WindowsXP  I want use php with
Oracle. I uncommented strings in php.ini:

;extension=php_oci8.dll
;extension=php_oracle.dll
;extension=php_dbase.dll

Now when I start apache it say me that this extensions are not present
in extensions dir (But they are exactly here!)

Can anybody help me?
--- 
Best regards,
 Evgeniy Sudyr

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



[PHP] PHP or Apache problem?

2004-10-07 Thread william van der wee
Hi all,

I'am using SuSe 9.1 with Apache and PHP. In order to 
get access to MS SQL server I installed freeTDS ODBC 
driver. Everything ok, except I can't get it in a PHP 
webpage. I use in my PHP scripts odbc_connect.
ISGL is working. When I look in apache error_log it 
say: 

/usr/sbin/httpd2-prefork: error while loading shared
libraries: /usr/lib/php/extensions/unixODBC.so: 
undefined symbol: SQLAllocEnv script not found or 
unable to stat

I'am not sure this is a PHP or an Apache problem.

Anybody have any experience with this.

Appreciate your help.

Thanks

William



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



Re: [PHP] PHP or Apache problem?

2004-10-07 Thread Curt Zirzow
* Thus wrote william van der wee:
 Hi all,
 
 I'am using SuSe 9.1 with Apache and PHP. In order to 
 get access to MS SQL server I installed freeTDS ODBC 
 driver. Everything ok, except I can't get it in a PHP 
 webpage. I use in my PHP scripts odbc_connect.
 ISGL is working. When I look in apache error_log it 
 say: 
 
 /usr/sbin/httpd2-prefork: error while loading shared
 libraries: /usr/lib/php/extensions/unixODBC.so: 
 undefined symbol: SQLAllocEnv script not found or 
 unable to stat
 
 I'am not sure this is a PHP or an Apache problem.

It appears to be something wrong with php. more details on how you
installed this will be needed.

It could also be related to your freeTDS. Make sure the
driver you specify to odbc_connect() is using the proper string for 
freeTDS to pick up.

 
 Anybody have any experience with this.

Back in php3 days I had to ensure the proper environment was setup
with php's setemv(). Things might have changed since then.


Curt
-- 
The above comments may offend you. flame at will.

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



[PHP] PHP 4.3.8 + Apache 1.3.31 + Oracle 9.2.0.4 Segmentation Fault

2004-08-24 Thread Francisco Puente XFMP (QA/EMC)
Hi all, 
I'm trying to get apache + php to work with Oracle on Debian(Woody). I've 
managed to install Oracle 9.2.0.4 on Debian Woody, it's working fine from the command 
line. I've compiled Apache/PHP both from the sources with the following parameters.
PHP:
./configure --enable-gd-imgstrttf --with-gd --with-jpeg --with-apache=../apache_1.3.31 
--with-mysql --with-pspell --with-ttf --with-zlib --enable-bcmath --enable-filepro 
--enable-ftp --enable-track-vars --enable-calendar --enable-ctype --enable-exif 
--enable-trans-sid --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm 
--enable-wddx --with-sybase-ct=/opt/sybase-11.9.2 --with-oci8=/ora/9iR2 
--enable-sigchild --with-mcrypt

Apache:
LIBS=-lpthread ./configure --prefix=/usr/local/apache --enable-module=most 
--enable-module=so --activate-module=src/modules/php4/libphp4.a

The installation of went smooth, but when trying to start httpd I get a segmentation 
fault on the logs:
...
[Tue Aug 24 14:18:56 2004] [notice] child pid 21478 exit signal Segmentation fault (11)
[Tue Aug 24 14:18:56 2004] [notice] child pid 21477 exit signal Segmentation fault (11)
[Tue Aug 24 14:18:56 2004] [notice] child pid 21476 exit signal Segmentation fault (11)
[Tue Aug 24 14:18:56 2004] [notice] child pid 21475 exit signal Segmentation fault (11)
...

If I remove oracle support (--with-oci8) from PHP it works great with Sybase and 
MySQL, but I need to get Oracle to work.
I've added some oracle environment variables to apachectl:
-
export ORACLE_SID=ora9
export ORACLE_HOME=/ora/9iR2 (with only this should be enough)
export ORA_NLS33=/ora/9iR2/ocommon/nls/admin/data
export PATH=$PATH:$ORACLE_HOME/bin:
export 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export THREAD_FLAG=native
export LC_LANG=en_US
export 
CLASSPATH=/ora/9iR2/JRE:/ora/9iR2/jlib:/ora/9iR2/rdbms/jlib:/ora/9iR2/network/jlib
---

This is the debug part from apache:
ldd /usr/local/apache/bin/httpd 
libpthread.so.0 = /lib/libpthread.so.0 (0x4001d000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x40031000)
libinsck.so = /opt/sybase-11.9.2/lib/libinsck.so (0x4005f000)
libsybtcl.so = /opt/sybase-11.9.2/lib/libsybtcl.so (0x40062000)
libintl.so = /opt/sybase-11.9.2/lib/libintl.so (0x40084000)
libcomn.so = /opt/sybase-11.9.2/lib/libcomn.so (0x4008c000)
libct.so = /opt/sybase-11.9.2/lib/libct.so (0x400e4000)
libcs.so = /opt/sybase-11.9.2/lib/libcs.so (0x40141000)
libpspell.so.4 = /usr/lib/libpspell.so.4 (0x4014e000)
libmcrypt.so.4 = /usr/lib/libmcrypt.so.4 (0x4016c000)
libltdl.so.3 = /usr/lib/libltdl.so.3 (0x40172000)
libpng.so.2 = /usr/lib/libpng.so.2 (0x40178000)
libz.so.1 = /usr/lib/libz.so.1 (0x401a3000)
libresolv.so.2 = /lib/libresolv.so.2 (0x401b1000)
libm.so.6 = /lib/libm.so.6 (0x401c1000)
libdl.so.2 = /lib/libdl.so.2 (0x401e2000)
libnsl.so.1 = /lib/libnsl.so.1 (0x401e5000)
libclntsh.so.9.0 = /ora/9iR2/lib/libclntsh.so.9.0 (0x401f9000)
libdb.so.2 = /lib/libdb.so.2 (0x40bcb000)
libc.so.6 = /lib/libc.so.6 (0x40bd8000)
libstdc++-libc6.2-2.so.3 = /usr/lib/libstdc++-libc6.2-2.so.3 (0x40cf5000)
libpspell-modules.so.1 = /usr/lib/libpspell-modules.so.1 (0x40d3e000)
libwtc9.so = /ora/9iR2/lib/libwtc9.so (0x40d4)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)

#gdb httpd
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-linux...
(gdb) b ap_process_request
Breakpoint 1 at 0x81cd8aa
(gdb) run -X -d /usr/local/apache
Starting program: /usr/local/apache/bin/httpd -X -d /usr/local/apache
[New Thread 1024 (LWP 21553)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 21553)]
0x40e8017b in ber_strdup () from /usr/lib/liblber.so.2

I've tried to change all the environment variables with no luck. As stated above, 
removing oracle support it works great!
It's a php problem? it's apache's? oci?
Any help will be very very welcome!

Francisco



[PHP] PHP and Apache 2

2004-08-08 Thread Rosen
Hi,
What is the reason, thath in the installation manual of PHP writes:
WARNING:
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows. 

Thanks,
Rosen

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



Re: [PHP] PHP and Apache 2

2004-08-08 Thread Thomas Goyne
On Sun, 8 Aug 2004 16:20:55 +0300, Rosen [EMAIL PROTECTED] wrote:
Hi,
What is the reason, thath in the installation manual of PHP writes:
WARNING:
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows. 
Thanks,
Rosen
http://www.zend.com/lists/php-dev/200406/msg00291.html
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP and Apache Authentication

2004-06-04 Thread Glenn MacGregor
Hi All,
I am trying to protect portions of my website. I am using pache 2.x and 
php4.X. I don't want to use apache authentication within the Directory 
directive because I can't utilize sessions if I do that. So I want to 
use PHP to authenticate from a postgresql database.

This works fine on the pages I have put it on, the problem is I want it 
on all pages in a given directory but I don't want to edit every page in 
that directory. Is there a way to configure apache to include something 
in every response?

Example:
http://test/v1/v1.php
v1.php:
...
include(../auth.inc)
...
This file is protected.
http://test/v1/v1-test.php
v1-test.php doesn't contain the include above, but I still want to 
protect it.

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


Re: [PHP] PHP and Apache Authentication

2004-06-04 Thread Matt Matijevich
[snip]
Is there a way to configure apache to include something 
in every response?
[/snip]

I think you could use a autoprepend in your php.ini file

http://www.php.net/reserved.variables 

there is a mention of it on the user comments on this page

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



[PHP] php cgi, apache suexec, filesystem problems

2004-05-21 Thread Peter Risdon
Hi,
I am having a lot of problems with any PHP routines that have to access 
the filesystem - things like exec(), shell_exec(), system(), backticked 
shell commands, copy(), move_uploaded_file() and so on.

I have a non-standard setup with CLI, CGI and mod_php all installed. 
These scripts are using the cgi php executable and the webserver is 
running suexec. I have confirmed that it isn't permissions issues both 
by running identical commands to those in the scripts from the uid in 
use by the suexec'd apache virtual host, and by blowing open permissions 
to 777 temporarily. No difference. Example code from the manual also fails.

Before I post a specific example to see if anyone can spot a problem in 
my code, does anyone know whether there's a fundamental problem with my 
server setup?

TIA.
PWR.
FreeBSD 4.9-STABLE
#/usr/local/bin/php -v
PHP 4.3.4 (cgi) (built: Feb 28 2004 13:43:25)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
#tail /var/log/httpd-error.log
[Wed May 19 10:34:43 2004] [notice] Apache/1.3.29 (Unix) mod_perl/1.28 
PHP/4.3.4 mod_ssl/2.8.16 OpenSSL/0.9.7c configured -- resuming normal 
operations
[Wed May 19 10:34:43 2004] [notice] suEXEC mechanism enabled (wrapper: 
/usr/local/sbin/suexec)
[Wed May 19 10:34:43 2004] [notice] Accept mutex: flock (Default: flock)

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


[PHP] PHP 4.3.4, Apache w/ mod_ssl Compile Help

2004-04-05 Thread trlists
Hi Folks ...

A small problem here ...

I just rebuilt Apache 1.3.29 with mod_ssl.

When doing apachectl startssl I get:

[Mon Apr  5 12:19:53 2004] [warn] Loaded DSO libexec/libphp4.so
uses plain Apache 1.3 API, this module might crash under EAPI!
(please recompile it with -DEAPI)

I read through many postings on this topic and the opinion seemed to be 
that rebuilding PHP with CFLAGS=-DEAPI would fix this, as would simply 
rebuilding it after Apache as the rebuild should pick up the new APXS 
file which would define this symbol.

After rebuilding Apache with modssl as follows:

./configure --enable-module=so --enable-module=ssl
make
make install

I ran from the PHP directory:

make clean
make
make install

If I then do an apachectl stop followed by apachectl startssl I get the 
error again.

I have verified that the new libphp4.so is installed in 
/usr/local/apache/libexec, and that /usr/local/apache/bin contains the 
latest apxs file, and that the PHP configuration line points to that 
file.

I have tried the PHP rebuild both before and after setting CFLAGS=-
DEAPI in my local shell environment (with export).  The results are the 
same -- the error shown above.

What am I missing?

FYI, the PHP config as shown in config.status is:

--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-
redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr
--bindir=/us r/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/u sr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var --sh
aredstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --prefix =/usr
--with-config-file-path=/etc --enable-inline-optimization
--with-exec-dir= /usr/bin --with-pear=/usr/share/pear
--with-mysql=shared,/usr --with-apxs=/usr/local/apache/bin/apxs
--with-openssl --with-mcrypt --with-curl 

Thanks,

--
Tom

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



Re: [PHP] PHP 4.3.4, Apache w/ mod_ssl Compile Help

2004-04-05 Thread trlists
On 5 Apr 2004 [EMAIL PROTECTED] wrote:

 When doing apachectl startssl I get:
 
 [Mon Apr  5 12:19:53 2004] [warn] Loaded DSO libexec/libphp4.so
 uses plain Apache 1.3 API, this module might crash under EAPI!
 (please recompile it with -DEAPI)

Sorry, I just realized there is a separate php-install list.  I will 
repost this there.

--
Tom

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



[PHP] PHP and Apache 2

2004-03-13 Thread trlists
 So the current situation is that Apache2-prefork+PHP is a decent solution
 but it hasn't been tested a whole lot.  

I am currently moving my app to an Apache 2 server.  I did not build 
the server (not my area of expertise) and don't know how how it was 
built, but I can talk to the folks who did it and find out.  It was 
their choice to go to Apache 2, but I still have time to get them to go 
back if need be.  I'd like to understand the recommendations more 
clearly.

Are there configurations of Apache 2 that are OK with PHP?  The above 
suggests prefork hasn't been tested but the remainder of your message 
suggests multithreading (which is different from prefork as I read the 
Apache docs -- right?) is even more problematic.  It sounds like this 
is what's behind the recommendation at 
http://us2.php.net/install.apache2 which says  Do not use Apache 2.0 
and PHP in a production environment neither on Unix nor on Windows.  
But the same page says The following versions of PHP are known to work 
with the most recent version of Apache 2.0:, so I'm not quite clear on 
what's being recommended.

FWIW httpd-l on the new server shows:

Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_suexec.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

Thanks for any comments.

--
Tom

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



Re: [PHP] PHP and Apache 2

2004-03-13 Thread Rasmus Lerdorf
On Sat, 13 Mar 2004 [EMAIL PROTECTED] wrote:

  So the current situation is that Apache2-prefork+PHP is a decent solution
  but it hasn't been tested a whole lot.

 I am currently moving my app to an Apache 2 server.  I did not build
 the server (not my area of expertise) and don't know how how it was
 built, but I can talk to the folks who did it and find out.  It was
 their choice to go to Apache 2, but I still have time to get them to go
 back if need be.  I'd like to understand the recommendations more
 clearly.

 Are there configurations of Apache 2 that are OK with PHP?  The above
 suggests prefork hasn't been tested but the remainder of your message
 suggests multithreading (which is different from prefork as I read the
 Apache docs -- right?) is even more problematic.  It sounds like this
 is what's behind the recommendation at
 http://us2.php.net/install.apache2 which says  Do not use Apache 2.0
 and PHP in a production environment neither on Unix nor on Windows.
 But the same page says The following versions of PHP are known to work
 with the most recent version of Apache 2.0:, so I'm not quite clear on
 what's being recommended.

I think that is pretty clear.  It says that it works but we do not
consider it production quality.

As for whether your particular install will work?  I have no idea.  Maybe,
maybe not.  And if weird things happen chances are we won't be able to
help you fix it.  That's the essence of our reccomendation to stick with
the Apache1 codebase we know well until such a time that Apache2 actually
delivers substantial enough features to warrant the effort it is going to
take to hammer it into a production-quality environment.

-Rasmus

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



Re: [PHP] PHP and Apache 2

2004-03-13 Thread trlists
On 13 Mar 2004 Rasmus Lerdorf wrote:

 I think that is pretty clear.  It says that it works but we do not
 consider it production quality.

OK, thanks.  That is what I thought it meant but I wanted to be sure.

 As for whether your particular install will work?  I have no idea.  Maybe,
 maybe not.  And if weird things happen chances are we won't be able to
 help you fix it.  That's the essence of our reccomendation to stick with
 the Apache1 codebase we know well until such a time that Apache2 actually
 delivers substantial enough features to warrant the effort it is going to
 take to hammer it into a production-quality environment.

Thanks.  I wasn't asking if it would work, just what the 
recommendations were.  That's very clear.  

--
Tom

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



Re: [PHP] PHP and Apache Using up all memory

2004-03-07 Thread Raditha Dissanayake
The RLimit* set of directive can define resource limitations  in apache. 
There is also aSendBufferSize directive but haven't used that so can't 
comment. According to the situation that you describe perhaps saving the 
file first isn't the solution either.

Juan E Suris wrote:

Right now I am genereating the file offline and using a hyperlink, but that
creates double the disk I/O. It reads some files (which the big file is
based on), writes the big file, and reads the big file (to deliver it when
the user clicks the hyperlink). If I could just create the file and deliver
it as I create it, I would save the write/read to/from disk of the big file.
Output buffering is off in php.ini:
output_buffering = Off
So that does not seem to be it. Maybe the problem should be address on
Apache instead of PHP?
Thanks,
Juan
- Original Message - 
From: Raditha Dissanayake [EMAIL PROTECTED]
To: Juan E Suris [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 11:44 PM
Subject: Re: [PHP] PHP and Apache Using up all memory

 

Hi Juan,

What you can do is to switch off output buffering. If it is a really
large file you might want to generate the file offline and deliver it
using the more conventional hyperlink.
all the best

Juan E Suris wrote:

   

Hi!
 

   

 



--
Raditha Dissanayake.
---
http://www.radinks.net/ftp/applet/
An applet that breaks all the rules. Reads, Writes and Deletes files on 
your hard disk. Uploads what's left to a third party server.

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


[PHP] PHP and Apache Using up all memory

2004-03-06 Thread Juan E Suris
Hi!

I have a problem with PHP and Apache, where Apache uses up a huge amount of memory. 
What happens is that I have a PHP script that creates a file on the fly and sends it 
directly to the broswer (as an attachment, so that the user can save it). The problem 
is that when the file is big and the client download speed is slow, the Apache process 
uses up as much memory as the file size. My guess here is that PHP keeps writing data 
as fast as it can, and Apache caches it in memory until the user can download it all.

Is there any way to avoid this?

My apologies if this is an obvious question.

Thanks,
Juan 

Re: [PHP] PHP and Apache Using up all memory

2004-03-06 Thread Raditha Dissanayake
Hi Juan,

What you can do is to switch off output buffering. If it is a really 
large file you might want to generate the file offline and deliver it 
using the more conventional hyperlink.

all the best

Juan E Suris wrote:

Hi!

I have a problem with PHP and Apache, where Apache uses up a huge amount of memory. What happens is that I have a PHP script that creates a file on the fly and sends it directly to the broswer (as an attachment, so that the user can save it). The problem is that when the file is big and the client download speed is slow, the Apache process uses up as much memory as the file size. My guess here is that PHP keeps writing data as fast as it can, and Apache caches it in memory until the user can download it all.

Is there any way to avoid this?

My apologies if this is an obvious question.

Thanks,
Juan 
 



--
Raditha Dissanayake.
---
http://www.radinks.net/ftp/applet/
An applet that breaks all the rules. Reads, Writes and deletes files on 
your hard disk. Uploads what's left to a third party server.

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


Re: [PHP] PHP and Apache Using up all memory

2004-03-06 Thread Juan E Suris
Right now I am genereating the file offline and using a hyperlink, but that
creates double the disk I/O. It reads some files (which the big file is
based on), writes the big file, and reads the big file (to deliver it when
the user clicks the hyperlink). If I could just create the file and deliver
it as I create it, I would save the write/read to/from disk of the big file.

Output buffering is off in php.ini:
output_buffering = Off

So that does not seem to be it. Maybe the problem should be address on
Apache instead of PHP?
Thanks,
Juan

- Original Message - 
From: Raditha Dissanayake [EMAIL PROTECTED]
To: Juan E Suris [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 11:44 PM
Subject: Re: [PHP] PHP and Apache Using up all memory


 Hi Juan,

 What you can do is to switch off output buffering. If it is a really
 large file you might want to generate the file offline and deliver it
 using the more conventional hyperlink.

 all the best

 Juan E Suris wrote:

 Hi!
 
 I have a problem with PHP and Apache, where Apache uses up a huge amount
of memory. What happens is that I have a PHP script that creates a file on
the fly and sends it directly to the broswer (as an attachment, so that the
user can save it). The problem is that when the file is big and the client
download speed is slow, the Apache process uses up as much memory as the
file size. My guess here is that PHP keeps writing data as fast as it can,
and Apache caches it in memory until the user can download it all.
 
 Is there any way to avoid this?
 
 My apologies if this is an obvious question.
 
 Thanks,
 Juan
 
 


 -- 
 Raditha Dissanayake.
 ---
 http://www.radinks.net/ftp/applet/
 An applet that breaks all the rules. Reads, Writes and deletes files on
 your hard disk. Uploads what's left to a third party server.



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



[PHP] PHP on Apache 2.0.48

2004-02-15 Thread XMG
I know that use of PHP with Apache 2.x.x is
discouraged. I use 1.3.29 for my main site. 
Currently I am doing some testing with SSL
connections and because Apache 2.0.48 is 
already installed on my Redhat 8.0 server
and configured with SSL I have been using 
that (for testing). All my testing is done
using SSL (https://) connections.

I have seen some weird behaviour and am
curious if anyone else has seen something
like this with PHP and Apache 2.x.x 
(the PHP version is 4.2.2, btw).

I have a rather simple page where I fetch
a number of rows from MySQL and put them
in a two dimensional array - the first 
dimenstion corresponds to the row returned
from MySQL and the other dimension holds
the elements of the row. Later when 
displaying the actual html I loop through
the array displaying each row in a tr
in a table. 

Sometimes for no reason that I can yet
discern it will stop before displaying 
all of the rows. If I look at the page
source in the browser it just ends and
the rest of the html is not displayed.
It seems rather random. It doesn't stop
in the sample place. Sometimes I get 2-3
rows, sometimes a lot more - no pattern
that I can discern yet.  I am certainly
as capable of writing bugs as anyone
else but can't find any so far. And like
I said it more often than not displays
everything correctly. For what its worth
here is the MySQL code to load the array:

$query = select pub_id, name1, city, state, added from pubs2  .
 order by name1;

$result = mysql_query($query);

$num_rows = mysql_num_rows($result);

if ($result)
{  
  $rw = 0; 
  while ($row = mysql_fetch_array($result, MYSQL_NUM))
  {
$pubs[$rw][0] = $row[0]; // pub_id
$pubs[$rw][1] = $row[1]; // name1
$pubs[$rw][2] = $row[2]; // city
$pubs[$rw][3] = $row[3]; // state
$pubs[$rw][4] = $row[4]; // added
$rw = $rw + 1;
  }
  mysql_free_result($result);
  mysql_close();
}

Then I display it later (it gets a little
'ugly' displaying the rows cause it is wrapping
in my email):

?php
for ($i=0;$i$rw;$i++)
{
  if (even($i))
echo tr bgcolor=\#cc\;
  else
echo tr bgcolor=\#ff\;

  echo tda 
href=\detail.php?pub_id={$pubs[$i][0]}\{$pubs[$i][1]}/a/td; // 
name1 
  echo tdfont size=\-1\{$pubs[$i][2]}/font/td; // City
  echo tdfont size=\-1\{$pubs[$i][3]}/font/td; // State
  echo tdfont size=\-1\{$pubs[$i][4]}/font/td; // Added

  echo /tr\r\n;   
}
echo tr align=\center\td colspan=\4\font size=\-1\ 
color=\red\( $rw records found )/font/td/td/tr\r\n;
?

// end code

Again I think this is fairly simple code. I am certainly
not trying to do anything tricky. 

I guess I will configure Apache 1.3.29 with SSL if don't
come up with some explanation, but I was curious if anyone
had seen such odd behaviour like this before (not displaying
all of the page).

Thanks in advance for your opinions and advice.

lk
www.theNewAgeSite.com

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



[PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Thomas Svenson
Mark Charette wrote:
 If you read through the archives you'll find it isn't so much that
 PHP is the problem per se, but many of the PHP modules. If you use the
 multi-threading model of Apache 2 (the raison d'etre for using
 Apache 2 for
 most people) then all the modules have to be thread-safe, and that's a
 non-trivial matter for many of the module authors and maintainers. If
 you use the pre-fork model of Apache 2 then you essentially have the
 regular version of Apache.

I am using the pre-forked model in Apache2 yes. So far I haven't noticed any
problems with PHP(4/5beta).

If the problems with PHP is with the non pre-forked models, then its time to
update the recommendation to not run PHP on Apache2. Instead it should
explain why it doesn't work and that if pre-forked is used there are no
problems.

Since this problem is known maybe even modules that cause the problems could
be indicated as non pre-forked compatible. After all I might not need any of
them and could thus use a non pre-forked model for PHP.

As I understand this is not a recently discovered problem. Therefore I
wonder what is done to fix the modules not working properly. Is it possible
to fix for all modules?

Even though PHP is very popular, and gaining more and more popularity at all
levels, this is a potential show stopper. This comes with a performance loss
(can't imagine anything else since it is a major new feature in Apache2) and
thus a negative thing for PHP.

/Thomas

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



Re: [PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Chris Shiflett
--- Thomas Svenson [EMAIL PROTECTED] wrote:
 I am using the pre-forked model in Apache2 yes. So far I haven't
 noticed any problems with PHP(4/5beta).
 
 If the problems with PHP is with the non pre-forked models, then its
 time to update the recommendation to not run PHP on Apache2. Instead
 it should explain why it doesn't work and that if pre-forked is used
 there are no problems.

This topic was brought up at ApacheCon. The mod_perl developers have the
same potential problems with threading - even when the core is
thread-safe, many extensions are not.

If you are running in pre-fork mode, there are really no conflicts or
problems with running PHP on Apache 2. However, Rasmus still feels
strongly about using Apache 1.3 until 2 has been around for a long time
(1.3's stability is hard to match), unless you have a compelling reason to
upgrade.

So, I'm not sure what documentation you're referring to exactly, nor am I
sure that there would be a lot of support in updating it. Regardless, if
you need to run Apache 2, and you run it in pre-fork mode, you should be
fine.

Hope that helps.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

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



RE: [PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Thomas Svenson
Chris Shiflett wrote:
 So, I'm not sure what documentation you're referring to exactly, nor
 am I sure that there would be a lot of support in updating it.

This one:

-8.
Warning
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows.
-8.

You find it here: http://www.php.net/manual/en/install.apache2.php

/Thomas

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



[PHP] PHP or Apache Problem?

2004-01-16 Thread Nick Wilson
Hi all, 

I'm getting this error on a well tested and used CMS script:

** CODE
warning: main(): URL file-access is disabled in the server configuration
in /var/www/localhost/htdocs/ellasattic.co.uk/error.php on line 19.

warning: main(http://ellasattic.co.uk/index.php): failed to open stream:
no suitable wrapper could be found in
/var/www/localhost/htdocs/ellasattic.co.uk/error.php on line 19.

warning: main(): Failed opening 'http://ellasattic.co.uk/index.php' for
inclusion (include_path='.:/usr/lib/php') in
/var/www/localhost/htdocs/ellasattic.co.uk/error.php on line 19.

*** END CODE

Line 19 is a simple include() but uses 'http://' rather than a local
path (i cannot change this)...

Anyone take a guess at what's happening..
-- 
Nick W

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



Re: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick,

Friday, January 16, 2004, 12:39:16 PM, you wrote:

NW Line 19 is a simple include() but uses 'http://' rather than a local
NW path (i cannot change this)...

allow_url_fopen is almost certainly disabled in your php.ini file.

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

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



Re: [PHP] PHP or Apache Problem?

2004-01-16 Thread Nick Wilson

* and then Richard Davey declared
 Hello Nick,
 
 Friday, January 16, 2004, 12:39:16 PM, you wrote:
 
 NW Line 19 is a simple include() but uses 'http://' rather than a local
 NW path (i cannot change this)...
 
 allow_url_fopen is almost certainly disabled in your php.ini file.


Yes, that was it, much thankyous ;-)

I'm getting this now: 
Parse error: parse error in http://ellasattic.co.uk/index.php on line 1

### CODE
?php
// $Id: index.php,v 1.68 2003/09/30 17:00:49 dries Exp $
### END CODE

What? - how can that be? - is this another setting I'm missing?

Thanks for the help!

-- 
Nick W

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



Re[2]: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick,

Friday, January 16, 2004, 12:47:43 PM, you wrote:

NW I'm getting this now:
NW Parse error: parse error in http://ellasattic.co.uk/index.php on line 1

NW ### CODE
NW ?php
NW // $Id: index.php,v 1.68 2003/09/30 17:00:49 dries Exp $
NW ### END CODE

NW What? - how can that be? - is this another setting I'm missing?

Why do you have code comments OUTSIDE of the php tags? I can't say for
sure, but it wouldn't surprise me if it caused it.

Does this make any difference? :-

?php
/*
  ### CODE
  $Id: index.php,v 1.68 2003/09/30 17:00:49 dries Exp $
  ### END CODE
*/

//real code here, etc

?

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

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



Re: [PHP] PHP or Apache Problem?

2004-01-16 Thread Nick Wilson

* and then Richard Davey declared
 Why do you have code comments OUTSIDE of the php tags? I can't say for
 sure, but it wouldn't surprise me if it caused it.

I dont. That's just in my email to tell where the code begins ;-)
line 1 is just
?php


-- 
Nick W

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



Re[2]: [PHP] PHP or Apache Problem?

2004-01-16 Thread Richard Davey
Hello Nick,

Friday, January 16, 2004, 2:31:46 PM, you wrote:

NW I dont. That's just in my email to tell where the code begins ;-)
NW line 1 is just
NW ?php

Heh :)

Do other scripts work fine? i.e. is it just that one that dies?

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

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



[PHP] PHP and Apache MultiViews

2003-12-10 Thread Styx
Hi all!

I've got a problem when using this combination. Everything works fine for
browsers that send
Accept: */*
requests, but some web spiders say
Accept: text/*
and get 406 error since the actual type is application/...

I worked this around by using type-map and creating .var files for each
document... But maybe someone knows a better solution?

Thanx in advance,
Styx

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



[PHP] PHP and Apache MultiViews

2003-12-10 Thread Styx
Hi all!

I've got a problem when using this combination. Everything works fine for
browsers that send
Accept: */*
requests, but some web spiders say
Accept: text/*
and get 406 error since the actual type is application/...

I worked this around by using type-map and creating .var files for each
document... But maybe someone knows a better solution?

Thanx in advance,
Styx

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



[PHP] php and apache

2003-11-12 Thread Jen
Hi there.  New to the PHP space here and I'm trying to set things up.  (if
I'm on the wrong newsgroup, please let me know...)

I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my
computer.  Next, I created a test.php file which contains:

?php

 phpinfo();

?

That's it - real simple.  I just want to see it work on the server, but when
I open up that page in a browser, it just displays those tags, exactly as I
typed them.  If I go to http://localhost, I get a page that says,

If you can see this, it means that the installation of the Apache web
server software on this system was successful. You may now add content to
this directory and replace this page.

Now, maybe I'm just not putting test.php in the right directory?  I'm not
sure.  Apache is running from d:/apache/apache/ and PHP is located in
d:/php/.  Any help would be appreciated!

Thanks.

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



Re: [PHP] php and apache

2003-11-12 Thread John Nichel
Jen wrote:

Hi there.  New to the PHP space here and I'm trying to set things up.  (if
I'm on the wrong newsgroup, please let me know...)
I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my
computer.  Next, I created a test.php file which contains:
?php

 phpinfo();

?

That's it - real simple.  I just want to see it work on the server, but when
I open up that page in a browser, it just displays those tags, exactly as I
typed them.  If I go to http://localhost, I get a page that says,
If you can see this, it means that the installation of the Apache web
server software on this system was successful. You may now add content to
this directory and replace this page.
Now, maybe I'm just not putting test.php in the right directory?  I'm not
sure.  Apache is running from d:/apache/apache/ and PHP is located in
d:/php/.  Any help would be appreciated!
Thanks.

Make sure you have and entry in your httpd.conf for Apache that looks 
like this

AddType application/x-httpd-php .php

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

2003-11-12 Thread Boyan Nedkov
Jen wrote:

Hi there.  New to the PHP space here and I'm trying to set things up.  (if
I'm on the wrong newsgroup, please let me know...)
I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my
computer.  Next, I created a test.php file which contains:
?php

 phpinfo();

?

That's it - real simple.  I just want to see it work on the server, but when
I open up that page in a browser, it just displays those tags, exactly as I
typed them.  If I go to http://localhost, I get a page that says,
If you can see this, it means that the installation of the Apache web
server software on this system was successful. You may now add content to
this directory and replace this page.
Now, maybe I'm just not putting test.php in the right directory?  I'm not
sure.  Apache is running from d:/apache/apache/ and PHP is located in
d:/php/.  Any help would be appreciated!
Thanks.



read install.txt located in d:/php

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


[PHP] php Losing apache environment vars

2003-11-10 Thread Keith Greene
Greetings list,
I have run into a problem that has me at my wits end. We run an affiliate 
program, and have forum software (phpBB) wrapped in our menu system.
There are 2 sides to the site, Affiliates and Admin, and I have 2 installs 
of the board using the same database. This all works fine.

The mind-boggling problem is that while the board works perfectly from the 
Affiliate side of the site, it exhibits some strange behavior from the Admin
side of the site. In particular, we are using an apache environment 
variable to point to our includes directory, and any time an http post is 
made from
the admin side of the board, php loses the environment vars and throws 
all kinds of errors about not being able to find the includes.
The only difference between the Affiliate and Admin sides is the include 
used for the actual menu, though the only difference in those files is
the actual links that make up the menu.

I have never seen this behavior, and was wondering if anyone has seen 
anything like it before, and possibly found a solution.
We are running php 4.3.2, Apache 1.3.26 on FreeBSD 4.5.

Any help would be very appreciated.

Keith

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


Re: [PHP] php Losing apache environment vars

2003-11-10 Thread Keith Greene
After restarting apache, the error is gone. Still not sure what was causing 
it. The site was running fine to begin with, and the environment vars
have been in use for over a year throughout the site.

Keith

At 12:56 PM 11/10/2003, Keith Greene wrote:
Greetings list,
I have run into a problem that has me at my wits end. We run an affiliate 
program, and have forum software (phpBB) wrapped in our menu system.
There are 2 sides to the site, Affiliates and Admin, and I have 2 installs 
of the board using the same database. This all works fine.

The mind-boggling problem is that while the board works perfectly from the 
Affiliate side of the site, it exhibits some strange behavior from the Admin
side of the site. In particular, we are using an apache environment 
variable to point to our includes directory, and any time an http post is 
made from
the admin side of the board, php loses the environment vars and throws 
all kinds of errors about not being able to find the includes.
The only difference between the Affiliate and Admin sides is the include 
used for the actual menu, though the only difference in those files is
the actual links that make up the menu.

I have never seen this behavior, and was wondering if anyone has seen 
anything like it before, and possibly found a solution.
We are running php 4.3.2, Apache 1.3.26 on FreeBSD 4.5.

Any help would be very appreciated.

Keith

--
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] php and apache...single sign on

2003-09-17 Thread Mike Klein
I would like to piggyback on an Apache realm/dialog authentication and 
feed these credentials to a mysql connection (or connection to anything 
else) in my php scripts.

Is there a way using the php Apache apis (seems like no) or via apache 
itself to make these credentials available/visible to a php script?

I'm not sure if this presents a security risk as I trust the pages in my 
web server to not be malevolent.

mike

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


RE: [PHP] php and apache...single sign on

2003-09-17 Thread Jay Blanchard
[snip]
I would like to piggyback on an Apache realm/dialog authentication and 
feed these credentials to a mysql connection (or connection to anything 
else) in my php scripts.

Is there a way using the php Apache apis (seems like no) or via apache 
itself to make these credentials available/visible to a php script?

I'm not sure if this presents a security risk as I trust the pages in my

web server to not be malevolent.
[/snip]

Should be $PHP_AUTH_USER and $PHP_AUTH_PW, see
http://us4.php.net/features.http-auth

Funny how the manual works for these things! ;)

Have a pleasant and productive day.

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



[PHP] PHP and Apache

2003-06-30 Thread Mike At Spy

Recently, I had Apache upgraded on my linux redhat 7.3 server from 1.2.3 to
1.3.27.

PHP stopped working when trying to process html files with php in them.  In
the httpd.conf file, I have AllowOverride set to All.  In the Virtual Host
settings I have 'AddType application/x-httpd-php .html'.

HTML documents, which did process before the upgrade, no longer do.  Does
anyone know of any reason for this?  I've been searching on the web, but
most people go back to the ol' AllowOverride thing, which isn't the issue in
this case.

Thanks,

-Mike



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



[PHP] PHP And Apache

2003-01-26 Thread Beogradjanin
Zdravo php-general,

  Hi I'm having ptoblem how do I aneble  PHP on apache..??
  I've read Hot to install but Apche changed httpd.conf on new version
  of Apache server.

  Help

  Thanks

+++Info About this E-mail+
+Poruka je napisana u 12:45:19   + 
+Dana Sunday, January 26, 2003  +
+Files in this E-mail massage+
+none  +
++
+Email: [EMAIL PROTECTED] +
++  



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




[PHP] PHP 4.3.0 - Apache 2 Problem - Missing phpinfo() Info

2003-01-25 Thread Kenneth Lerman
phpinfo() on PHP Version 4.2.2 with Apache/1.3.24 has a block which called
Apache Environment which does not appear in PHP 4.3.0/Apache2.
This block of info has (in part):

DOCUMENT_ROOT /usr/local/apache/htdocs_best-emts
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
*/*
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE en-us
HTTP_CONNECTION Keep-Alive
HTTP_COOKIE POSTNUKESID=af2005c09ffd2e5ceecf91eff96ee77d
HTTP_HOST www.best-emts.com
HTTP_REFERER
http://www.best-emts.com/modules.php?op=modloadname=PostWrapfile=indexpag
e=http://www.best-emts.com/emts/rosterByNumber.php
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
PATH
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/java/b
in:/bd/EMTS/bin:/usr/local/map/bin:/usr/local/mysql/bin
REMOTE_ADDR 198.138.213.31
REMOTE_PORT 2010
SCRIPT_FILENAME /usr/local/apache/htdocs_best-emts/emts/rosterByNumber.php
SERVER_ADDR 198.138.213.25
--
Some of the information does not seem to be available elsewhere.

Is this an undocumented change?  Is this a bug in my configuration?  What,
if anything, am I doing wrong?

Thanks,

Ken

Kenneth Lerman[EMAIL PROTECTED]
Systems Essentials Limited   Fax: (203)426-9138
55 Main Street Voice: (203)426-4430
Newtown, CT 06470 http://se-ltd.com/~lerman


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




[PHP] php/sendmail/apache/linux...

2003-01-24 Thread Bruce Douglas
hey...

I'm sure the question has been answered a 1000 times!!! I'm trying to create
a simple app to send email via PHP, using the mail function.

I'm using RedHat(Linux 8.0 , Sendmail), PHP(4.2.2), Apache (2.0.40).

I'm using the following piece of code:

===
//test mail
$to = [EMAIL PROTECTED];
$subject = savannah registration;
$message =  testing mail;
$reply = From: [EMAIL PROTECTED]\r\n
.Reply-To: [EMAIL PROTECTED]\r\n;

echo
 to =  . $to . br;

echo
 subject =  . $subject . br;

echo
 msg =  . $message . br;

echo
 reply =  . $reply . br;

 $q1 = mail($to, $subject, $message, $reply);
echo
 return val  =  . $q1 . br;


===

Pretty simple eh... The problem that I have is that the mail doesn't appear
to get sent. When I look in the /var/spool/clientmqueue directory, I see a
great deal of what look to be error msgs They appear to be telling me
that the mail couldn't be delivered, but I can't tell why

I was able to successfully send a test msg via Sendmail from the command
line by telnet. So I know the Sendmail engine/daemon seems to be
performing... The PHP.ini file appears to be setup correctly, with the
sendmail_path pointing to sendamil.

Any ideas as to what I need to do, or should be checking

Any pointers/assistance would be greatly appreciated.


Thanks

-Bruce
[EMAIL PROTECTED]



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




[PHP] PHP 4.3 Apache 2

2003-01-01 Thread Scott Seidl
Does the new release of PHP 4.3 have official support with Apache 2.x or is
it still considered developmental?

Thanks



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




Re: [PHP] PHP 4.3 Apache 2

2003-01-01 Thread Rasmus Lerdorf
It is still experimental.

On Wed, 1 Jan 2003, Scott Seidl wrote:

 Does the new release of PHP 4.3 have official support with Apache 2.x or is
 it still considered developmental?

 Thanks



 --
 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 4.3 Apache 2

2003-01-01 Thread Tyler Longren
Yup, still experimental.  But from what I've experienced, they work just
fine together.  I run Apache 2.0.43 and PHP 4.3.0 together without any
problems what so ever.  When you compile php with apache 2, remember to:
./configure --with-axps2
instead of
./configure --with-apxs

tyler

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Scott Seidl [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, January 01, 2003 10:59 PM
Subject: Re: [PHP] PHP 4.3  Apache 2


 It is still experimental.

 On Wed, 1 Jan 2003, Scott Seidl wrote:

  Does the new release of PHP 4.3 have official support with Apache 2.x or
is
  it still considered developmental?
 
  Thanks
 
 
 
  --
  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




[PHP] PHP 4.2.3, Apache 2.0.40, gettext(), and web don't work

2002-12-09 Thread Dubravko Kakarigi
PHP 4.2.3 compiled with gettext(), with Apache 2.0.40.

A call to bindtexdomain() when viewed through the web generates

PHP Fatal error:  Call to undefined function:  bindtextdomain() in ...

When I run the same script from the command line, as in php -f index.php, 
it works fine.

Any ideas?



DUBRAVKO KAKARIGI, P.O. Box 1742, Tallahassee, Florida 32302
   850-222-2211 (HW)  http://www.kakarigi.net/dubravko/
=== seek, appreciate, and create beauty 


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



RE: [PHP] PHP 4.2.3, Apache 2.0.40, gettext(), and web don't work

2002-12-09 Thread Roedel, Mark

Are you *sure* your Apache module and commandline interpreter were both
compiled with the same set of options?  Does a phpinfo() call to the
Apache module indicate that gettext is enabled there?

---
Mark Roedel   | Blessed is he who has learned to laugh
Systems Programmer|  at himself, for he shall never cease
LeTourneau University |  to be entertained.
Longview, Texas, USA  |  -- John Powell


 -Original Message-
 From: Dubravko Kakarigi [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, December 09, 2002 1:01 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP 4.2.3, Apache 2.0.40, gettext(), and web don't work
 
 
 PHP 4.2.3 compiled with gettext(), with Apache 2.0.40.
 
 A call to bindtextdomain() when viewed through the web generates
 PHP Fatal error:  Call to undefined function:  bindtextdomain() in ...
 
 When I run the same script from the command line, as in php 
 -f index.php, it works fine.

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




[PHP] PHP and Apache

2002-12-04 Thread Vicente Valero
Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache 
1.3.x??


Re: [PHP] PHP and Apache

2002-12-04 Thread Adam Williams
Yes

On Wed, 4 Dec 2002, Vicente Valero wrote:

 Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache 
1.3.x??


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




Re: [PHP] PHP and Apache

2002-12-04 Thread Marcus Fazzi
You need Apache 2.0.40 fo uses with PHP 4.2.3, for use with 2.0.43 use PHP
4.3.0 RC2

  Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and
Apache 1.3.x??





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




[PHP] PHP and Apache Cocoon???

2002-11-04 Thread HA, Hai
Hello experts,

I am hoping to build a website to host a sizeable document and add
functionality to allow readers to submit comments and general feedback.  The
main document is currently stored as a series of XML pages and I have
succeeded in publishing these documents in HTML with Apache Cocoon.  
Now that I have the XML and XLST parts in place I am looking towards adding
that comment functionality that I mentioned.  My question for you is does
anyone know how well PHP integrates with Cocoon as I was hoping to use that
as the mechanism to accept and store user comments in a MySQL database.  

If anyone out there has any ideas (or even better, knows how this is done!)
then any pointers would be much appreciated.

Thanks in advance,

Hai


_
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
SchlumbergerSema.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing, 
or copying of this email is strictly prohibited.

If you have received this email in error please notify the
SchlumbergerSema Helpdesk by telephone on +44 (0) 121 627 5600.
_


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




Fw: [PHP] php on apache on win2k

2002-09-27 Thread Sascha Braun


- Original Message -
From: Sascha Braun [EMAIL PROTECTED]
To: Vic [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 10:02 AM
Subject: Re: [PHP] php on apache on win2k


 Hi Vic,

 the Apache DLL resides in the php/sapi folder.

 But if you use Apache Version 2000 and above you have to change
 load_module c:/php/sapi/php4apache.dll to c:/php/sapi/php4apache2.dll

 After that you only have to put the last following lines named in the
 install.txt
 in the httpd.conf.

 But it's not pobably working when you put these line direktly under the
 load_module option. Search thru the httpd.conf and find out where it may
 fit best.

 I had another problem when I installed PHP4.2.3 together with apache
2.0.42.
 Hole PHP did't work to an unchangable error. So at last I installed the
 CGI Version of PHP. If you are able to to this in a different way,
 please remind me and tell me how you did it and what Apache Version
 you used for it.

 Have it nice

 Sascha Braun



  I used to have php 4.2.3 on iis on 200 and xp and it worked fine, but I
  decided o now go with apache for open source's sake and the sake of my
  sanity.
 
  Well right now my sanity is in question, php tells me that I have to
  manually config the apache conf file - no prob here done this many
  times; but it tells me to add theis line here:
 
  LoadModule php4_module c:/php/sapi/php4apache.dll
 
  Now I don't see php4apache.dll anywhere in sight.
 
  What I do see is: php4ts.dll; and I wonder if the documentation is
  outdated. - (or if I am a complete fool)
 
  Either way I get this error when running the apache test:
 
  Cannot load blah blah module blah blah LoadModule php4_module
  c:/php/sapi/php4apache.dll
 
  Not only that, but I see no sapi anywhere in c:/php/
 
  Ok, cool, now what? Any help?
 
  - Victor - www.argilent.com
 
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
 
 
  __
  Post your ad for free now! http://personals.yahoo.ca
 
  --
  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] php on apache on win2k

2002-09-26 Thread Vic

I used to have php 4.2.3 on iis on 200 and xp and it worked fine, but I
decided o now go with apache for open source's sake and the sake of my
sanity.

Well right now my sanity is in question, php tells me that I have to
manually config the apache conf file - no prob here done this many
times; but it tells me to add theis line here:

LoadModule php4_module c:/php/sapi/php4apache.dll

Now I don't see php4apache.dll anywhere in sight.

What I do see is: php4ts.dll; and I wonder if the documentation is
outdated. - (or if I am a complete fool)

Either way I get this error when running the apache test:

Cannot load blah blah module blah blah LoadModule php4_module
c:/php/sapi/php4apache.dll

Not only that, but I see no sapi anywhere in c:/php/

Ok, cool, now what? Any help?

- Victor - www.argilent.com  


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
 

__ 
Post your ad for free now! http://personals.yahoo.ca

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




[PHP] PHP or Apache problem?

2002-09-12 Thread Aaron Gould

I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development
server...

When I type the IP address of the server into my browser, all I see is PHP
code.  However, when I type the IP address, with the index.php, it works
perfectly!  Why would one work and not the other?

192.168.1.1   Doesn't work (displays the code in
index.php)
192.168.1.1/index.php   Does work!

I have these PHP-related entries in my httpd.conf file:

LoadModule php4_modulemodules/libphp4.so
DirectoryIndex index.php index.html.var
AddType application/x-httpd-php .php

Am I missing something important here?

--
Aaron Gould



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




RE: [PHP] PHP or Apache problem?

2002-09-12 Thread MET

The detailed answer, I have no idea.

The simple answer, currently there compatibility is NOT stable, but will
be soon

~ Matthew

-Original Message-
From: Aaron Gould [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 12, 2002 9:35 AM
To: PHP-GENERAL
Subject: [PHP] PHP or Apache problem?


I have recently installed Apache 2.0.40 with PHP 4.2.3 on a development
server...

When I type the IP address of the server into my browser, all I see is
PHP code.  However, when I type the IP address, with the index.php, it
works perfectly!  Why would one work and not the other?

192.168.1.1   Doesn't work (displays the code in
index.php)
192.168.1.1/index.php   Does work!

I have these PHP-related entries in my httpd.conf file:

LoadModule php4_modulemodules/libphp4.so
DirectoryIndex index.php index.html.var
AddType application/x-httpd-php .php

Am I missing something important here?

--
Aaron Gould



-- 
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] PHP And Apache

2002-09-11 Thread Glenn

Can anyone tell me if the latest version of PHP works with the latest Apache
web server?  When I try to build the server it says its not, but I wondered
if there were any patches or changes I could make for them to work properly?

Thanks,

glenn



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




Re: [PHP] PHP And Apache

2002-09-11 Thread Rasmus Lerdorf

Use the latest Apache 1.3.x and the latest PHP.  Works just fine.  Apache
2.0.x is a completely different beast.

-Rasmus

On Wed, 11 Sep 2002, Glenn wrote:

 Can anyone tell me if the latest version of PHP works with the latest Apache
 web server?  When I try to build the server it says its not, but I wondered
 if there were any patches or changes I could make for them to work properly?

 Thanks,

 glenn



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

2002-09-11 Thread Glenn

ok then...

thanks

Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Use the latest Apache 1.3.x and the latest PHP.  Works just fine.  Apache
 2.0.x is a completely different beast.

 -Rasmus

 On Wed, 11 Sep 2002, Glenn wrote:

  Can anyone tell me if the latest version of PHP works with the latest
Apache
  web server?  When I try to build the server it says its not, but I
wondered
  if there were any patches or changes I could make for them to work
properly?
 
  Thanks,
 
  glenn
 
 
 
  --
  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] PHP and Apache

2002-09-06 Thread Tim Haynes

Is there any easy way of creating,editing and deleting virtual hosts using
PHP via a website??  I have already thought of a way but seems a little long
winded.

Thanks in advance.

Tim



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




  1   2   >