Help! Gallery & PHP can't get off the ground

owen-b

Registered
Hi!

I've downloaded Gallery and netpmb and been using the Terminal to try to set it up and have had NOTHING but trouble. So much for it being 'really easy'!!

Basically, I just can't get the gallery/setup/index.php file to do anything in my browser (Safari) other than show a load of what I presume is PHP code.

So I found a webpage that tells me how to turn PHP on using Terminal, and I have to say I have no idea what it even is, but anyway it's done nothing. Now I gather it may have something to do with MySQL (whatever that is!) or even updating to PHP5 (or maybe not) and I just don't understand. People with less web coding experience have managed to set this up on a PC, what am I doing wrong?

I am on a G4 Powerbook, Tiger.

PLEASE help!

Thanks,
Owen
 
Try taking a screen-cap of what shows up and posting it here. Let's make sure PHP is properly enable first before we look at the other options.

What version of Gallery did you grab? 1.5 is based on flat-files, 2.0 uses MySQL database. If you grabbed 2.0, then you'll need to download and install MySQL which isn't installed from the factory on OS X. You can download a Binary copy from MySQL's site for free (open-source). Make sure you grab a 4.1.x version and not the newer 5 version of MySQL.
 
1) please give URLs to the software you've installed

2) if you are seeing php-code then php hasn't been activated in your httpd.conf file : http://dk2.php.net/manual/en/faq.installation.php#faq.installation.processing

3) Mac OS X *doesn't* come with MySQL. If MySQL is a requirement, you'll have to install that too.

4) If I remember correctly, the PHP shipping in Mac OS X *hasn't* been compiled with support for MySQL, so you'll have to get a new version of PHP too

But try to get PHP activated. Then make a file with this single line and load it in a browser: <?php phpinfo(); ?>
Under 'Configure Command' you'll have to have '--with-mysql=<dir>' in order to have MySQL support in your PHP installation.
 
Back
Top