Jump to content

Recommended Posts

Posted

I am trying to install photoview-3.4 to evaluate it for possible use as a photoblog.

 

Here is a list of requirements:

 

* MySQL database (http://www.mysql.com/)

* PHP 4 (http://www.php.net/), compiled the extensions:

* MySQL database (--with-mysql)

* Sablot, XSLT processor (--with-sablot)

* DOM XML API (--with-dom and --with-zlib)

* Image Magick (will use /usr/bin/X11/convert)

 

This is the error I get when trying to set up the database from a script in the package.

 

Warning: dl(): Unable to load dynamic library './xslt.so' - ./xslt.so: cannot open shared object file: No such file or directory in /home/foamdep/public_html/photoview/photoview-3.4/admin.php on line 29

PhotoView sanity check failed:

 

* Cannot connect to database on server 'Array' with user 'Array' (password not shown)

 

 

This is the offending line in admin.php:

 

dl("xslt.so");

 

I have already set up a database and a login/password and let the script know about per the instructions.

 

? Is TCH's php complied with the above options? Please confirm.

 

Thanks.

Posted

I found that I could run the following:

 

<?php

phpinfo();

?>

 

as a *.php script to determing the config options of php.

 

I got this:

 

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-zlib

 

So seemingly all the requirements are met.

 

Any other ideas?

Posted

when you set up the config to connect to your database the database name should be formatted like

cpanelusername_databasename

 

and the database username should be

cpanelusername_databasename

 

You must also assign the user you created to the database

Posted
when you set up the config to connect to your database the database name should be formatted like

cpanelusername_databasename

 

and the database username should be

cpanelusername_databasename

 

You must also assign the user you created to the database

 

Currently the database name is foamdep_photoview and the only user is foamdep_photovie

 

Do they -have to- match? the username is missing the "w" due to a length limitation.

 

I am somewhat familiary with the set up of a mysql database on TCH, since I have done it for a blog in the past.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...