[Users] Installing Hyper Journal without root rights
Michele Barbera
barbera a netseven.it
Lun 17 Ott 2005 16:30:55 CEST
> Hi Michele,
Hi Arnost,
> I made script which should install HJ in user directory
> (~/public_html/...). It is attached to this email, you can see what I have
> tried. This has one bug - sed command doesn't work - I must do "sed" work
> substitutions manualy. When I do that, setup script works.
It seems correct, except you probably forgot to define HJ_RELATIVE_PATH and
SERVER_ROOT, which you use later on in the rewrite rules. By the way,
using .htacces is a good idea :-)
Moreover, you don't need to chmod 777 all, it can be dangerous. Only the
Apache user needs read and write access to some dirs (have a look in the
makefile and config for details). You can also keep the INSTALL_DIR outside
the server document root.
> My problems in setup.php - are some of them crucial?:
> * I don't know mysql superuser password.
This is not crucial, provided you can create an empty database and a user with
all permissions on that database, you can tell to the setup.php that you
already create a mysql db, the installer will then create the db tables
without asking you mysql superuser password.
> * my system isn't running sendmail (mail can't be send)
This is a blocking problem. The ability to send emails is needed for user
registration. Whitout being able to send emails your users will not be able
to register. Maybe there is a workaround, check the PHP manual (under some
conditions it is possible to use external sendmail programs).
> * I have no Sesame repository
This is blocking too, unless you have write access to a remote sesame
repository. The installer again asks you if you want to create a local
repository or use a remote one. However installing sesame is easy. Check the
manual at www.openrdf.org. This probably can be done even if you haven't
superuser rights.
> After going through setup.php steps, I tried index.php and this error
> appears get this error: exception 'DbException' with message 'DB Error: no
> such table' in
> /home/arnost/public_html/hjournal/classes/class.Utils.php:488 Stack trace:
> #0 /home/arnost/public_html/hjournal/classes/class.Utils.php(522):
> Utils::doQuery('SELECT * FROM h...', Array) #1
> /home/arnost/public_html/hjournal/classes/class.HomeComposerBoxes.php(103):
> Utils::doQueryAndReturnArray('SELECT * FROM h...') #2
> /home/arnost/public_html/hj_server/index.php(82):
> HomeComposerBoxes->load(Array, NULL) #3 {main}
> I looks that there is problem with database. Configuration file
> "configuration.xml" contains right database name, login and password.
>
> Any idea how to solve that? Thanks for any help.
Yes, you got this error because the database is empty. I mean that the
database you are trying to connect to contains no tables! You can create it
with the setup.php as explained above.
Michele
Maggiori informazioni sulla lista
Users