[PHP] Apache2 and cli return diferent values on glob function
Hello everyone, i am working on a php script and found out that the glob function is not working properly on the apache2 sapi, is working just fine on the cli version, i try with php 5.2.3, 5.2.5 y 5.2.6RC5. also try the cli version with the www-data user (the one is running the apache) and it get the same result, any one can give me a hint about this problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] suse php apache2 sessions problem
Dear All, I'm setting up a development server (SuSe 9.1 x86_64, apache2, php 4)and I'm having a weird issue with php 4 not recognizing the start_session function. I've loaded the module with the php.ini file: extension=session.so I've installed the rpm for php sessions and frankly I'm dumbfounded as to why my phpinfo() is still not even listing sessions as a modules??! Any suggestions would be greatly appreciated. TIA! -- Paul Nowosielski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache2 PHP Downloadin Code
Hello everyone, I'm having some problems with one of our servers. Recently Plesk overwrote our configuration file, and I'm trying to get the thing back online. To make a long story short, I've got PHP working with http, but now that I've got the https virtual host set up, php doesn't work with it. Instead apache just sends a file download request to the client, so I can download the entire source code, instead of viewing the results from PHP. Has anyone run into an issue like this? It's just so odd that the HTTP virtual host works just fine, but the HTTPS virtual host does not. I've got all the appropriate: LoadModule php4_module modules/libphp4.so AddHandler php-script php AddType application/x-httpd-php .php .php4 .php3 .phtml .inc DirectoryIndex index.php index.php3 in the php.conf file. I don't think I have to specify to turn the PHP engine on in the HTTPS virtual host, do I? Thanks for any help, Ray Hauge -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache2 x FastCGI x opcode cache
Hi! I have some questions about setting up Apache2/worker and using PHP via FastCGI and using an op-code accelerator. Namely, how do I not confuse the op-code accelerator into re-creating several caches in several memory segments. The webserver in worker mode automatically create (for example) 5 processes that each run many threads. The FastCGI module runs, say 50 processes, and then the php default of PHP_FCGI_CHILDREN is 8. So what does this all add up to? And how does the accelerator group things (Zend ZPS, APC, eAccelerator)? I am not using suexec. All for one website, not a mass-hosting situation. Thanks! -steve-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache2 x FastCGI x opcode cache
Hi! I have some questions about setting up Apache2/worker and using PHP via FastCGI and using an op-code accelerator. Namely, how do I not confuse the op-code accelerator into re-creating several caches in several memory segments. The webserver in worker mode automatically create (for example) 5 processes that each run many threads. The FastCGI module runs, say 50 processes, and then the php default of PHP_FCGI_CHILDREN is 8. So what does this all add up to? And how does the accelerator group things (Zend ZPS, APC, eAccelerator)? I am not using suexec. All for one website, not a mass-hosting situation. Thanks! -steve-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache2/php file manager: security suggestions
Hi, I've written a web based file manager using PHP and running on an apache 2 server. Before putting it on a live webserver i'd like to get some security suggestions. Desired Goals: 1. Read, write text files from a web browser. 2. Files should be owned by me so as not to be readable\writable to other webserver users or their scripts. Will running in safe mode allow my file manager to read\write files as "me" and not as "apache" or the UID of apache? If i keep my data directory outside of apache's document root, will this prevent remote viewing of it? If i keep my PHP scripts out of document root, will they be hidden from remote viewers? My likely webtree directory strutcure is this: Document Root: /var/www/html/myWebsite PHP Scripts: /var/www/php/myWebsite My data the file manager will access: /var/www/data/myWebsite All three directories will be owned by my user id. Apache will be configured to run scripts from the scripts dir. The data dir will be opened with open_baseDir. I will set up .htaccess on the data directory. Combine this with safe mode, and will i have the desired effect? Thanks, -brett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2 html/php dir-where..?
Jason Wong wrote: On Tuesday 12 April 2005 16:09, Mark Sargent wrote: I've gone and uninstalled the pre-installed httpd/php via yum on Fedora3 and re-installed Apache/PHP via source. Apache is now installed at /usr/local/apache2. I want to know, where is the dir for html/php files. B4 it was /var/www/html. What is it now..? Cheers. Look in "/usr/local/apache2/conf/httpd.conf" for "DocumentRoot". Hi All, ok, that's all cool now..changed to the dir where my files are. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2 html/php dir-where..?
On Tuesday 12 April 2005 16:09, Mark Sargent wrote: > I've gone and uninstalled the pre-installed httpd/php via yum on > Fedora3 and re-installed Apache/PHP via source. Apache is now installed > at /usr/local/apache2. I want to know, where is the dir for html/php > files. B4 it was /var/www/html. What is it now..? Cheers. Look in "/usr/local/apache2/conf/httpd.conf" for "DocumentRoot". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache2 html/php dir-where..?
Hi All, I've gone and uninstalled the pre-installed httpd/php via yum on Fedora3 and re-installed Apache/PHP via source. Apache is now installed at /usr/local/apache2. I want to know, where is the dir for html/php files. B4 it was /var/www/html. What is it now..? Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache2 & php stability
actually any distro with a 2.6 kernel should already have it. You can check by doing a getconf GNU_LIBPTHREAD_VERSION if it says NPTL .xx you have it... Greg Donald wrote: On Mon, 29 Nov 2004 16:21:22 -0600, Anthony Gauda <[EMAIL PROTECTED]> wrote: The same load under apache 2 runs under 300 threads. With Linux 2.6 threads are very lightweight and in terms of Are distros shipping with NPTL already? I saw a Gentoo thread on how to convert a system to use NPTL but peeps were having lots of glibc issues at the time. :( I'm using 2.6 in a couple places, desktops and dev servers, but have not tried NPTL yet. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache2 & php stability
On Mon, 29 Nov 2004 16:21:22 -0600, Anthony Gauda <[EMAIL PROTECTED]> wrote: > The same load under apache 2 runs under 300 > threads. With Linux 2.6 threads are very lightweight and in terms of Are distros shipping with NPTL already? I saw a Gentoo thread on how to convert a system to use NPTL but peeps were having lots of glibc issues at the time. :( I'm using 2.6 in a couple places, desktops and dev servers, but have not tried NPTL yet. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache2 & php stability
Apache2 is multithreaded and works better under higher loads with a smaller memory footprint. If you have 300 simul connections under apache 1.3 you need 300 forks. The same load under apache 2 runs under 300 threads. With Linux 2.6 threads are very lightweight and in terms of system resources very inexpensive to start. Under a high load spike Apache 2 would, in theory, respond better. Greg Donald wrote: On Mon, 29 Nov 2004 15:55:31 -0600, Anthony Gauda <[EMAIL PROTECTED]> wrote: I have read at various places on the web that Apache 2 and PHP running as a module isn't recommended for production sites. Does anyone here run PHP 4/5 and Apache2 in a high load production environment with success? If so, whats your configuration? I don't have any experiences to share with you about PHP5 and Apache2 except that I'm using them on a server at home so I can play with Mojavi 3. But I got a question for you.. What does Apache2 have that you need feature-wise that Apache doesn't have already? Just curious is all. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache2 & php stability
On Mon, 29 Nov 2004 15:55:31 -0600, Anthony Gauda <[EMAIL PROTECTED]> wrote: > I have read at various places on the web that Apache 2 and PHP running > as a module isn't recommended for production sites. Does anyone here run > PHP 4/5 and Apache2 in a high load production environment with success? > If so, whats your configuration? I don't have any experiences to share with you about PHP5 and Apache2 except that I'm using them on a server at home so I can play with Mojavi 3. But I got a question for you.. What does Apache2 have that you need feature-wise that Apache doesn't have already? Just curious is all. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache2 & php stability
I have read at various places on the web that Apache 2 and PHP running as a module isn't recommended for production sites. Does anyone here run PHP 4/5 and Apache2 in a high load production environment with success? If so, whats your configuration? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache2 + PHP problem
Marco Stranieri Net.Software Division NETHOUSE S.p.A. C.so Re Umberto I, 57 - 10128 Torino - Italy Tel. +39-011-227.227 - Fax +39-011-227.228 http://www.nethouse.it - mailto:[EMAIL PROTECTED] Il presente messaggio non costituisce un impegno contrattuale tra NETHOUSE S.p.A. ed il destinatario. Le opinioni ivi espresse sono quelle dell'autore. NETHOUSE S.p.A. non assume alcuna responsabilità riguardo al contenuto del presente messaggio. Ai sensi dell’art. 13 del D.Lgs 30/06/2003 n 196 si precisa che le informazioni contenute nel presente messaggio sono riservate ad uso esclusivo del destinatario. Il contenuto e gli allegati sono da considerarsi di natura confidenziale. Nel caso abbiate ricevuto il presente messaggio per errore, chiediamo cortesemente di telefonare immediatamente al numero 011.227.227. Da: Marco Stranieri Inviato: venerdì 22 ottobre 2004 9.39 A: '[EMAIL PROTECTED]' Oggetto: Apache2 + PHP problem Hi, I’ve a problem when I start apaci on my server: [EMAIL PROTECTED] bin]$ ./apachectl start Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms The config param are following: cd /usr/local/httpd ./configure --prefix=/usr/local/apache2 --enable-module=so --enable-cache --enable-disk-cache --enable-mem-cache --enable-mime-magic --enable-expires --enable-headers --enable-usertrack --enable-unique-id --enable-ssl --enable-http --enable-info --disable-cgi --enable-vhost-alias --enable-shared=max --enable-rule=SHARED_CORE; make; make install cd /usr/local/php ./configure --prefix=/usr/local/php --with-apache2=/usr/local/httpd --without-mysql --with-xml --with-pgsql --with-zlib-dir=/usr/lib/ --enable-sysvshm=yes --enable-sysvsem=yes --enable-track-vars --enable-force-cgi-redirect --enable-safe-mode --enable-magic-quotes --disable-ipv6 --enable-libgcc --enable-bcmath --enable-calendar --enable-ftp --enable-sockets --with-pgsql --with-pear; make; make install cp php.ini-dist /usr/local/lib/php.ini If I make --with-apxs2=/usr/local/apache2/bin/apxs the PHP config it gives back an error. How I can do it? Best redgards. smime.p7s Description: S/MIME cryptographic signature
[PHP] Apache2 + PHP problem
Hi, I’ve a problem when I start apaci on my server: [EMAIL PROTECTED] bin]$ ./apachectl start Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms The config param are following: cd /usr/local/httpd ./configure --prefix=/usr/local/apache2 --enable-module=so --enable-cache --enable-disk-cache --enable-mem-cache --enable-mime-magic --enable-expires --enable-headers --enable-usertrack --enable-unique-id --enable-ssl --enable-http --enable-info --disable-cgi --enable-vhost-alias --enable-shared=max --enable-rule=SHARED_CORE; make; make install cd /usr/local/php ./configure --prefix=/usr/local/php --with-apache2=/usr/local/httpd --without-mysql --with-xml --with-pgsql --with-zlib-dir=/usr/lib/ --enable-sysvshm=yes --enable-sysvsem=yes --enable-track-vars --enable-force-cgi-redirect --enable-safe-mode --enable-magic-quotes --disable-ipv6 --enable-libgcc --enable-bcmath --enable-calendar --enable-ftp --enable-sockets --with-pgsql --with-pear; make; make install cp php.ini-dist /usr/local/lib/php.ini If I make --with-apxs2=/usr/local/apache2/bin/apxs the PHP config it gives back an error. How I can do it? Best redgards. smime.p7s Description: S/MIME cryptographic signature
Re: [PHP] Apache2.x and php4.x
Burhan Khalid wrote: Merlin wrote: Hi there, I am just about to install a new server and I was wondering if php now workes fine with apache2.x. I remember that there have been problems some while ago. Is this fixed and is it good enough for production servers? From http://www.php.net/manual/en/install.apache2.php : BUT the third line says:- "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows." Not that I found until after I had already got a configured system running :) Currently been running both PHP4.3.4 and PHP5RC1 24/7 on W2k with Apache2.0.48 and Firebird 1.5. No crashes in last two weeks and every error can be identified. So I don't think I will be changing to Apache1 any time soon ;) On of the packages running is an ibWebAdmin demo and that is starting to see quite heavy use. http://ibWebAdmin.lsces.co.uk -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2.x and php4.x
Merlin wrote: Hi there, I am just about to install a new server and I was wondering if php now workes fine with apache2.x. I remember that there have been problems some while ago. Is this fixed and is it good enough for production servers? From http://www.php.net/manual/en/install.apache2.php : The following versions of PHP are known to work with the most recent version of Apache 2.0: * PHP 4.3.0 or later available at /downloads.php. * the latest stable development version. Get the source code http://snaps.php.net/php4-latest.tar.gz or download binaries for Windows http://snaps.php.net/win32/php4-win32-latest.zip. * a prerelease version downloadable from http://qa.php.net/. * you have always the option to obtain PHP through anonymous CVS. These versions of PHP are compatible to Apache 2.0.40 and later. Note: Apache 2.0 SAPI-support started with PHP 4.2.0. PHP 4.2.3 works with Apache 2.0.39, don't use any other version of Apache with PHP 4.2.3. However, the recommended setup is to use PHP 4.3.0 or later with the most recent version of Apache2. All mentioned versions of PHP will work still with Apache 1.3.x. I think that about answers your question :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache2.x and php4.x
Hi there, I am just about to install a new server and I was wondering if php now workes fine with apache2.x. I remember that there have been problems some while ago. Is this fixed and is it good enough for production servers? Thanx, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache2 hanging
I'm using php 4.3.4 as a loadable module for Apache2 on a Redhat box. It works for the most part except that for about every 5th page that is requested, the server hangs. It always finishes the process and the page but it hangs for like 5 minutes. Is this a known error? Does anyone know how to fix this? Regards, Bryan Simmons Network Systems Engineer General Physics 410.379.3710 [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache2 with php 432
is it recommended to upgrade my production server from apache_1.3.28 to apache 2 I use with the first one php 432.. and it work like a charm!! But I tried to compile apache 2 with mysql and php on redhat 9 on a test server , but still have errors , and not managed ,, any suggestion? Best regards Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache2 + php 4.3.2 on solaris not starting
Hi, I have apache 2.0.47 + php 4.3.2 + mod_jk2 2.0.2 installed on a Solaris 9 box. php and mod_jk2 are both DSO modules. Yesterday, everything worked fine. Today I tried to add some virtual hosts to httpd.conf and when I tried to restart apache, everything blew up. Apache would not start, and it does not log anything, even with the log level set to debug. I was noticing some other issues (that turned out to be unrelated), so I rebooted the machine. Upon reboot, Apache is up and running again. I go back to the virtual host stuff, restart apache, and again it is not starting. I've removed all the virtual host stuff from the config file and checked the syn apachectl -e debugshows: [Thu Aug 07 16:30:26 2003] [debug] mod_so.c(290): loaded module php4_module [Thu Aug 07 16:30:26 2003] [debug] mod_so.c(290): loaded module jk2_module [Thu Aug 07 16:30:26 2003] [debug] ../../server/apache2/mod_jk2.c(344): mod_jk Create config for default server (null) Now, after much searching, I've discovered that after I stop apache (with the php module), there's some shared memory that doesn't go away. Once I remove that, apache will start one process, but it's REALLY slow to connect to at first. bash-2.05# ipcs -p IPC status from as of Thu Aug 7 17:24:11 EDT 2003 T ID KEYMODEOWNERGROUP LSPID LRPID Message Queues: T ID KEYMODEOWNERGROUP CPID LPID Shared Memory: m 0 0x5e002392 --rw--- root root 301 301 m501 0x70efb188 --rw-r- rootother 5298 5329 Semaphores: s 0 0x1--ra-ra-ra- root root bash-2.05# ipcrm -m 501 bash-2.05# /etc/init.d/apache start bash-2.05# ps -ef |grep httpd root 5343 1 0 17:26:52 ?0:00 /usr/local/apache2/bin/httpd -k start root 5347 751 0 17:27:04 pts/50:00 grep httpd So, now I've got php configured with the following options and it's still not any better: Command './configure' '--with-oci8=/oracle/app/oracle/product/92' '--with-oracle=/oracle/app/oracle/product/92' '--with-zlib-dir=../zlib-1.1.4/' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-ldap=/portalapps/openldap' '--without-mysql' '--without-pear' '--enable-sysvshm' '--enable-sysvsem' '--enable-sysvmsg' '--enable-shmop' If I disable the php module apache will start up without a problem, however php is needed. I didn't have any luck with apache 1.3.27 and mod_jk2 or mod_jk, so I'm kind of stuck with apache2. At this point, the only thing I can think to do is write a script to remove that shared memory after I stop apache, but that won't solve the horrendous slowness when apache is restarted. I'd rather solve the problem without doing something kludgy like that. Can anyone help? Stacey Conrad Millersville University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Too all who are stuck with PHP/Apache2 under RH8
Just a quick reiteration of something I found that probably most people already know.. but since I went through the painstaking trouble of removing the PHP and Apache RPMs and building them from scratch (I hate building sources), I wanted to make sure this is out there. If you're having problems getting any PHP code to parse and you ususally use ... In the /etc/php.ini file change the short_open_tag variable to On That's all there is to it.. lol Also, you might wanna find the extention=mysql.so and uncomment that, since it's commented by default Credit goes out to the people who have previously posted this, but it's been a while since it's been said recently, I just thought I'd help out. --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2 & PHP4
Hello, I use the following in my VirtualHost example: DocumentRoot /a/b/c/d/ ServerName a.be SetOutputFilter PHP SetInputFilter PHP I don't have AddType's for .html. I also still got the following: AllowOverride All This was needed to make the AddType in .htaccess files work in apache 1.3 if i remember correctly. It's possible you only need a 'AllowOverride FileInfo' to make it work. This works without problems for me on RH8 with the apache/php from RH8. Kind regards, Dries Verachtert On Fri, 2002-12-20 at 10:32, Chase Urich wrote: > OK, so I've spent the last 2 or 3 hours looking on the net for this. > Can anyone tell me the proper way (with Apache 2.0.40) to instruct > apache to process .htm and .html files? > > I've tried: > In /etc/httpd/conf/httpd.conf :: > AddType application/x-httpd-php .php > AddType application/x-httpd-php .html > And also in /etc/httpd/conf.d/php.conf :: > AddType application/x-httpd-php .php > AddType application/x-httpd-php .html > > Neither appears to work or affect anything at all. I have also tried: > > SetOutputFilter PHP > SetInputFilter PHP > > ... in the php.conf file, but my guess is that this wouldn't work unless > something like the AddType points to PHP to begin with. > > Can anyone give me some ideas? I'm just fine with Apache 1.3, but RH8 > ships with Apache2 and I thought I'd try it ... > > Chase > > > -- > 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] Apache2 & PHP4
OK, so I've spent the last 2 or 3 hours looking on the net for this. Can anyone tell me the proper way (with Apache 2.0.40) to instruct apache to process .htm and .html files? I've tried: In /etc/httpd/conf/httpd.conf :: AddType application/x-httpd-php .php AddType application/x-httpd-php .html And also in /etc/httpd/conf.d/php.conf :: AddType application/x-httpd-php .php AddType application/x-httpd-php .html Neither appears to work or affect anything at all. I have also tried: SetOutputFilter PHP SetInputFilter PHP ... in the php.conf file, but my guess is that this wouldn't work unless something like the AddType points to PHP to begin with. Can anyone give me some ideas? I'm just fine with Apache 1.3, but RH8 ships with Apache2 and I thought I'd try it ... Chase -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2 and PHP4.2.3 - errors
I haven't tried php with apache 2 on linux yet, but the windows distribution of php has 2 dlls: php4apache.dll and php4apache2.dll; there's nothing in the documentation about the second dll whatsoever, neither any installation guide for Apache 2; the guide actually says using the php4apache.dll as a module, and obviously it didn't work. Looking around I found the second file and it works perfectly... there should be something like this in the linux distribution too. __ Ionut > PHP doesn't officially support Apache2 at this point. Go back to Apache1. > > On Thu, 3 Oct 2002, Chris Aitken wrote: > > > Hi all, > > > > I have recently upgraded to apache2 on my FreeBSD 4.6 box, and the upgrade > > worked well, the daemon was running and serving pages etc. So I installed > > the latest PHP build in my ports tree (4.2.3) and it compiled no problems, > > but when I added the required lines into my httpd.conf to make it run, I > > get the following error when I try and start apache > > > > # apachectl start > > Syntax error on line 273 of /usr/local/etc/apache2/httpd.conf: > > Cannot load /usr/local/libexec/apache2/libphp4.so into server: > > /usr/local/libexec/apache2/libphp4.so: Undefined symbol "pthread_getspecific" > > > > > > now line 273 of my httpd.conf file is > > LoadModule php4_modulelibexec/apache2/libphp4.so > > > > And that file exists, so I really dont know what the problem is. > > > > Any help on this would be greatly appreciated. > > > > > > > > Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2 and PHP4.2.3 - errors
PHP doesn't officially support Apache2 at this point. Go back to Apache1. On Thu, 3 Oct 2002, Chris Aitken wrote: > Hi all, > > I have recently upgraded to apache2 on my FreeBSD 4.6 box, and the upgrade > worked well, the daemon was running and serving pages etc. So I installed > the latest PHP build in my ports tree (4.2.3) and it compiled no problems, > but when I added the required lines into my httpd.conf to make it run, I > get the following error when I try and start apache > > # apachectl start > Syntax error on line 273 of /usr/local/etc/apache2/httpd.conf: > Cannot load /usr/local/libexec/apache2/libphp4.so into server: > /usr/local/libexec/apache2/libphp4.so: Undefined symbol "pthread_getspecific" > > > now line 273 of my httpd.conf file is > LoadModule php4_modulelibexec/apache2/libphp4.so > > And that file exists, so I really dont know what the problem is. > > Any help on this would be greatly appreciated. > > > > Chris > > > > -- > 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] Apache2 and PHP4.2.3 - errors
Hi all, I have recently upgraded to apache2 on my FreeBSD 4.6 box, and the upgrade worked well, the daemon was running and serving pages etc. So I installed the latest PHP build in my ports tree (4.2.3) and it compiled no problems, but when I added the required lines into my httpd.conf to make it run, I get the following error when I try and start apache # apachectl start Syntax error on line 273 of /usr/local/etc/apache2/httpd.conf: Cannot load /usr/local/libexec/apache2/libphp4.so into server: /usr/local/libexec/apache2/libphp4.so: Undefined symbol "pthread_getspecific" now line 273 of my httpd.conf file is LoadModule php4_modulelibexec/apache2/libphp4.so And that file exists, so I really dont know what the problem is. Any help on this would be greatly appreciated. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache2.x and php
You have it backwards. Apache 2.x can only have PHP as a shared module at this point, no static. -Rasmus On Tue, 1 Oct 2002, Anil Garg wrote: > Hi, > i came to know from someone that i can *not* make php a shared module in > apache 2.x .It works only in > 1.3x. > > If thats true can someone point me to some link saying the same. > > thanx and regards > anil > > > -- > 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] apache2.x and php
Hi, i came to know from someone that i can *not* make php a shared module in apache 2.x .It works only in 1.3x. If thats true can someone point me to some link saying the same. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2
>Upgraded to Apache2, and now most of my php scripts won't work. No error msg >att all, just that nothing happens. > >Guess I missed some standard security setting, got any clues to this newbie? What does phpinfo() say? What does "httpd -l" say? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2
It will be a while before Apache 2 is properly supported. Switch back to Apache 1.3.x for now. We are working on it and PHP 4.3 should be significantly better with Apache 2. -Rasmus On Fri, 16 Aug 2002, Björn Hilliges wrote: > Upgraded to Apache2, and now most of my php scripts won't work. No error msg > att all, just that nothing happens. > > Guess I missed some standard security setting, got any clues to this newbie? > > Thanks > Björn Hilliges, Sweden. > > > > -- > 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] Apache2
Upgraded to Apache2, and now most of my php scripts won't work. No error msg att all, just that nothing happens. Guess I missed some standard security setting, got any clues to this newbie? Thanks Björn Hilliges, Sweden. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HOWTO: ODBC-PHP-Apache2
Hello folks, Apologies for the cross-post, but I wanted to announce the publication of a new HOWTO on compiling ODBC support into PHP and Apache with the iODBC Driver Manager: It's available at the www.iodbc.org site in the left hand column. You may view the document directly at: http://www.iodbc.org/odbc-php-apache2.html Please provide feedback and comments! Best regards, Andrew Hill Director of Technology Evangelism - OpenLink Software What is Virtuoso? http://www.openlinksw.com/virtuoso/whatis.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache2
Hi, Yes, I have both 1.3.24 and 2.0.36 installed - both with the PHP4.2.0 mod compiled. You simply compile and install both servers and the compile modphp for each server (i.e. once with --with-apxs and once with --apxs2) abd that's all there is to it. I'm running FreeBSD 4.5 btw, but I don't see how how situation would require anything different. HTH Danny. - Original Message - From: "Frank Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 13, 2002 7:17 PM Subject: [PHP] Apache2 > All, > I've gotten some very good answers from the knowledgable > people on this list so I thought I would ask a question that I've been > wondering about and maybe other people have too. I'm running a Linux 7.2 > server with MySQL, Php 4.20 and Apache 1.3.24. I followed some instructions > and copied each into /usr/src and installed all three into /usr/local. I > used Apache 1.3.24 because I needed frontpage extensions. I'm now curious > about Apache 2.0.36. Can I have two installations of Apache both with > MySQL and php support? If so do I have to compile MySQL and PHP over again > for the second installion of Apache? I know I'll have to change the port > number on the second Apache installion. What I'm wondering is has anyone > done this and, if so, what steps you used to accomplish this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache2
All, I've gotten some very good answers from the knowledgable people on this list so I thought I would ask a question that I've been wondering about and maybe other people have too. I'm running a Linux 7.2 server with MySQL, Php 4.20 and Apache 1.3.24. I followed some instructions and copied each into /usr/src and installed all three into /usr/local. I used Apache 1.3.24 because I needed frontpage extensions. I'm now curious about Apache 2.0.36. Can I have two installations of Apache both with MySQL and php support? If so do I have to compile MySQL and PHP over again for the second installion of Apache? I know I'll have to change the port number on the second Apache installion. What I'm wondering is has anyone done this and, if so, what steps you used to accomplish this. TIA - Frank Frank Miller Computer Specialist and Webmaster Technology and Distance Education Texas A&M University-Texarkana 2600 North Robison Rd Texarkana, Texas 75501 Phone: 903-223-3156 Fax: 903-223-3139 Office: 165 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.360 / Virus Database: 199 - Release Date: 5/7/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache2/PHP: Undefined server variables
Hi, sorry if this is a dumb question (I think I've read the docs :) I 've just set up Apache-2.0.26-dev with php-4.0.8-dev both from CVS, and now when I try to access the server variables like: or I got "Undefined variable:" in the logs. The same is for: I played with php.ini with no effect. Could you please tell me if this happens due to misconfiguration of php/apache, or thats a known issue with Apache-2.0 and php? Also, under phpinfo() I cannot see any server variables at all, only those from the shell environment. Thanks a lot, Art. -- 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]