Categories
Unix Notes Web Serving

Netjuke vs. PHP 5

So, I got my PHP 5 to work, and talk to MySQL.
I wonder if Netjuke works? Nope. Not at all.

Everywhere I read I see that Netjuke is not supported and will never work on PHP 5. Use Jinzora they say. Uck – that wasn’t fun.

Simply put. Fix “play.php” to only output one header at a time. Search for the header() call. It’s pretty obvious.

Change the test in the config.inc.php for
`PRIVATE == true`
to be something like
`NJPRIVATE == true`

Fix every file that has a
`define(“PRIVATE”, true/false)`
to be a
`define(“NJPRIVATE”, true/false)`

private is a reserved word in PHP 5.

That’s all it took. All of about 30 minutes once I decided to ignore all of the advice on the web.

Classic maintenance programming attack.

Categories
Unix Notes Web Serving

Getting to PHP 5

10.3.9 – no help beyond 4.3.11 from Marc Liyanage.

Apple’s 4.4 is of no help – no GD support, missing other things – PEAR, XML things, etc.

How do I make a compatible build?

Start with Apple’s configure command (use phpinfo() on a standard installation). It *will* screw up your system files nicely, so make sure you know what each of the files and directories means! I didn’t. I have an interesting mix of system/local files now.

Add extensions as needed. Test ./configure each time, and you might as well re-build each time.

Decide where to get libraries. I finally decided to use darwinports for the non-Apple standards. Look out for X11 when not installed!!!!

Use the built-in GD ‘–with-gd’ – no path. darwinports gd has issues (won’t build).

I wound up with this

configure –prefix=/usr –mandir=/usr/share/man –infodir=/usr/share/info –with-apxs –with-ldap=/usr –with-kerberos=/usr –enable-cli –with-zlib-dir=/usr –enable-trans-sid –with-xml –enable-exif –enable-ftp –enable-mbstring –enable-mbregex –enable-dbx –enable-sockets –with-iodbc=/usr –with-curl=/opt/local –with-config-file-path=/etc –sysconfdir=/private/etc –with-pear –with-mysql=/usr/local/mysql –with-openssl=/usr –with-gd –with-png=/opt/local –with-jpeg=/opt/local –with-expat=/opt/local –with-gettext=/opt/local –with-dom=/opt/local –with-dom-xslt=/opt/local –with-xslt-sablot=/opt/local –enable-xslt –with-xmlrpc –enable-wddx

I still need to figure out about IMAP support.

Categories
Applications Notes Web Serving

AFP548 – my.cnf

AFP548 – my.cnf

What a difference a little conf file makes!So, we here at AFP548.com are by no means DBAs in any way shape or form. We cross our fingers every time we upgrade the server that MySQL works when it comes up. We’re not sure what we’d do if it didn’t.

I tried it. First impression is that dynamic pages on the blogs *are* faster.

Categories
Mac OS X Server Web Serving

VirtualHost defaults from the GUI

/etc/httpd/sites_disabled/0000_default_default.conf

the location of the default settings for virtual hosts (VirtualHost) that are used by the ServerAdmin GUI interface.

Add or change things here to have newly added web sites get your favorite changes to the configuration.

httpd configuration default virtualhost

Categories
Web Serving

Apache – Alias – Location

Apache configuration file

When creating Alias entries remember that they need to be listed in the order longest to shortest

Alias /foo/bar /path/bar
Alias /foo /path/other

compare that to Location which are ordered from shortest to longest

<Location /foo> <Location>
<Location /foo/bar> <Location>

Categories
System Software Notes Web Serving x.opus1.com

Software updates

phpMyAdmin 2.6.1-rc1
php 4.3.10

All seems well

Categories
Web Serving

Creating Secure Transactions on Mac OS X server Using SSL

Creating Secure Transactions on Mac OS X server Using SSL

As of version 10.3, Mac OS X Server provides built-in SSL encryption and authentication for POP, IMAP, SMTP, and LDAP, as well as for remote server management via servermgrd. The first step in getting SSL running on Mac OS X Server is to get a certificate.

This can be done in two ways: the official way, by getting an official CA to sign your key pair; or the unofficial way, by acting as your own CA. The latter method will raise errors on users’ systems until they accept your authority, so it is not ideal for transactions with the public, but it’s just fine for testing and internal company use, and it is free to generate as many as desired, whereas official certificates start in the hundreds of dollars

Categories
Web Serving

Simple Tricks for More Usable Forms [JavaScript & DHTML Tutorials]

Simple Tricks for More Usable Forms [JavaScript & DHTML Tutorials]
You will certainly have encountered our first trick before; it’s used by Google, the world’s most popular search engine. Whenever you load up www.google.com, your cursor jumps straight to the search box, ready for you to enter your query. It happens so fast you may not even have thought about it, but, in fact, it works equally well in any situation in which the primary purpose of a page is to fill in a form. It can be done in a number of different ways, each of which assumes that the form element you want to focus on has an id attribute set to “myfield”:

<body onload=”document.getElementById(‘myfield’).focus()”></body>

Categories
System Software Notes Web Serving

A tour of the PHP.INI configuration file, part 2

A tour of the PHP.INI configuration file, part 2
The first part of this article introduced you to the php.ini file, explained its structure, and showed you how to adjust PHP’s search path, error handling, and parser options. This second part goes deeper into the configuration file, covering topics such as how to activate PHP’s extensions, setting resource limits for your PHP scripts, and altering configuration variables on the fly through a PHP script.

Categories
Web Serving

Oracle Open Source Help

Open Source Developer Technology Center

Bookmark this page for technical information about the use of open source tools and languages in conjunction with Oracle.

What’s New

The Hitchhiker’s Guide to PHP