Re: [PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista
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
...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
Re: [PHP] PHP 5.2.9 Apache 2.2.11 outputs php code on Vista
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
Re: [PHP] PHP and Apache configuration
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
... 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
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
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
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/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
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
Re: [PHP] PHP and Apache
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
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)
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
Re: [PHP] [PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentation fault (11)
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
Re: [PHP] PHP 5 + Apache 2 on Windows: ms sql extension problem
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
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
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
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
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
Re: [PHP] PHP and Apache
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
Re: [PHP] PHP mysql Apache install on FC3
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?
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?
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?
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?
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?
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]
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?
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?
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?
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?
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
Re: [PHP] PHP based Apache admin tool?
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
Re: [PHP] PHP or Apache problem?
* 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
Re: [PHP] PHP and Apache 2
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
Re: [PHP] PHP and Apache Authentication
[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
Re: [PHP] PHP 4.3.4, Apache w/ mod_ssl Compile Help
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
Re: [PHP] PHP and Apache 2
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
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
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
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
Re: [PHP] PHP and Apache Using up all memory
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
Re: [PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)
--- 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 ...)
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
Re: [PHP] PHP or Apache Problem?
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?
* 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: [PHP] PHP or Apache Problem?
* 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: [PHP] php and apache
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
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
Re: [PHP] php Losing apache environment vars
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
RE: [PHP] php and apache...single sign on
[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
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
Re: [PHP] PHP 4.3 Apache 2
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
RE: [PHP] PHP 4.2.3, Apache 2.0.40, gettext(), and web don't work
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
Re: [PHP] PHP and Apache
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
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
RE: [PHP] PHP or Apache problem?
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
Re: [PHP] PHP And Apache
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
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
Re: [PHP] PHP and Apache
It's certainly _possible_ - Your httpd.conf (I'm assuming you use Apache, of course) file is just a text file that can be read/written like anything else. Then you could do a system('/path/to/apache/bin/apachectl restart'); to activate. Doing it this simply, thoughm means that your webserver's user (usually nobody) would have write access to the conf file and execute perms to apachectl, which could open up some bulldozer-security holes. At the very least, you want to access things through SSL. But you might want to try Webmin: http://www.webmin.com/ Looks very comprehensive, and I've seem a number of good recommendations for it. I've been planning on doing a little testing of it on my test server, but haven't had the time. -steve At 4:48 PM +0100 9/6/02, Tim Haynes wrote: 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. -- ++ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis (530)754-9127 | | Programming/Database/SysAdmin http://pgfsun.ucdavis.edu/ | ++ | The end to politics as usual: | | The Monster Raving Loony Party (http://www.omrlp.com/) | ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP MySQL Apache on Linux vs. Solaris
Go to www.mysql.com and make sure you are using the latest version of MySQL. Adam On Thu, 5 Sep 2002, Boaz Yahav wrote: Hi Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine I'm having weird problems with MySQL crashing while running reports written in php. The site is amazingly fast now on the Linux server but running a report that locks the main tables for about 20 seconds raises the load and crashes the server. While this makes some sense (maybe) i did not have this while i was on Solaris. Why would Solaris know how to hold the queries in the Queue till the tables are freed and Linux does not? Is this PHP, MySQL or maybe Linux to blame? thanks berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP MySQL Apache on Linux vs. Solaris
I'm using 3.23.52-log -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 3:22 PM To: Boaz Yahav Cc: PHP General (E-mail) Subject: Re: [PHP] PHP MySQL Apache on Linux vs. Solaris Go to www.mysql.com and make sure you are using the latest version of MySQL. Adam On Thu, 5 Sep 2002, Boaz Yahav wrote: Hi Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine I'm having weird problems with MySQL crashing while running reports written in php. The site is amazingly fast now on the Linux server but running a report that locks the main tables for about 20 seconds raises the load and crashes the server. While this makes some sense (maybe) i did not have this while i was on Solaris. Why would Solaris know how to hold the queries in the Queue till the tables are freed and Linux does not? Is this PHP, MySQL or maybe Linux to blame? thanks berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP MySQL Apache on Linux vs. Solaris
I haven't had any problems with mysql like you are having. I would recommand you recompile the source rpm to the binary rpms and then install them. Adam On Thu, 5 Sep 2002, Boaz Yahav wrote: I'm using 3.23.52-log -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 3:22 PM To: Boaz Yahav Cc: PHP General (E-mail) Subject: Re: [PHP] PHP MySQL Apache on Linux vs. Solaris Go to www.mysql.com and make sure you are using the latest version of MySQL. Adam On Thu, 5 Sep 2002, Boaz Yahav wrote: Hi Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine I'm having weird problems with MySQL crashing while running reports written in php. The site is amazingly fast now on the Linux server but running a report that locks the main tables for about 20 seconds raises the load and crashes the server. While this makes some sense (maybe) i did not have this while i was on Solaris. Why would Solaris know how to hold the queries in the Queue till the tables are freed and Linux does not? Is this PHP, MySQL or maybe Linux to blame? thanks berber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Php and Apache
On Wed, 24 Jul 2002, Varsha Agarwal wrote: Hi, I have istalled php from the red hat cd at the time i installed red hat itself. I downloaded apache and installed it. Can anyone tell me how to configure php on apache server? I mean what do I do next to run php scripts? I am totally new to all this. Please help. -Varsha If you installed php from redhat CD, then why not apache. The Apache rpm in redhat 7.3 comes as precompiled support for Dynamic shared object so there is no need for doing anything except install your Apache and Php from rpms as it is. Then keep your php files in /var/www/html/ or whatever you configured for DocumentRoot Directive in Apache. If you don't have apache you can download it from redhat site. --- S.Murali Krishnan Internet: [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 4.2.1 / Apache
On Wednesday 10 July 2002 17:25, [EMAIL PROTECTED] wrote: HELLO, I just installed PHP 4.2.1. I am using a Redhat 7.3, installed as server with Apache. My problem is I can t compile it as a module for Apache : ./configure --with-apache=/usr/include/apache configure: error: Invalid Apache directory - unable to find httpd.h under /usr/include/apache But hhtpd.h is really under /usr/inclu/apache [root@localhost php-4.2.1]# slocate httpd.h /usr/include/apache/httpd.h Try: --with-apache=/usr/includeOR --with-apache=/usr But you're better off using apxs instead: --with-apxs=/usr/local/apache/bin/apxs Obviously the path to apxs on your system may differ. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Necessity has no law. -- St. Augustine */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and apache path...
Analysis Solutions wrote: On Tue, Jul 02, 2002 at 10:34:32PM +0200, Nightshade wrote: Analysis Solutions wrote: Document root doensn't solve my problem... ... snip ... Any solution? Read and heed what I already said: Whenever you have a question like this, run phpinfo() and see what's there which produces the variable you're looking for. If that doesn't have what you're looking for, you need to craft your own solution. --Dan Yea,I understood. But my question is: is right that my Document_root (shown in phpinfo) is /var/www/html/ and not /var/www/html/mysite? And if isn't right where I can change this? tnx again -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and apache path...
On Wednesday, July 3, 2002, at 11:08 AM, Nightshade wrote: Yea,I understood. But my question is: is right that my Document_root (shown in phpinfo) is /var/www/html/ and not /var/www/html/mysite? And if isn't right where I can change this? I'm not sure -- is that the directory that you want to be your document root? I doubt it from what you're saying but nobody else has any way of knowing. If you want your document root to be /var/www/html/mysite and it is currently something else, you need to set your httpd.conf file differently. Or perhaps a .htaccess file can be used. (This is assuming you are using Apache.) Go to www.apache.org and read the httpd documentation there for more information about setting up the document root in httpd.conf. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache
I had a problem where I compiled in too many extensions and apache thought the module file was too complicated, and thus corrupt and wouldn't start. On Tue, 2002-07-02 at 14:09, B i g D o g wrote: Sorry bro...doing to many things at once. Apache 1.3.23 Linux 7.2 PHP 4.1.2 Configuration: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-sybase-ct=/sybase --with-mysql' '--enable-exif --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/local/lib --with-zlib --with-config-file-path=/etc --with-freetype-dir=/usr/local/lib My webserver keeps crashing: error log entry [Tue Jul 2 15:12:07 2002] [error] [client 164.214.4.59] (24)Too many open files I am just wondering if this a php issue or something else... B i g D o G - Original Message - From: Michael Sweeney [EMAIL PROTECTED] To: B i g D o g [EMAIL PROTECTED] Cc: PHP GEN [EMAIL PROTECTED] Sent: Tuesday, July 02, 2002 12:04 PM Subject: Re: [PHP] PHP and Apache No. Only you. :-) Platform? Environment? Configuration information? ..mike.. On Tue, 2002-07-02 at 11:01, B i g D o g wrote: Has anyone had a problem where PHP created to many open files and crashed apache? B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- This email was sent with Ximian Evolution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and apache path...
On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: is there a unix like ~/ , to access to root directory of my site Does $_SERVER['DOCUMENT_ROOT'] help? Whenever you have a question like this, run phpinfo() and see what's there which produces the variable you're looking for. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache
No. Only you. :-) Platform? Environment? Configuration information? ..mike.. On Tue, 2002-07-02 at 11:01, B i g D o g wrote: Has anyone had a problem where PHP created to many open files and crashed apache? B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache
Sorry bro...doing to many things at once. Apache 1.3.23 Linux 7.2 PHP 4.1.2 Configuration: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-sybase-ct=/sybase --with-mysql' '--enable-exif --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/local/lib --with-zlib --with-config-file-path=/etc --with-freetype-dir=/usr/local/lib My webserver keeps crashing: error log entry [Tue Jul 2 15:12:07 2002] [error] [client 164.214.4.59] (24)Too many open files I am just wondering if this a php issue or something else... B i g D o G - Original Message - From: Michael Sweeney [EMAIL PROTECTED] To: B i g D o g [EMAIL PROTECTED] Cc: PHP GEN [EMAIL PROTECTED] Sent: Tuesday, July 02, 2002 12:04 PM Subject: Re: [PHP] PHP and Apache No. Only you. :-) Platform? Environment? Configuration information? ..mike.. On Tue, 2002-07-02 at 11:01, B i g D o g wrote: Has anyone had a problem where PHP created to many open files and crashed apache? B i g D o g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and apache path...
Analysis Solutions wrote: On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: is there a unix like ~/ , to access to root directory of my site Does $_SERVER['DOCUMENT_ROOT'] help? Whenever you have a question like this, run phpinfo() and see what's there which produces the variable you're looking for. --Dan Do you advice me to use $_SERVER['DOCUMENT_ROOT'] . remaining_path/ in all my files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and apache path...
On Tue, Jul 02, 2002 at 09:55:13PM +0200, Nightshade wrote: Do you advice me to use $_SERVER['DOCUMENT_ROOT'] . remaining_path/ in all my files? I use relative paths in most circumstances. Makes things easier to move between my development machine and the actual web servers. Enjoy, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and apache path...
Analysis Solutions wrote: On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: is there a unix like ~/ , to access to root directory of my site Does $_SERVER['DOCUMENT_ROOT'] help? Whenever you have a question like this, run phpinfo() and see what's there which produces the variable you're looking for. --Dan Sorry again... Document root doensn't solve my problem... the var contain /var/www/html instead of /var/www/html/mysite maybe I should set something up? Any solution? tnx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and apache path...
On Tue, Jul 02, 2002 at 10:34:32PM +0200, Nightshade wrote: Analysis Solutions wrote: Document root doensn't solve my problem... ... snip ... Any solution? Read and heed what I already said: Whenever you have a question like this, run phpinfo() and see what's there which produces the variable you're looking for. If that doesn't have what you're looking for, you need to craft your own solution. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php and apache path...
In your config file (or at the top of each page) you should establish what your document root is: $docroot = /usr/home/sitename/;# or whatever Then do something like include({$docroot}inc_dir/file.inc); Or maybe you specify an include directory in your config: $incdir = /usr/home/sitename/inc/;# or whatever Then do something like include({$incdir}file.inc); Or maybe write a small function that allows you to do it all transparently... maybe something like myinclude('file.inc'). As Dan has pointed out, the other option would be to use $_SERVER['DOCUMENT_ROOT']: $docroot = $_SERVER['DOCUMENT_ROOT']; include({$docroot}myfile.inc); I don't believe it can be done with ~/ or ./ or something... haven't found it yet!! Justin French on 03/07/02 1:34 AM, Analysis Solutions ([EMAIL PROTECTED]) wrote: On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: is there a unix like ~/ , to access to root directory of my site Does $_SERVER['DOCUMENT_ROOT'] help? Whenever you have a question like this, run phpinfo() and see what's there which produces the variable you're looking for. --Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP on Apache 2.0 -- Does it work?
Thanks for the info. Apache 1.3.24 isn't a bad release to be stuck with. :) I just wanted to be a little bit on the bleeding edge. Regards, Steve Tyler Longren [EMAIL PROTECTED] wrote in message 004001c1ddf3$13d82b90$0101a8c0@nightengale">news:004001c1ddf3$13d82b90$0101a8c0@nightengale... Well, php 4.1.2 for windows probably wasn't compiled to work with apache 2. Apache 2 has changed too much for the php developers to keep on top of it. If you were using unix/linux, you could compile php to work with apache 2, but since you're using Windows, you're stuck with using Apache 1.3.24 until the php group releases a new version for Apache 2. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP on Apache 2.0 -- Does it work?
Well, php 4.1.2 for windows probably wasn't compiled to work with apache 2. Apache 2 has changed too much for the php developers to keep on top of it. If you were using unix/linux, you could compile php to work with apache 2, but since you're using Windows, you're stuck with using Apache 1.3.24 until the php group releases a new version for Apache 2. ;-) Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Steve Magruder, D2 Director [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 12:52 PM Subject: [PHP] PHP on Apache 2.0 -- Does it work? Hello, I'm currently running PHP 1.1.2 on Apache 1.3.24/Win2K in SAPI mode (and this configuration has run incredibly well since last summer, albeit with changing PHP and Apache sub-versions). I couldn't find any info at php.net that indicated whether the current or the next version of PHP (1.2.x) will successfully run on Apache 2.0 (just GA'd). Any info on this will be greatly appreciated. Regards, Steve -- 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 Win32
Yes, you have got a few thing mixed up, to be exact DSO and CGI The DSO module containing the PHP engine is loaded into Apache, and therefore it doesn't the CGI version (phpexe) anymore So 'ScriptAlias' is only needed for CGI installations, and you don't need the 'Directory' part either All you need besides 'AddModule' to load the module, is a specification of what file extensions (php) should be run through PHP This can be done with 'AddType', for example: AddType application/x-httpd-php phtml php AddType application/x-httpd-php-source phps bvr [Fri Mar 01 13:30:46 2002] [error] [client 127001] couldn't spawn child process: c:/program files/apache group/apache/htdocs/php/testphp Here is the relevant lines in httpdconf: --Snipet LoadModule php4_module modules/php4apachedll AddModule mod_php4c ScriptAlias /php/ C:/Program Files/Apache Group/Apache/htdocs/php/ Directory C:/Program Files/Apache Group/Apache/htdocs/php AllowOverride None Options None Order allow,deny Allow from all /Directory I suspect that there is an error there somewhere, but can't figure out what Regards Gordon -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP] PHP and Apache authorization: how to logout. Help!
I read somewhere that if you type an underscore it clears authentication info. I haven't tried it and it seems obscure but its worth a try! LJ Frederick L. Steinkopf [EMAIL PROTECTED] wrote in message 018201c1ac67$c4d9c6a0$851a88ac@frederis">news:018201c1ac67$c4d9c6a0$851a88ac@frederis... While I've never done this before, couldn't you use a session and have session variables tied to the user name and password and then have the logout function kill the session? - Original Message - From: Rodolfo Gonzalez [EMAIL PROTECTED] To: Matthew Walker [EMAIL PROTECTED] Cc: Aras Kucinskas [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 8:26 PM Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! On Fri, 1 Feb 2002, Matthew Walker wrote: Does anyone have the answer for this question? I need it too... As I learnt before, it's not possible without closing the user's browser. My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. -- 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 authorization: how to logout. Help!
On Fri, 1 Feb 2002, Matthew Walker wrote: Does anyone have the answer for this question? I need it too... As I learnt before, it's not possible without closing the user's browser. My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache authorization: how to logout. Help!
While I've never done this before, couldn't you use a session and have session variables tied to the user name and password and then have the logout function kill the session? - Original Message - From: Rodolfo Gonzalez [EMAIL PROTECTED] To: Matthew Walker [EMAIL PROTECTED] Cc: Aras Kucinskas [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 8:26 PM Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! On Fri, 1 Feb 2002, Matthew Walker wrote: Does anyone have the answer for this question? I need it too... As I learnt before, it's not possible without closing the user's browser. My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. -- 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 authorization: how to logout. Help!
Does anyone have the answer for this question? I need it too... Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apache authorization: how to logout. Help! My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. What to do? HTTP header... unset $PHP_AUTH_USER ... Any suggestions Sorry for my English :) Aras -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP and Apache authorization: how to logout. Help!
I've done some investigating on my own. There is no way to do this. Period. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Matthew Walker Sent: Friday, February 01, 2002 3:37 PM To: Aras Kucinskas; [EMAIL PROTECTED] Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! Does anyone have the answer for this question? I need it too... Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apache authorization: how to logout. Help! My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. What to do? HTTP header... unset $PHP_AUTH_USER ... Any suggestions Sorry for my English :) Aras -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP and Apache authorization: how to logout. Help!
Even with a javascript function opening a new window and closing the old? -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:42 PM To: Aras Kucinskas; [EMAIL PROTECTED] Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! I've done some investigating on my own. There is no way to do this. Period. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Matthew Walker Sent: Friday, February 01, 2002 3:37 PM To: Aras Kucinskas; [EMAIL PROTECTED] Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! Does anyone have the answer for this question? I need it too... Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apache authorization: how to logout. Help! My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. What to do? HTTP header... unset $PHP_AUTH_USER ... Any suggestions Sorry for my English :) Aras -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP and Apache authorization: how to logout. Help!
The entire browser has to close down to clear the auth data. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Lazor, Ed [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 4:41 PM To: Matthew Walker; Aras Kucinskas; [EMAIL PROTECTED] Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! Even with a javascript function opening a new window and closing the old? -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:42 PM To: Aras Kucinskas; [EMAIL PROTECTED] Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! I've done some investigating on my own. There is no way to do this. Period. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Matthew Walker Sent: Friday, February 01, 2002 3:37 PM To: Aras Kucinskas; [EMAIL PROTECTED] Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! Does anyone have the answer for this question? I need it too... Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apache authorization: how to logout. Help! My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. What to do? HTTP header... unset $PHP_AUTH_USER ... Any suggestions Sorry for my English :) Aras -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP and Apache authorization: how to logout. Help!
At 03:41 PM 2/1/02 -0800, Lazor, Ed wrote: Even with a javascript function opening a new window and closing the old? -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:42 PM I've done some investigating on my own. There is no way to do this. Period. It's not QUITE as impossible as this, but nearly. You can give the browser a new challenge, and hope that it will clear the old username/password information that it's memorizing for the session. But I have found that certain combinations in certain browsers can subvert any such techniques. Thus, only quitting the browser entirely will force the browser to forget the authentication information. HOWEVER, certain users with IE 5 on the Mac have reliably reported that even quitting the browser doesn't work for them, but they instead have to restart their machines. (The HTTP specification mentions nothing about logout functionality.) Thus, if logging out is important to your application, then using browser-based authentication is not an acceptable solution. You'll have to use session management and build your own login screen. (Or, of course, reuse an existing one from one of the many good public libraries.) - Ken [EMAIL PROTECTED] -Original Message- From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apache authorization: how to logout. Help! My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. What to do? HTTP header... unset $PHP_AUTH_USER ... Any suggestions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP 4.1.1 + Apache 2.0.30 Ouput Filter....
Ok. I fixed it. I just had my filters jacked up. After fixing them using \.php instead of *.php, I was then calling the wrong page and getting a 404, plus the browser I was using had cached the content-type and was screwing everything up. After just shutting down my browsers, dumping cache, resetting apache, rechecking my filters, everything is fine. Thanks to anyone who was thinking. On Wed, 2002-01-02 at 15:35, Austin Gonyou wrote: The following URL works, but then the next one doesn't. Can someone offer some advice on this? http://digitalroadkill.net:8080/ works. index.php is happy and the output filters work. http://digitalroadkill.net:8080/Galleries/ does not work. It tries to get the file as though it were not understood by the output filter. I'm using the following for the OuputFilter lines in my httpd.conf: # #For PHP to work AddType application/x-httpd-php .php .html FilesMatch *.php SetInputFilter php SetOutputFilter php /FilesMatch BTW, FilesMatch *.php,*.html doesn't seem to work anymore. That's what I used to use, and everything was hunky dory. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
Re: [PHP] PHP and Apache
I was wondering if any of you had a problem compiling Apache 1.3.20 with mod_php4? Because I can compile, make, make install for redhat 7.1 for php 4.0.6. When I run my configure script for apache i have --activate-module=src/modules/php4/libmodphp.a as one of the lines in the script. I run my script and everything works fine. Then I try to run make and i get some errors when it gets to the php part. Here's what it says: This is a FAQ and a big fat note in the INSTALL file as well. It is supposed to be: --activate-module=src/modules/php4/libphp4.a -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP and Apache
yeah i've tried that too and i still get the same error(s) From: Rasmus Lerdorf [EMAIL PROTECTED] To: Jay Paulson [EMAIL PROTECTED] CC: PHP [EMAIL PROTECTED] Subject: Re: [PHP] PHP and Apache Date: Mon, 13 Aug 2001 12:07:39 -0700 (PDT) I was wondering if any of you had a problem compiling Apache 1.3.20 with mod_php4? Because I can compile, make, make install for redhat 7.1 for php 4.0.6. When I run my configure script for apache i have --activate-module=src/modules/php4/libmodphp.a as one of the lines in the script. I run my script and everything works fine. Then I try to run make and i get some errors when it gets to the php part. Here's what it says: This is a FAQ and a big fat note in the INSTALL file as well. It is supposed to be: --activate-module=src/modules/php4/libphp4.a -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP and Apache
Then you didn't follow the steps in the INSTALL file exactly. Go back and start over. This stuff has been tested thousands of times. It works. -Rasmus On Mon, 13 Aug 2001, Jay Paulson wrote: yeah i've tried that too and i still get the same error(s) From: Rasmus Lerdorf [EMAIL PROTECTED] To: Jay Paulson [EMAIL PROTECTED] CC: PHP [EMAIL PROTECTED] Subject: Re: [PHP] PHP and Apache Date: Mon, 13 Aug 2001 12:07:39 -0700 (PDT) I was wondering if any of you had a problem compiling Apache 1.3.20 with mod_php4? Because I can compile, make, make install for redhat 7.1 for php 4.0.6. When I run my configure script for apache i have --activate-module=src/modules/php4/libmodphp.a as one of the lines in the script. I run my script and everything works fine. Then I try to run make and i get some errors when it gets to the php part. Here's what it says: This is a FAQ and a big fat note in the INSTALL file as well. It is supposed to be: --activate-module=src/modules/php4/libphp4.a -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP and Apache on OS X insight?
Hi Michael, I run an OS X server with Apache, PHP, and MySQL. We have mostly Apple's in the office, with a few pc's scattered around. What reasons do you have for going with a Mac. I'll tell you this: its easier to deal with linux/unix as far as installation, upgrading, etc. However, there is an increasing amount of support for OS X Server out there. Also, you do mean OS X Server, and not OS X, correct? Jack -Original Message- From: Michael J. Seely [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 8:30 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apache on OS X insight? Hello, I'm getting ready to buy OS X and try to setup Apache with PHP. Anyone have any words of wisdom. Everything I've seen so far make it seem like a hot setup. Is it worth getting OS X server? Thanks Much -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Michael Seely 408-777-9949 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP as apache module and security.
Hi, What do you think about the following configuration: 1) safe-mode on : this ensures that a php script can read only files that are owned by the same Unix user on the machine; then just check that people having a right to use php and mysql on your box have all a different corresponding Unix user. 2) open-basedir : put this parameter for each php directory to this directory; then the scripts cannot access files that are elsewhere on the server In Apache httpd.conf it would be like: Directory /path-to-a-php-directory AddType application/x-httpd-php .php .php4 AddType application/x-httpd-php-source .phps php_admin_value open_basedir '/path-to-a-php-directory' /Directory Has someone tested it ? Do you see a problem in it ? Estelle Andrzej Swedrzynski [EMAIL PROTECTED] a écrit dans le message news: [EMAIL PROTECTED] Hello! Recently someone asked how to ensure that no one will read pas sword from php file. The only response I noticed was to create group and add apache user (often nobody) to that group. I consi dered this and I can not see what would stop other users from writing php script (run also as nobody) which reads filesystem with permissions of apache? Is there a method of making php as module really secure? Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP as apache module and security.
On Sun, 6 May 2001, Estelle Martin wrote: What do you think about the following configuration: 1) safe-mode on : this ensures that a php script can read only files that are owned by the same Unix user on the machine; then just check that people having a right to use php and mysql on your box have all a different corresponding Unix user. I can not use it because I need to create files dynamically and they will have ,,nobody'' as an user. Further executing scripts have no way to read those files. 2) open-basedir : put this parameter for each php directory to this directory; then the scripts cannot access files that are elsewhere on the server In Apache httpd.conf it would be like: Directory /path-to-a-php-directory AddType application/x-httpd-php .php .php4 AddType application/x-httpd-php-source .phps php_admin_value open_basedir '/path-to-a-php-directory' /Directory Has someone tested it ? Do you see a problem in it ? I haven't tested it, however it looks nice and I'll talk to my server's owner about it. There is however one bad feature of this method, the administroation. For every user and every application administrator has to create an entry in httpd.conf. Anyway it's his/her problem... Thanks for suggestions! Regards, Andrzej -- http://kokosz.horyzont.net http://www.earthdawn.pl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP for Apache 2.0
I've got PHP up and running partially under Apache 2.0 quite some time ago, however despite the sweetness of Apache 2, this is probably not something you want to do. Looking forward to PHP coming out more fully for Apache 2.0, if there is anything we can do to help it along I'm all ears. August - Original Message - From: "Alexander Wagner" [EMAIL PROTECTED] Newsgroups: php.general Sent: Saturday, April 14, 2001 11:07 AM Subject: Re: [PHP] PHP for Apache 2.0 Patrick Dunford wrote: According to Apache, modules made for Apache 1.3 will not work as-is in 2.0 due to changes in the API. Is a version of PHP 4 for Apache 2.0 coming out? Try the configure-option --with-apxs2 instead of --with-apxs and it should work with Apache 2. PHP 4 supports far more than one Webserver-API. regards Wagner -- 'When the computer industry is at a low, beer drinking is at a high.' Jon 'maddog' Hall said. By combining both industries into a single course you can make sure you always have a job. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP for Apache 2.0
Patrick Dunford wrote: According to Apache, modules made for Apache 1.3 will not work as-is in 2.0 due to changes in the API. Is a version of PHP 4 for Apache 2.0 coming out? Try the configure-option --with-apxs2 instead of --with-apxs and it should work with Apache 2. PHP 4 supports far more than one Webserver-API. regards Wagner -- 'When the computer industry is at a low, beer drinking is at a high.' Jon 'maddog' Hall said. By combining both industries into a single course you can make sure you always have a job. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] php and apache protected directories
Yes, try lib cURL it supports authentification and even SSL. http://www.php.net/manual/en/ref.curl.php Mike -Original Message- From: Marius David [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 5:33 PM To: [EMAIL PROTECTED] Subject: [PHP] php and apache protected directories I want to open a html file from a php script. The problem is that the html file is located in a password protected directory on an apache web server. I know the user/password for that directory and I want the php script to handle the authentification automaticly. Is there a way to acomplish this ? Thank you, Marius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] (PHP+Linux+Apache+MySQL)+(Windows+Explorer)
On Thu, 18 Jan 2001, Andrs de la Varga wrote: Can I have (PHP+Linux+Apache+MySQL)+(Windows+Explorer) in the same machine to develope stand alone? Andrs de la Varga http://www.vmware.com/ -- Ignacio Vazquez-Abrams [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]