• Previous message: [greg-dev] [gregarius-dev] Gregarius 0.5.4 : all I get is a blank page
  • Next message: [greg-dev] Gregarius 0.5.4 : all I get is a blank page
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] Gregarius 0.5.4 : all I get is a blank page

    Le vendredi 14 juillet 2006 16:00, Sameer D'Costa a écrit :
    > >   I'm a newcomer with Gregarius. I downloaded version 0.5.4 and
    > > tried to use it on the following system:
    > >
    > > - OpenSUSE 10.1 x86_64
    > > - Apache 2.0.54
    > > - PHP 5.0.4
    > > - SQLite 3.2.2
    > >
    > >   My Apache server works fine, I already have a https-encrypted
    > > webmail system (Squirrelmail) and phpLDAPadmin working on it. The
    > > gregarius directory belongs to root, with reading permissions to
    > > everyone.
    > >   I added mod_rewrite to the list of modules to be loaded, and
    > > greated a file gregarius.conf in /etc/apache2/conf.d containing the
    > > following :
    > >
    > > <Directory "/srv/www/htdocs/gregarius">
    > >         AllowOverride All
    > >         Options FollowSymLinks SymLinksifOwnerMatch
    > > </Directory>
    > >
    > >   Gregarius' documentation doesn't explain how to use a SQLite
    > > database, so all I did was edit dbinit.php like this:
    > >
    > > define ('DBTYPE',"sqlite");
    > > define ('DBNAME','gregarius');
    > > define ('DBUNAME','gregarius_admin');
    > > define ('DBSERVER', '/var/tmp/gregarius.db');
    > >
    > >   I don't know anything about sqlite, so I assumed that Gregarius
    > > would guide me with the creation of the database. The file
    > > gregarius.db doesn't exist, and so on.
    > >   The documentation for MySQL mentions a dbstruct file to create the
    > > structure of the database, but 1) this file is not present in the
    > > archive, and 2) it has no equivalent for SQLite.
    > >
    > >   After that, I opened Gregarius in my web browser, but all I get is
    > > a blank page, with empty source code.
    > >
    > > - I tried on Safari 2, Firefox 1.5 (on Mac and Linux) and Konqueror
    > > 3.5, so it's probably not a browser problem.
    > > - I tried moving the .htaccess file out of the way, to no avail.
    > > - There is no error in Apache's logs.
    > > - I found mentions of options "rss.output.usemodrewrite" and
    > > "rss.output.cachecontrol" but it seems the only way to tweak those
    > > variables is through the admin interface, which I can't access (blank
    > > page).
    > >
    > >   I guess the problem could come from the fact that I didn't create
    > > the database, but in this case shouldn't Gregarius at least display a
    > > page with an error message ?
    > >   Thank you for any help,
    >
    > Have you tried a recently nightly? http://gregarius.net/nightlies/
    
      Thanks for the tip. I downloaded and installed the latest build, but the 
    result is exactly the same.
    
    > If you look at http://wiki.gregarius.net/index.php/Installation it gives
    > you instructions on how to generate the dbstruct.sql file.
    
      The page you mention doesn't give any instruction to generate this file, but 
    I found some instructions in the INSTALL file inside the archive. It doesn't 
    work. According to the INSTALL file, the command :
    
    php schema.php --dump
    
    should send the SQL structure to stdout. When I try it, there is no output, 
    it's just empty.
    
    > I would recommend going to http://yourhost.net/gregarius/install.php and
    > seeing if you have all the requirements to run gregarius. It would be
    > better not the use the installer as it is not ready to handle edge cases.
    > Creating the dbinit.php file by copying over the sample file is better.
    
      I opened install.php in my web browser, and at least I got something 
    displayed, which is better than before. :-)
      It says:
    
    PHP Version : 5.0.4
    Socket: Found
    XML: Found
    Database: None!
    
      As expected, it doesn't find the database. But how do I create it, when 
    schema.php fails to generate the structure?
      And is that problem enough to stop Gregarius from generating any output, 
    even a main page?
    
    -- 
    Thibaut Cousin
    http://www.thibaut-cousin.net
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://sinless.org/pipermail/gregarius-dev/attachments/20060714/f4ddbae1/attachment.bin
    
    Posted by Thibaut Cousin [reply] at Fri Jul 14 16:37:18 CEST 2006