Re: Which php??
Quoth Gary Kline on Thursday, 13 January 2011: I have saved a copy of the original config page and have some questions that I'll need for when I write up my readable tutorial page. -I don't think many of you know that for heading toward 7 years, I was the lead writer for a Q/A help page for newcomers to FreeBSD. We all can write; it isn't that difficult. But I spent/wasted 15 years of banging away on a typewriter writing stuff and editing stuff before I got seriously lucky and discovered computers. I will need help from the rest of the list and readers to make my HOW-TO INSTALL WORDPRESS strictly first-rate. Given that, I should be the last person to *ever* invest going into four days on this kind of effort. That said, a straight-up thanks for y'all who have helped me with this.- When you get a rough draft done, I'll be glad to walk through it and note any issues. I've been meaning to attempt a WordPress installation on FreeBSD for testing purposes (all my live sites are hosted on a managed system that came with Apache and PHP already configured). -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com pgpa39FBGpqXN.pgp Description: PGP signature
Re: Which php??
On Fri, Jan 14, 2011 at 07:50:11AM -0800, Chip Camden wrote: Quoth Gary Kline on Thursday, 13 January 2011: I have saved a copy of the original config page and have some questions that I'll need for when I write up my readable tutorial page. -I don't think many of you know that for heading toward 7 years, I was the lead writer for a Q/A help page for newcomers to FreeBSD. We all can write; it isn't that difficult. But I spent/wasted 15 years of banging away on a typewriter writing stuff and editing stuff before I got seriously lucky and discovered computers. I will need help from the rest of the list and readers to make my HOW-TO INSTALL WORDPRESS strictly first-rate. Given that, I should be the last person to *ever* invest going into four days on this kind of effort. That said, a straight-up thanks for y'all who have helped me with this.- When you get a rough draft done, I'll be glad to walk through it and note any issues. I've been meaning to attempt a WordPress installation on FreeBSD for testing purposes (all my live sites are hosted on a managed system that came with Apache and PHP already configured). -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipsquips.com | http://chipstips.com I'm already making notes, outlining stuff. The starting point is that the user ALREADY has his own website[s]. It occured to me while I was soaking away the pains in my antique bones last night that in order to sho wthe BSD user howto host his own installation of wordpress _from scratch*, i would need to cover mysql, php5, _Plus_ the slew of stuff that has to do with apache and DNS and the whole truckload of stuff. Too much. (There really is a great wealth of knowledge in us as a group; we could create an online self-published how-to book and sell on amazon.com ---every penny going to the FBSD Foundation.) Still, other than having an up-to-date ports tree; my how-to will include things like having the right mysql, php5-mysql, and unpacking the wordpress files in the right place. --Oh, and selling up the database stuff too. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Thu, Jan 13, 2011 at 09:29:46PM -0600, Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Thu Jan 13 21:16:20 2011 Date: Fri, 14 Jan 2011 04:10:25 +0100 From: Polytropon free...@edvax.de To: Gary Kline kl...@thought.org Cc: User Questions freebsd-questions@freebsd.org Subject: Re: Which php?? On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline kl...@thought.org wrote: I cut/pasted part of the config page to a yello w notepad. It unfortunately has those unfortunate DOS EOL things with the ^M. There's a simple answer to that waste of disk space (two bytes per line break!): Correct accounting is 'one _excess_ byte per line break'. recode cp437..iso8859 filename no need to install the port/package -- tr -d '\r' dosfile unixfile does the trick, with just a base install utility. Sure. I have that trick in my ~/.HowTo file. I also have a small program that converts every EOL to any other EOL. It is call cvt. This conflicts with another base utility named install, so what is a good shell script that would capture every file in every subdir? Maybe /bin/sh pointed at some loop: find . -type f * print; tr -d '\r' dosfile /tmp/unixfile mv /tmp/unixfile ./dosfile; IM _NSH_ Opinion, whoever threw in this wordpress port could have done this for us... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Thu, Jan 13, 2011 at 09:26:10PM -0600, Gary Gatten wrote: Is this a record for the longest thread ever? I've been ignoring it because I don't care much about php (relatively speaking), but I'm thinking ill have to read this thread and see what's so interesting! Not _quite_ the longest thread, but maybe close. It is becausee I have been so pyst off at the way that wordpress was ported. ANd because I actually have done a couple ports, the wp port could have been much better done. gary PS: i have more questions but will start another thread [!] -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On 13/01/2011 00:18, Gary Kline wrote: autoconf: required version 2.68 not found some stuff here to try for autoconf issues http://forums.freebsd.org/showthread.php?t=20284 Alternatively you might want to try installing prebuillt packages instead of building ports, a lot less hassle. pkg_delete php5* pkg_add -r php5 pkg_add -r php5-extensions (I'm not sure what extensions the package has, but i'd be surprised if it didn't include mysql) -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On 11/01/2011 16:46, Gary Kline wrote: So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary It looks like you have a workign apache2 already. *For PHP *cd /usr/ports/lang/php5 make config ( choose apache module) make install clean *PHP5 Extensions *(lots to choose from but make sure you have mysql at least selected ( you'll need this installed obv for wordpress too ) cd /usr/ports/lang/php5-extensions make config make install clean in your apache httpd.conf in the AddType section add AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps In the DirectoryIndex section (or on a new line after it) Add this line DirectoryIndex index.php index.html index.htm *Checks *On shell do php-v on a webpage in your webroot (e.g test.php) add this php code ?php phpinfo(); ? http://localhost/test.php If that shows you a nice php page then you should be good to go with the wordpress installer Good luck! Paul. -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
Lots of warnings:: Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0 PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 11 2011 12:31:01) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies This is kinda good, at least its installed ! To turn off deprecated notices in looging: edit /usr/local/etc/php.ini ( approx line 523) error_reporting = E_ALL ~E_DEPRECATED Make php log errors: ( line approx 646) error_log = /var/log/php_errors.log then try php -v from shell, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
In freebsd-questions Digest, Vol 345, Issue 7, Message: 11 On Thu, 13 Jan 2011 11:13:02 + Paul Macdonald p...@ifdnrg.com wrote: On 13/01/2011 00:18, Gary Kline wrote: autoconf: required version 2.68 not found some stuff here to try for autoconf issues http://forums.freebsd.org/showthread.php?t=20284 Alternatively you might want to try installing prebuillt packages instead of building ports, a lot less hassle. pkg_delete php5* pkg_add -r php5 pkg_add -r php5-extensions (I'm not sure what extensions the package has, but i'd be surprised if it didn't include mysql) You'd also be surprised if the php5 package didn't include the Apache module, right? That's why lots of people installed PHP in the first place, no? Lots of people have been thus surprised, for years now. Seeing Gary already has the module built, he could save it, remove then install the package and replace the module IF php was otherwise built with the same options, but the only way to get the module is build it. In the almost singular case of php, I'd stick with building the port(s). cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Jan 12, 2011, at 7:18 PM, Gary Kline wrote: autoconf: required version 2.68 not found *** Error code 1 did you follow the procedure in ports/UPDATING about autotools? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Thu, Jan 13, 2011 at 02:24:33PM -0500, David Scheidt wrote: On Jan 12, 2011, at 7:18 PM, Gary Kline wrote: autoconf: required version 2.68 not found *** Error code 1 did you follow the procedure in ports/UPDATING about autotools? I followed the suggestion from Mike Powell and that resolved the problem with autoconf-2.68. I'm trying the others now. See if it has any affect on mail/php5-imap. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
did you follow the procedure in ports/UPDATING about autotools? I followed the suggestion from Mike Powell and that resolved the problem with autoconf-2.68. I'm trying the others now. See if it has any affect on mail/php5-imap. you probably won't need imap support in php, so you could just deselect this in make config. Paul. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Thu, Jan 13, 2011 at 09:42:40PM +, Paul Macdonald wrote: did you follow the procedure in ports/UPDATING about autotools? I followed the suggestion from Mike Powell and that resolved the problem with autoconf-2.68. I'm trying the others now. See if it has any affect on mail/php5-imap. you probably won't need imap support in php, so you could just deselect this in make config. Paul. Here is what message is posted to the top of www.thought.org/blog/ where I cp'd -rp the whole of wordpress files. Your PHP installation appears to be missing the MySQL extension which is required by WordPress.o wHen i looked at the directory with firefox3 file:///usr/local/www/wordpress, there was a similar complain. I did not believe it--because I *do* have mysql installed. Moreover, I set up a wordpress database and wordpress_user, and all the rest of it. So far I am heading into the third day of this: trying to get the wordpress port working on my site. (It strikes me as more than a bit ironic that one of the things in the wp description is that it looks SO simple. Not my experience!) Question:: which MySQL should I have installed to get the port working? I am been debugging this stuff bit-by-bit. So far, I've upgraded the entire 700 ports since last October. I have kept ``ethic'' to be a server: DNS, mail, and web. Be great to host wordpress working so any help will be v much appreciated! gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On 13/01/2011 22:36, Gary Kline wrote: On Thu, Jan 13, 2011 at 09:42:40PM +, Paul Macdonald wrote: did you follow the procedure in ports/UPDATING about autotools? I followed the suggestion from Mike Powell and that resolved the problem with autoconf-2.68. I'm trying the others now. See if it has any affect on mail/php5-imap. you probably won't need imap support in php, so you could just deselect this in make config. Paul. Here is what message is posted to the top of www.thought.org/blog/ where I cp'd -rp the whole of wordpress files. Your PHP installation appears to be missing the MySQL extension which is required by WordPress.o wHen i looked at the directory with firefox3 file:///usr/local/www/wordpress, there was a similar complain. I did not believe it--because I *do* have mysql installed. Moreover, I set up a wordpress database and wordpress_user, and all the rest of it. So far I am heading into the third day of this: trying to get the wordpress port working on my site. (It strikes me as more than a bit ironic that one of the things in the wp description is that it looks SO simple. Not my experience!) Question:: which MySQL should I have installed to get the port working? I am been debugging this stuff bit-by-bit. So far, I've upgraded the entire 700 ports since last October. I have kept ``ethic'' to be a server: DNS, mail, and web. Be great to host wordpress working so any help will be v much appreciated! gary its the php mysql extension it's moaning about, not the mysql server. what do you get from pkg_version -Iv | grep php5 i wouldn't normally do it like this, but in your case i'd be tempted to cd /usr/ports/databases/php5-mysql make install clean cross fingers restart apache ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Thu, Jan 13, 2011 at 10:45:54PM +, Paul Macdonald wrote: On 13/01/2011 22:36, Gary Kline wrote: On Thu, Jan 13, 2011 at 09:42:40PM +, Paul Macdonald wrote: did you follow the procedure in ports/UPDATING about autotools? I followed the suggestion from Mike Powell and that resolved the problem with autoconf-2.68. I'm trying the others now. See if it has any affect on mail/php5-imap. you probably won't need imap support in php, so you could just deselect this in make config. Paul. Here is what message is posted to the top of www.thought.org/blog/ where I cp'd -rp the whole of wordpress files. Your PHP installation appears to be missing the MySQL extension which is required by WordPress.o wHen i looked at the directory with firefox3 file:///usr/local/www/wordpress, there was a similar complain. I did not believe it--because I *do* have mysql installed. Moreover, I set up a wordpress database and wordpress_user, and all the rest of it. So far I am heading into the third day of this: trying to get the wordpress port working on my site. (It strikes me as more than a bit ironic that one of the things in the wp description is that it looks SO simple. Not my experience!) Question:: which MySQL should I have installed to get the port working? I am been debugging this stuff bit-by-bit. So far, I've upgraded the entire 700 ports since last October. I have kept ``ethic'' to be a server: DNS, mail, and web. Be great to host wordpress working so any help will be v much appreciated! gary its the php mysql extension it's moaning about, not the mysql server. what do you get from pkg_version -Iv | grep php5 Ouch doesn't look good! q0 14:51 Server ethic [5001] pkg_version -Iv | grep php5 pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring php5-5.3.5 succeeds index (index has 5.3.2_1) php5-dom-5.3.5 succeeds index (index has 5.3.2_1) php5-extensions-1.4 = up-to-date with index php5-gd-5.3.5 succeeds index (index has 5.3.2_1) php5-hash-5.3.5succeeds index (index has 5.3.2_1) php5-iconv-5.3.5 succeeds index (index has 5.3.2_1) php5-imap-5.3.5succeeds index (index has 5.3.2_1) php5-json-5.3.5succeeds index (index has 5.3.2_1) php5-mysql-5.3.5 succeeds index (index has 5.3.2_1) php5-mysqli-5.3.5 succeeds index (index has 5.3.2_1) php5-pdo-5.3.5 succeeds index (index has 5.3.2_1) php5-pdo_sqlite-5.3.5 succeeds index (index has 5.3.2_1) php5-posix-5.3.5 succeeds index (index has 5.3.2_1) php5-readline-5.3.5succeeds index (index has 5.3.2_1) php5-recode-5.3.5 succeeds index (index has 5.3.2_1) php5-session-5.3.5 succeeds index (index has 5.3.2_1) php5-simplexml-5.3.5 succeeds index (index has 5.3.2_1) php5-sqlite-5.3.5 succeeds index (index has 5.3.2_1) php5-tokenizer-5.3.5 succeeds index (index has 5.3.2_1) php5-xml-5.3.5 succeeds index (index has 5.3.2_1) php5-xmlreader-5.3.5 succeeds index (index has 5.3.2_1) php5-xmlwriter-5.3.5 succeeds index (index has 5.3.2_1) php5-zip-5.3.5 succeeds index (index has 5.3.2_1) php5-zlib-5.3.5succeeds index (index has 5.3.2_1) pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring pkg_version: corrupted record (pkgdep line without argument), ignoring UGh. I messed up trying to make the output loook like it does on my knosole/xterm. That's about it. Note that I was under the [mis-] understanding that I thought that mysql was mysql. I have a fairly recent version of mysql5. i wouldn't normally do it like this, but in your case i'd be tempted to cd /usr/ports/databases/php5-mysql make install clean cross fingers restart apache Will do. See if I get lucky by installing the PHP flavor of mysql gary PS: Coming soon, if so:: a howto on my
Re: Which php??
On Thu, Jan 13, 2011 at 10:45:54PM +, Paul Macdonald wrote: On 13/01/2011 22:36, Gary Kline wrote: On Thu, Jan 13, 2011 at 09:42:40PM +, Paul Macdonald wrote: did you follow the procedure in ports/UPDATING about autotools? its the php mysql extension it's moaning about, not the mysql server. And when I found the php5-mysql in databases, the Makefile told me how everything fitted together. :-) what do you get from pkg_version -Iv | grep php5 i wouldn't normally do it like this, but in your case i'd be tempted to cd /usr/ports/databases/php5-mysql make install clean cross fingers restart apache WEll, I'm not sure how many eons ago it's been since the last post, but _no_, I did not take a month's vacation ... nor a nap Not even a cup of joe. BUT: Yes, Virginia, there is a Dog... After a partial edit of that wp-config.php from the sample.php, and filling in the name, wordpress, the user wordpress_user, and the password xyz123, a promising WordPress install page showed up. I have saved a copy of the original config page and have some questions that I'll need for when I write up my readable tutorial page. -I don't think many of you know that for heading toward 7 years, I was the lead writer for a Q/A help page for newcomers to FreeBSD. We all can write; it isn't that difficult. But I spent/wasted 15 years of banging away on a typewriter writing stuff and editing stuff before I got seriously lucky and discovered computers. I will need help from the rest of the list and readers to make my HOW-TO INSTALL WORDPRESS strictly first-rate. Given that, I should be the last person to *ever* invest going into four days on this kind of effort. That said, a straight-up thanks for y'all who have helped me with this.- I cut/pasted part of the config page to a yello w notepad. It unfortunately has those unfortunate DOS EOL things with the ^M. [i Figured maybe in pasting the lines, the wasted byte would vanish. Nope. Anyway, can folks tell me what is meant by Keys and Salts] ?? There are 8 places with define()'s. I can dream up 8 strings or phrases, no problem. But without getting into the guts of this blog stuff, can anybody tell me why I need unique [[ or VERY-VERY unique ]] strings? nExt, multiple instances of this blogware. A day ago i thought that one of the wordpress pages would be more than enough, but maybe in a year I'll need one on www and a second in journey. So in the unlikely event should I tag: ``$table_prefix= 'wp_';'' with ``$table_prefix = 'wp0_';'' ? (O think it is better to plan ahead now. Just in case.) -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline kl...@thought.org wrote: I cut/pasted part of the config page to a yello w notepad. It unfortunately has those unfortunate DOS EOL things with the ^M. There's a simple answer to that waste of disk space (two bytes per line break!): recode cp437..iso8859 filename It's also handy for users who have german umlauts in DOS text files and need to recode them to iso8859-1. (It's also a nice tool if the conversion is used in opposite order: This way, UNIX files can be converted to be sent directly to dotmatrix printers that expect DOS text streams.) The recode utility can be found in converters/recode port. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
From owner-freebsd-questi...@freebsd.org Thu Jan 13 21:16:20 2011 Date: Fri, 14 Jan 2011 04:10:25 +0100 From: Polytropon free...@edvax.de To: Gary Kline kl...@thought.org Cc: User Questions freebsd-questions@freebsd.org Subject: Re: Which php?? On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline kl...@thought.org wrote: I cut/pasted part of the config page to a yello w notepad. It unfortunately has those unfortunate DOS EOL things with the ^M. There's a simple answer to that waste of disk space (two bytes per line break!): Correct accounting is 'one _excess_ byte per line break'. recode cp437..iso8859 filename no need to install the port/package -- tr -d '\r' dosfile unixfile does the trick, with just a base install utility. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
Is this a record for the longest thread ever? I've been ignoring it because I don't care much about php (relatively speaking), but I'm thinking ill have to read this thread and see what's so interesting! - Original Message - From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org To: Gary Kline kl...@thought.org Cc: User Questions freebsd-questions@freebsd.org Sent: Thu Jan 13 21:10:25 2011 Subject: Re: Which php?? On Thu, 13 Jan 2011 18:41:15 -0800, Gary Kline kl...@thought.org wrote: I cut/pasted part of the config page to a yello w notepad. It unfortunately has those unfortunate DOS EOL things with the ^M. There's a simple answer to that waste of disk space (two bytes per line break!): recode cp437..iso8859 filename It's also handy for users who have german umlauts in DOS text files and need to recode them to iso8859-1. (It's also a nice tool if the conversion is used in opposite order: This way, UNIX files can be converted to be sent directly to dotmatrix printers that expect DOS text streams.) The recode utility can be found in converters/recode port. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org font size=1 div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in' /div This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. /font ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
Lots of warnings:: Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0 PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 11 2011 12:31:01) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies This is kinda good, at least its installed ! To turn off deprecated notices in looging: edit /usr/local/etc/php.ini ( approx line 523) error_reporting = E_ALL ~E_DEPRECATED Make php log errors: ( line approx 646) error_log = /var/log/php_errors.log then try php -v from shell, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On 11/01/2011 16:46, Gary Kline wrote: So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary It looks like you have a workign apache2 already. *For PHP *cd /usr/ports/lang/php5 make config ( choose apache module) make install clean *PHP5 Extensions *(lots to choose from but make sure you have mysql at least selected ( you'll need this installed obv for wordpress too ) cd /usr/ports/lang/php5-extensions make config make install clean in your apache httpd.conf in the AddType section add AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps In the DirectoryIndex section (or on a new line after it) Add this line DirectoryIndex index.php index.html index.htm *Checks *On shell do php-v on a webpage in your webroot (e.g test.php) add this php code ?php phpinfo(); ? http://localhost/test.php If that shows you a nice php page then you should be good to go with the wordpress installer Good luck! Paul. -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Wed, Jan 12, 2011 at 10:02:38AM +, Paul Macdonald wrote: Lots of warnings:: Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0 PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 11 2011 12:31:01) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies This is kinda good, at least its installed ! To turn off deprecated notices in looging: edit /usr/local/etc/php.ini ( approx line 523) error_reporting = E_ALL ~E_DEPRECATED Make php log errors: ( line approx 646) error_log = /var/log/php_errors.log then try php -v from shell, Will, try, thanks much. There is one thing that someone wrote in his post, labeling php.ini as PHP.INI or PHP.ini. Last night I cp'd the php-ini-devel* to PHP.ini. I think I'm probably barking up the wrong tree. A quick, recursive grep did find PHP in some files. But ``find /usr/ports _blah_'' found no PHP.ini. What's the right file to edit as my initialization file? -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
/usr/local/etc/php.ini That is the right file On Wednesday, January 12, 2011 05:53:47 pm Gary Kline wrote: On Wed, Jan 12, 2011 at 10:02:38AM +, Paul Macdonald wrote: Lots of warnings:: Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0 PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 11 2011 12:31:01) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies This is kinda good, at least its installed ! To turn off deprecated notices in looging: edit /usr/local/etc/php.ini ( approx line 523) error_reporting = E_ALL ~E_DEPRECATED Make php log errors: ( line approx 646) error_log = /var/log/php_errors.log then try php -v from shell, Will, try, thanks much. There is one thing that someone wrote in his post, labeling php.ini as PHP.INI or PHP.ini. Last night I cp'd the php-ini-devel* to PHP.ini. I think I'm probably barking up the wrong tree. A quick, recursive grep did find PHP in some files. But ``find /usr/ports _blah_'' found no PHP.ini. What's the right file to edit as my initialization file? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Wed, Jan 12, 2011 at 05:58:12PM -0200, Rodrigo Gonzalez wrote: /usr/local/etc/php.ini That is the right file Yep! r...@ethic:/usr/local/etc# php -v PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 12 2011 11:42:40) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies r...@ethic:/usr/local/etc# Now, as a last re-try to get my wordpress blog port going, I will upgrade my php5-extensions. What should I turn on or off in the Makefile [or using `make config']? gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Wed, 12 Jan 2011 12:35:04 -0800, Gary Kline kl...@thought.org wrote: What should I turn on or off in the Makefile [or using `make config']? Allow me a quite general comment: Do not modify a port's Makefile directly. The interface to selectable options is usually given by make config or the configuration files of the port managament tool you use (if any). A file-based mechanism has been present in ports, but I'm not fully sure it hasn't been obsoleted already. I have used this mechanism for things like configuring the options for the mplayer port. This mechanism is Makefile.local - a file you place into the port's directory and specify all the options you need, maybe based upon the Makefile itself. For example, a /usr/ports/multimedia/mplayer/Makefile.local could look this way: WITH_SDL=yes WITH_VORBIS=yes WITH_THEORA=yes WITH_XANIM=yes WITH_XVID=yes WITH_REALPLAYER=yes WITH_LIVEMEDIA=yes WITH_ESOUND=yes WITH_FREETYPE=yes WITH_LANG=yes WITH_GUI=yes WITH_DVD=yes WITH_GTK1=yes WITH_LIBDVDNAV=yes WITH_AMR=yes WITH_VPX=yes WITH_WIN32=yes WITH_V4L=yes WITH_DVD_DEVICE=/dev/dvd WITH_OPTIMIZED_CFLAGS=yes WITHOUT_RUNTIME_CPUDETECTION=yes CFLAGS+= -O2 -pipe -ffast-math You can specify the =yes as an equivalent to setting [X] in the make config screen, and you can also define variables with strings (like WITH_DVD_DEVICE or the alteration of CFLAGS in the example). Reason: Changes to Makefile will be removed within the process of make update, but Makefile.local will be ignored, so it will still be present after the update of the ports tree. Still, using a centralized configuration file for ports options as provided by port management tools (such as portupgrade or portmaster) often is the better solution if you use those tools anyway. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
r...@ethic:/usr/local/etc# php -v PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 12 2011 11:42:40) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies r...@ethic:/usr/local/etc# Now, as a last re-try to get my wordpress blog port going, I will upgrade my php5-extensions. What should I turn on or off in the Makefile [or using `make config']? gary for wordpress you need only worry about having mysql on in lang/php5-extensions (possibly gd, wordpress might have some fancy image manipulation features) I wouldn't worry about the rest for just a wp install. you'll get the choice of mysql driver, there is a new native driver but i confess i've not modified any of my code to use this ( so i don;t use it) Paul. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Wed, Jan 12, 2011 at 11:01:03PM +, Paul Macdonald wrote: r...@ethic:/usr/local/etc# php -v PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 12 2011 11:42:40) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies r...@ethic:/usr/local/etc# Now, as a last re-try to get my wordpress blog port going, I will upgrade my php5-extensions. What should I turn on or off in the Makefile [or using `make config']? gary for wordpress you need only worry about having mysql on in lang/php5-extensions (possibly gd, wordpress might have some fancy image manipulation features) I wouldn't worry about the rest for just a wp install. you'll get the choice of mysql driver, there is a new native driver but i confess i've not modified any of my code to use this ( so i don;t use it) Paul. Hm. I keep stumbling over this autoconf required version 2.68 not found Error. Do I need to portmanage upgrade that utility or what? Here is most of the output that fails trying to build php5-extensions:: # make install === php5-extensions-1.4 depends on file: /usr/local/include/php/main/php.h - found === php5-extensions-1.4 depends on file: /usr/local/lib/php/20090626-debug/hash.so - not found ===Verifying install for /usr/local/lib/php/20090626-debug/hash.so in /usr/ports/security/php5-hash === php5-hash-5.3.5 depends on file: /usr/local/bin/phpize - found === php5-hash-5.3.5 depends on file: /usr/local/bin/autoconf-2.68 - found === PHPizing for php5-hash-5.3.5 Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 *** Error code 1 Stop in /usr/ports/security/php5-hash. *** Error code 1 Stop in /usr/ports/lang/php5-extensions. *** Error code 1 Stop in /usr/ports/lang/php5-extensions. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.97a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ethic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Wed, Jan 12, 2011 at 11:01:03PM +, Paul Macdonald wrote: r...@ethic:/usr/local/etc# php -v PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 12 2011 11:42:40) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies r...@ethic:/usr/local/etc# Now, as a last re-try to get my wordpress blog port going, I will upgrade my php5-extensions. What should I turn on or off in the Makefile [or using `make config']? gary for wordpress you need only worry about having mysql on in lang/php5-extensions (possibly gd, wordpress might have some fancy image manipulation features) I wouldn't worry about the rest for just a wp install. you'll get the choice of mysql driver, there is a new native driver but i confess i've not modified any of my code to use this ( so i don;t use it) Paul. I think I missed some out my stderr output. Here is another try at capturing the make install flub. # make install === php5-extensions-1.4 depends on file: /usr/local/include/php/main/php.h - found === php5-extensions-1.4 depends on file: /usr/local/lib/php/20090626-debug/hash.so - not found ===Verifying install for /usr/local/lib/php/20090626-debug/hash.so in /usr/ports/security/php5-hash === php5-hash-5.3.5 depends on file: /usr/local/bin/phpize - found === php5-hash-5.3.5 depends on file: /usr/local/bin/autoconf-2.68 - found === PHPizing for php5-hash-5.3.5 Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 autoconf: required version 2.68 not found *** Error code 1 Stop in /usr/ports/security/php5-hash. *** Error code 1 Stop in /usr/ports/lang/php5-extensions. *** Error code 1 Stop in /usr/ports/lang/php5-extensions. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.97a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ethic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
Gary Kline wrote: [snip] autoconf: required version 2.68 not found *** Error code 1 Stop in /usr/ports/security/php5-hash. *** Error code 1 Stop in /usr/ports/lang/php5-extensions. *** Error code 1 Stop in /usr/ports/lang/php5-extensions. Setting these environment variables prior to building anything PHP is a workaround for the autoconf stuff. in tcsh/csh: setenv PHP_AUTOCONF autoconf-2.68 setenv PHP_AUTOHEADER autoheader-2.68 Then proceed to build, install, update. This is a very old, long time ago type error that recurs every so often. And this is assuming, of course, that the current versions are indeed installed. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Tue, Jan 11, 2011 at 11:46 AM, Gary Kline kl...@thought.org wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Gary, Did you set up your webserver to parse .php/.phps files. In Apache this is probably (I don't have apache install on my fbsd box anymore) at /usr/local/etc/apache22/conf/Includes/php.conf. I don't know about other webservers... hth/c- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: On Tue, Jan 11, 2011 at 11:46 AM, Gary Kline kl...@thought.org wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Gary, Did you set up your webserver to parse .php/.phps files. In Apache this is probably (I don't have apache install on my fbsd box anymore) at /usr/local/etc/apache22/conf/Includes/php.conf. I don't know about other webservers... hth/c- Here is a grep -1 php of the httpd.conf, showing that the php types are allowed. LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule php5_modulelibexec/apache/libphp5.so ###LoadModule php5_modulelibexec/apache/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .htm .html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps So, yeah, looks like that is permitted.. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On 01/11/11 11:46, Gary Kline wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Serverethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Remember you have to tell apache to run php files as programs. Do you have the following lines in httpd.conf? AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Those lines should be right around row/line 217 in httpd.conf for apache 2.2 Tim Kellers ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Tue, Jan 11, 2011 at 05:29:12PM +, Paul Macdonald wrote: On 11/01/2011 16:46, Gary Kline wrote: So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary It looks like you have a workign apache2 already. *For PHP *cd /usr/ports/lang/php5 make config ( choose apache module) make install clean Hm. I did this late night by going into the makefile and editing stuff from off to on. What's the mak e cmd? Is it make config? I first simply did a make install clrean; it did nothing. Then I did a deinstall/reinstall. I figured THAT should've done _something_. *PHP5 Extensions *(lots to choose from but make sure you have mysql at least selected ( you'll need this installed obv for wordpress too ) cd /usr/ports/lang/php5-extensions make config make install clean This one I have never seen before and may be just the ticket. Will try. ---WOW, there are a boatload of options.Is there any shortlist of ones i need to check? in your apache httpd.conf in the AddType section add AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps In the DirectoryIndex section (or on a new line after it) Add this line DirectoryIndex index.php index.html index.htm *Checks *On shell do php-v on a webpage in your webroot (e.g test.php) add this php code ?php phpinfo(); ? http://localhost/test.php If that shows you a nice php page then you should be good to go with the wordpress installer Good luck! Paul. I think I have the test.php in /usr/local/www/data/www or whatever. Thanks for your tips. This time I may get it working :-) gary -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
Did you restart apache? Second option to check directly php information create a file info.php with this content ?php phpinfo(); ? then go to http://your ip/info.php and check the results, if you see the text, your apache does not have php enabled, if it is enabled you will see information about your php installation On Tuesday, January 11, 2011 03:56:31 pm Gary Kline wrote: On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: On Tue, Jan 11, 2011 at 11:46 AM, Gary Kline kl...@thought.org wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Gary, Did you set up your webserver to parse .php/.phps files. In Apache this is probably (I don't have apache install on my fbsd box anymore) at /usr/local/etc/apache22/conf/Includes/php.conf. I don't know about other webservers... hth/c- Here is a grep -1 php of the httpd.conf, showing that the php types are allowed. LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule php5_modulelibexec/apache/libphp5.so ###LoadModule php5_modulelibexec/apache/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .htm .html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps So, yeah, looks like that is permitted.. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Tue, Jan 11, 2011 at 04:10:02PM -0200, Rodrigo Gonzalez wrote: Did you restart apache? Second option to check directly php information create a file info.php with this content ?php phpinfo(); ? Well, it works. Probably after I had finished the php5-extentions port. I checked off some min of options, opened my www homepage and looked at the test.php page. Voila! Something IP remember from years ago. I opened the wordpress dir with file:///usr/local/www/wordpress/reame.html and things look that much more hopefull. I have a KWM switch and am working from my server port. FWIW, I'm using a very old and lightweight ctwm., Going to be an interesting day or three. then go to http://your ip/info.php and check the results, if you see the text, your apache does not have php enabled, if it is enabled you will see information about your php installation On Tuesday, January 11, 2011 03:56:31 pm Gary Kline wrote: On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: On Tue, Jan 11, 2011 at 11:46 AM, Gary Kline kl...@thought.org wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Gary, Did you set up your webserver to parse .php/.phps files. In Apache this is probably (I don't have apache install on my fbsd box anymore) at /usr/local/etc/apache22/conf/Includes/php.conf. I don't know about other webservers... hth/c- Here is a grep -1 php of the httpd.conf, showing that the php types are allowed. LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule php5_modulelibexec/apache/libphp5.so ###LoadModule php5_modulelibexec/apache/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .htm .html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps So, yeah, looks like that is permitted.. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.97a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ethic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
Gary Kline wrote: On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: On Tue, Jan 11, 2011 at 11:46 AM, Gary Kline kl...@thought.org wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Gary, Did you set up your webserver to parse .php/.phps files. In Apache this is probably (I don't have apache install on my fbsd box anymore) at /usr/local/etc/apache22/conf/Includes/php.conf. I don't know about other webservers... hth/c- Here is a grep -1 php of the httpd.conf, showing that the php types are allowed. LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule php5_modulelibexec/apache/libphp5.so ###LoadModule php5_modulelibexec/apache/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .htm .html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps So, yeah, looks like that is permitted.. Does the PHP.INI file have short tags enabled? Does WordPress use them by default? (Look at the beginning of the wordpress php files, look for ?php, this is the normal php tag, but a short tag (deprecated, but still usable) looks like this ?. Only ONE of the AddTypes should exist, I'm not sure how Apache will handle it if there are multiple of them. Prune it back to being just this pair (and make sure you do an apache restart after you change it): AddType application/x-httpd-php .php .htm .html .phtml AddType application/x-httpd-php-source .phps If you execute php -version from the shell, what do you get? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Tue, Jan 11, 2011 at 01:24:35PM -0500, Brad Mettee wrote: Gary Kline wrote: On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: On Tue, Jan 11, 2011 at 11:46 AM, Gary Kline kl...@thought.org wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Gary, Did you set up your webserver to parse .php/.phps files. In Apache this is probably (I don't have apache install on my fbsd box anymore) at /usr/local/etc/apache22/conf/Includes/php.conf. I don't know about other webservers... hth/c- Here is a grep -1 php of the httpd.conf, showing that the php types are allowed. LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule php5_modulelibexec/apache/libphp5.so ###LoadModule php5_modulelibexec/apache/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .htm .html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps So, yeah, looks like that is permitted.. Does the PHP.INI file have short tags enabled? Does WordPress use them by default? (Look at the beginning of the wordpress php files, look for ?php, this is the normal php tag, but a short tag (deprecated, but still usable) looks like this ?. well, i searched for PHP.INI and only found PHP.ini and then also php.ini (along w ith various ``-dist|-recommended'' flavors of the preprocessor startup. It is worth noting that what I dropped in around 19:00 last is exactly the same as that which I grabbed out of ports last Oct. --I'm just mentioning this to alleviate fear of missing out on some latest and greatest fix. There are always security fixes, obviously, but in general php is fairly stable. tHe short tags are off by default. In other words, anybody who hacks php has to remember to add the three more bytes. Only ONE of the AddTypes should exist, I'm not sure how Apache will handle it if there are multiple of them. Prune it back to being just this pair (and make sure you do an apache restart after you change it): AddType application/x-httpd-php .php .htm .html .phtml AddType application/x-httpd-php-source .phps Thanks for catching that, Brad. Save a few bytes:) When I did the restart, the sanity checker said things were okay, so whatever kind of parser reads the file is pretty sharp. gary If you execute php -version from the shell, what do you get? -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.97a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org
Re: Which php??
On Tue, Jan 11, 2011 at 01:24:35PM -0500, Brad Mettee wrote: Gary Kline wrote: On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: If you execute php -version from the shell, what do you get? Rats. Now i get a segv..Last night, no. Ideas? gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.97a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ethic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Which php??
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Gary Kline Sent: 11. januar 2011 20:34 To: Brad Mettee Cc: FreeBSD Mailing List Subject: Re: Which php?? On Tue, Jan 11, 2011 at 01:24:35PM -0500, Brad Mettee wrote: Gary Kline wrote: On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: If you execute php -version from the shell, what do you get? Rats. Now i get a segv..Last night, no. Ideas? Recompile PHP with debug support. No, seriously. I have had the same problem for years with different versions of PHP, and hours of googling has led me to that answer. Seems that nobody can explain exactly why enabling debug support fixes the problem, but it does. Some boring history: I ran into this problem trying to get Horde/IMP working properly way back in 2003. IMP needs some PEAR modules to work, and they refused to install because PEAR needs PHP to work, and got cought on something and segfaulted trying to install the PEAR modules. Reworking the loading order of the PHP extensions seemed to work for some time, but then my changes got lost in one of many PHP upgrades and things got stuffed again. For a while I solved the problem by uninstalling Horde/IMP, but lately (since 2007-ish) I've hit this snag every now and then. At some point I just gave up, and then I stumbled across the enable debug in php and php-extensions trick, and it's been painless ever since. Speed-wise, I can't tell the difference. I haven't run any real tests because my servers aren't very busy and thus I haven't seen the point, but I'll grant that on busy servers it may very well affect performance. YMMV. Good luck! - Christer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Well.... {was:: Re: Which php??}
On Tue, Jan 11, 2011 at 10:49:26AM -0800, Gary Kline wrote: On Tue, Jan 11, 2011 at 04:10:02PM -0200, Rodrigo Gonzalez wrote: It isn't esp'ly tasty to have to eat one's own words, but that is what happened for about 90 mins this morning. ---I could have _sworn_ that I had cron'd the ports upgrade stuff at least weekly. Nope. At least I think things are back on track. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Tue, Jan 11, 2011 at 01:24:35PM -0500, Brad Mettee wrote: Gary Kline wrote: On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: On Tue, Jan 11, 2011 at 11:46 AM, Gary Kline kl...@thought.org wrote: On Mon, Jan 10, 2011 at 10:07:28PM +, Paul Macdonald wrote: On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. Well, I have no screen-capture set up o my server, so cannot show the firefox display. But here is the samr thing using lynx: According to the /usr/local/www/wordpress/* files, php is not running. I had the wordpress port install itself in the default place: in /usr/local/www; should I cp the files somewhere else? --I have no subdomain wordpress (or wordpress.thought.org). ps 8:20 Server ethic [5025] lynx wp-admin/install.php (p1 of 3) WordPress Error: PHP is not running WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off. WordPress get_var(SHOW TABLES LIKE '$wpdb-users') != null ); // Ensure that Blogs appear in search engines by default $blog_public = 1; if ( ! empty( $_POST ) ) $blog_public = isset( $_POST['blog_public'] ); $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; if ( ! is_null( $error ) ) { ? ERROR So:: are there other ways of installing this stuff? Should I cp -rp this wordpress directory in [e.g.] /usr/local/www/journey? Thanks for any clues, gary Gary, Did you set up your webserver to parse .php/.phps files. In Apache this is probably (I don't have apache install on my fbsd box anymore) at /usr/local/etc/apache22/conf/Includes/php.conf. I don't know about other webservers... hth/c- Here is a grep -1 php of the httpd.conf, showing that the php types are allowed. LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule php5_modulelibexec/apache/libphp5.so ###LoadModule php5_modulelibexec/apache/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .htm .html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps So, yeah, looks like that is permitted.. Does the PHP.INI file have short tags enabled? Does WordPress use them by default? (Look at the beginning of the wordpress php files, look for ?php, this is the normal php tag, but a short tag (deprecated, but still usable) looks like this ?. Only ONE of the AddTypes should exist, I'm not sure how Apache will handle it if there are multiple of them. Prune it back to being just this pair (and make sure you do an apache restart after you change it): AddType application/x-httpd-php .php .htm .html .phtml AddType application/x-httpd-php-source .phps If you execute php -version from the shell, what do you get? Lots of warnings:: Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0 PHP 5.3.5 with Suhosin-Patch (cli) (built: Jan 11 2011 12:31:01) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On Mon, Jan 10, 2011 at 4:21 PM, Gary Kline kl...@thought.org wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. IIRC, worpress is rather lightweight in setting it up, I don't think you *need* any although you might find some that enhance your Wordpress experience. It should warn you of any missing php extentions ... (which is what I think you mean). If you are looking for the actualy php package then lang/php52 will install that, you can then do lang/php52-extensions to install what ext's you may need/want. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On 01/10/11 22:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. Never tried it myself, but... %cd /usr/ports/www/wordpress/ %make pretty-print-run-depends-list This port requires package(s) apache-2.2.17_1 apr-devrandom-gdbm-db43-1.4.2.1.3.10 db43-4.3.29_1 expat-2.0.1_1 freetype2-2.4.4 gdbm-1.8.3_3 jpeg-8_3 kbproto-1.0.4 libICE-1.0.6,1 libSM-1.1.1_3,1 libX11-1.3.3_1,1 libXau-1.0.5 libXaw-1.0.7,1 libXdmcp-1.0.3 libXext-1.1.1,1 libXmu-1.0.5,1 libXp-1.0.0,1 libXpm-3.5.7 libXt-1.0.7 libiconv-1.13.1_1 libpthread-stubs-0.3_3 libxcb-1.7 libxml2-2.7.8_1 mysql-client-5.0.91 pcre-8.11 perl-5.8.9_4 php52-5.2.17 php52-gd-5.2.17 php52-mysql-5.2.17 php52-pcre-5.2.17 php52-tokenizer-5.2.17 php52-xml-5.2.17 php52-zip-5.2.17 pkg-config-0.25_1 png-1.4.5 printproto-1.0.4 t1lib-5.1.2_1,1 xextproto-7.1.1 xproto-7.0.16 to run. bye av. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php??
On 10/01/2011 21:21, Gary Kline wrote: Which php52 port do I need to run with wordpress? There are a slew of them po ports. tia. php5.2 is the last release before its eol'd. there may be some tweaking, but you'd be better getting it working with 5.3 (lang/php5) now rather than later... Paul. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which php ?
Darryl Hoar wrote: I have 5.1-release installed. I wish to install php4 and want it to work with apache, mysql and openldap. Which one of the php ports do I use ? Easiest thing to do is install www/mod_php4 and select the options you want (mysql - which is a default - and ldap)under the curses based config screen that will pop up. Having said that, in a minority of cases people want to run php as a cgi under suexec. In that case, you need to use /lang/php4 and use the right config arguments. PWR. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Which php ?
Peter Risdon wrote: Darryl Hoar wrote: I have 5.1-release installed. I wish to install php4 and want it to work with apache, mysql and openldap. Which one of the php ports do I use ? Easiest thing to do is install www/mod_php4 and select the options you want (mysql - which is a default - and ldap)under the curses based config screen that will pop up. Having said that, in a minority of cases people want to run php as a cgi under suexec. In that case, you need to use /lang/php4 and use the right config arguments. PWR. Pretty much correct. /lang/php4 simply builds both the Apache module and the CLI and CGI executables, and installs the lot; therefore it also uses the ncurses config screen. I think that if you desire to 'keep up' with PHP development by means of portupgrade(1), then you'll want to place the right config arguments in /etc/make.conf. See make.conf(5) for the real scoop on that one Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]