[PHP] configure/build question
I am building PHP 4.3.4 on RH Linux 9.0. When I look at the output of phpinfo() for the version that came with RH I see this param for mysql: '--with-mysql=shared,/usr' I ran configure using the same: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=shared,/usr Have tried it with, and without single quotes around the --with-mysql directive. I run the above configure command, run make, and then install, all apparently successful. Then I look at the phpinfo() output and see this as what it believes the configure command was: './configure' '--with-mysql' '--with-apxs2=/usr/local/apache2/bin/apxs' I don't see anything re 'shared,/usr' as I do for the previous RH default install of PHP 4.2.2? Any idea what that wouldn't show up? phpinfo() also shows the build date correctly (as today). TIA lk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Invalid Library??
On Linux RH 9.0 I built Apache 2.0.48 from source (to fix a problem I had with an earlier version). I also built PHP 4.3.4 using the following configuration directives: ./configure --with-apxs2=/usr/local/apache2/bin/apxs '--with-mysql=shared,/usr' Finally I installed MySQL 3.23.58 from an RPM. In the php.ini the extension_dir=/usr/lib/php4 and I copied in the mysql.so file created when built PHP. But when I run Apache I see the following in the error_log: PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'mysql.so' in Unknown on line 0 Is there anything obviously wrong with what I am doing here? Basically I need Apache, and MySQl, and PHP. But I can't seem to find a combination that will work together? Thanks in advance for any ideas on this. lk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Invalid Library??
Thank you! :) Doing a "make clean" solved the problem and now everything works. Re using Apache 2.x, yes I was just using this because it was what came with RH Linux 8.0 and 9.0. It is not a commercial server. However I will look into using 1.3.29. This was my first attempt at building Apache, PHP, etc. so am still learning. :) Thanks again!, lk On Wed, 26 Nov 2003, Rasmus Lerdorf wrote: > Your steps look ok. Try a "make clean" and rebuild your mysql.so and see > if that fixes it. If not, consider just compiling it in statically. Do > you have a requirement for a shared mysql.so for some reason? > > Also, note that Apache 2.x + PHP is still not a recommended platform for > PHP. If you use a threaded mpm (anything but the prefork mpm) you are > likely to run into issues under load. We still suggest using > Apache-1.3.29 for any sort of stable production server. The fact that > Redhat has decided to ship an unstable combination of software doesn't > mean that suddenly all threading problems have magically gone away. > > -Rasmus > > On Wed, 26 Nov 2003, xmg wrote: > > > > > On Linux RH 9.0 I built Apache 2.0.48 from source > > (to fix a problem I had with an earlier version). > > I also built PHP 4.3.4 using the following configuration > > directives: > > > > ./configure --with-apxs2=/usr/local/apache2/bin/apxs '--with-mysql=shared,/usr' > > > > Finally I installed MySQL 3.23.58 from an RPM. > > > > In the php.ini the extension_dir=/usr/lib/php4 > > and I copied in the mysql.so file created when > > built PHP. > > > > But when I run Apache I see the following in the > > error_log: > > > > PHP Warning: Unknown(): Invalid library (maybe not a PHP library) > > 'mysql.so' in Unknown on line 0 > > > > > > Is there anything obviously wrong with what I am > > doing here? Basically I need Apache, and MySQl, > > and PHP. But I can't seem to find a combination that > > will work together? > > > > Thanks in advance for any ideas on this. > > > > lk > > > > -- > > 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] Slightly OT Mysql question
On Mon, 31 May 2004, Dave Carrera wrote: > Hi List, > > Sorry for this question being slightly OT but its is to > due with my Php > script in a way. > > MySql has stopped adding rows since the db table hit 1mb... > > Anyone know why ? Do you check mysql_error and mysql_errno to see what errors are returned? lk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP on Apache 2.0.48
I know that use of PHP with Apache 2.x.x is discouraged. I use 1.3.29 for my main site. Currently I am doing some testing with SSL connections and because Apache 2.0.48 is already installed on my Redhat 8.0 server and configured with SSL I have been using that (for testing). All my testing is done using SSL (https://) connections. I have seen some weird behaviour and am curious if anyone else has seen something like this with PHP and Apache 2.x.x (the PHP version is 4.2.2, btw). I have a rather simple page where I fetch a number of rows from MySQL and put them in a two dimensional array - the first dimenstion corresponds to the row returned from MySQL and the other dimension holds the elements of the row. Later when displaying the actual html I loop through the array displaying each row in a in a table. Sometimes for no reason that I can yet discern it will stop before displaying all of the rows. If I look at the page source in the browser it just ends and the rest of the html is not displayed. It seems rather random. It doesn't stop in the sample place. Sometimes I get 2-3 rows, sometimes a lot more - no pattern that I can discern yet. I am certainly as capable of writing bugs as anyone else but can't find any so far. And like I said it more often than not displays everything correctly. For what its worth here is the MySQL code to load the array: $query = "select pub_id, name1, city, state, added from pubs2 " . "order by name1"; $result = mysql_query($query); $num_rows = mysql_num_rows($result); if ($result) { $rw = 0; while ($row = mysql_fetch_array($result, MYSQL_NUM)) { $pubs[$rw][0] = $row[0]; // pub_id $pubs[$rw][1] = $row[1]; // name1 $pubs[$rw][2] = $row[2]; // city $pubs[$rw][3] = $row[3]; // state $pubs[$rw][4] = $row[4]; // added $rw = $rw + 1; } mysql_free_result($result); mysql_close(); } Then I display it later (it gets a little 'ugly' displaying the rows cause it is wrapping in my email): "; else echo ""; echo "{$pubs[$i][1]}"; // name1 echo "{$pubs[$i][2]}"; // City echo "{$pubs[$i][3]}"; // State echo "{$pubs[$i][4]}"; // Added echo "\r\n"; } echo "( $rw records found )\r\n"; ?> // end code Again I think this is fairly simple code. I am certainly not trying to do anything tricky. I guess I will configure Apache 1.3.29 with SSL if don't come up with some explanation, but I was curious if anyone had seen such odd behaviour like this before (not displaying all of the page). Thanks in advance for your opinions and advice. lk www.theNewAgeSite.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using xp home
I don't know about running it on Windows XP, but on RH Linux I have had much better results using 1.3.29. RH Linux 8.0 comes with 2.0.48 as the default version but I finally downloaded and built the 1.3.29 version (as recommended by several here) and have had much better results. lk www.theNewAgeSite.com On Sun, 22 Feb 2004, danny cobbinah wrote: > is it better to use apache 1.3.29 or apache 2.0.48? > > i am having the worst trouble ever trying to get this thing to work > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] get_browser() - browscap.ini for Linux
On Wed, 10 Mar 2004, Shaunak Kashyap wrote: > I downloaded the file from www.GaryKeith.com and set up the php.ini entry to > point to it. Then I called get_browser() and it returned nothing. > > Once again, my configuration is as under: > > OS: Linux Red Hat Enterprise WS > PHP: 4.2.3 > Web server: Apache 1.3.29 > > Have you tried using PHP's get_browser function? If that worked for you, > could you please let me know what your system configuration is? > > Thanks, > > Shaunak The following code using get_browser() (in this case to detect Netscape version 4, or earlier) works for me. Don't know that it is an example of 'elegant' coding, but it does work. :) $browser = get_browser(); $isNS4 = false; if ($browser->browser == 'Netscape') { if ($browser->majorver <= 4) { $isNS4 = true; } } lk www.theNewAgeSite.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP5 with Apache 1.3.29
I am trying to build Apache 1.3.29 on Fedora to use with mod_ssl and PHP5. After having built this all with no apparent problems I see this error message in the Apache error_log on startup: [Mon Jun 6 06:32:21 2005] [warn] Loaded DSO libexec/libphp5.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) Ok, so I went back and changed the configuration for mod_ssl (mod_ssl-2.8.16-1.3.29) so that it would configure Apache to use the -DEAPI switch, e.g.: ./configure \ --with-apache=../apache_1.3.29 \ --with-ssl=../openssl-0.9.7c \ --prefix=/usr/local/apache \ --enable-module=so \ --disable-rule=EAPI That seemed to work ok, and when I make Apache I see lines like this for gcc so sure looks like the switch is being applied: gcc -c -I./os/unix -I./include -DLINUX=22 -DMOD_SSL=208116 -DUSE_HSREGEX -DEAPI `./apaci` modules.c Then I re-installed PHP5 and configured it again to use this Apache, but I am still seeing this warning in the startup log. So I was hoping that someone here perhaps has seen this error before and has a clue as what it is about? :) Thanks in advance, Lawrence Kennon www.theNewAgeSite.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php