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 +0000, 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_module libexec/apache22/libphp5.so > >####LoadModule php5_module libexec/apache/libphp5.so > >###LoadModule php5_module libexec/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 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"