Install

  1. have a working WordPress installation

  2. extract the LightPress archive in

    wp-content/plugins






  3. activate the LightPress plugin from the WP console




  4. enter the 'LightPress' menu and select installation type

    • testing

      will leave WP as-is letting you run LP in a sub-folder of your blog (eg http://my.blog.net/lightpress/)

    • root

      will let LP take over your main blog URL





  5. check LightPress options




  6. go back to the main 'LightPress' menu page to find out if any additional steps are needed




  7. review LightPress plugins




  8. edit LightPress plugins options




  9. open the LP URL in your browser and watch the PHP error messages scroll by :)

ludo, Monday 20 June 2005 17:46:09 PST

Readers' Comments

  1. erik

    the first image is useless, cant read the path…
    but try once more… do i have to place this within a lightpress subfolder? *hmmpf*

  2. erik

    no word on mod_rewrite… it doesn't work without right? or what am i doing wrong? thx

  3. ludo

    Erik, the first image reflects my setup.

    It uses mod_rewrite if .htaccess in your web folder (the same used by WP) is writable by the web server. LP works even without mod_rewrite, but you have to clear the 'post_prefix' option to tell it to use "raw" URLs.

  4. erik

    ok, i finally managed to get lightpress doing its job on a test-account that provides mod_rewrite… so i'm quite happy now.

    i would be very happy, if you could guide me step by step in order to delete this 'post_prefix' as i have no idea where this can be found.
    i'm also wondering if you advice me to make the htaccess unwritable for the apache (setting a chmod shouldnt help here right?) or…
    help very appreciated.

    i'd also like to help the team, as far as i find time for this, possible things for me to offer could be: translate some of the docs into german, give more critic feedback on the already existing docs (as i'm a newbie, i have all the usual problems others might run into again, & that i think you should be interested in - by solving through better documentation…), create lp templates (converting my existing wp-version)
    let me know how i can help / participate…

    btw: my opinion on the first image is still the same :-P as it doesn't tell clearly enough that files need to be stored in wp-content/plugins/lightpress/ (ok the words extract the zip do this, but just because this folder is in the zip) one more note on that (eg: you will finally find all lightpress files in plugins/lightpress folder) could have saved me from searching & deleting numerous files from the plugins dir. (i know what you wanna say ;-)

  5. erik

    something else: does "switching" to LP make WP-Updates unnecessary? or does updating from wp-1.5.1.3 to wp-1.5.2 still make sense (root install)

    next thing: a plugin wish: ;-) revised-image-headlines-for-lightpress (see equivalent)

    kind regards, erik

  6. erik

    and (hopefully) finally: a template 'bug' - visiting this site with a so called 'browser' that is in fact IE6/win the content swaps below the sidebar, so there's probably some floating-error, maybe caused by IEs annoying box-model interpretation…
    thats it for now (pretty sure) feel free to just delete this comment-spam ;-D

  7. not erik

    you'll want to set up a forum :-P to prevent readers from spamming :-D

  8. ludo

    Erik, have a little patience as both Jerome and I are on vacation, so we won't be able to answer as fast as we usually do. :)

    1. clearing post_prefix is easy, just go to the Lightpress "Options" menu and erase the "post_prefix" field.

    2. to make .htaccess not writable by anyone, do "chmod 444 .htaccess" to restore it to the default, do "chmod 644 .htaccess".

    3. you are more than welcome to contribute to the project; we have a forum (the link is on the right menu in the most pages), and a Wiki (again, on the right menu) where you can write documentation or translate the existing (still incomplete) docs.

    4. hehe ok, will replace the first image when I get back home. :)

    5. updating WP still makes sense, to get any security patch or new feature in the admin console or in the other WP files.

    6. Uhm, I tested the template with ie5, will check with ie6 whenever I can. Thanks for the tip.

  9. Fabio

    I installed Lightpress but at the end of installing process when I test lightpress I receive this error:

    Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/mhd-03/www.gpsnews.org/htdocs/wp-content/plugins/lightpress/classes/DBlite/MySQL.php on line 37

    Have you any idea about this problem?
    Thanks
    Fabio

  10. Doug Steinschneider

    I applied LightPress to a wordpress instance I'm using for a CMS that will cater to users of a CRM package - the focus being to teach them to write sql queries to retrieve/mine data from the system. I have hundreds of queries I'm going to enter categorized by type of search such as history, pending activities etc. I first searched for an opensource CMS and found very little so I went with WordPress which I already use for my Blog. I got worried that it might not scale so I added LightPress.

    Here is my question: I thought I was going to see errors because I'm using a modified version of Mike Little's Journalized-Blue wp template but everything is working fine - would I only need to use your template in order to take advantage of lightpress features that I'm not using in this case?

  11. ludo

    Doug, if you are seeing your blog exactly as it was before installing LightPress, it means LightPress is installed but not active.

    A possible reason is that LP is unable to overwrite your .htaccess. Try having a look at the main LightPress plugin page ("LightPress" in the WP admin console) and see if any additional steps are needed, then stop by our forum if you keep seeing WP instead of LP.

  12. jon

    hello,

    i'm excited to give lightpress a try but after installing it and going to my test lightpress directory i get a bunch of errors like this

    Notice: Undefined index: 0 in /home/sites/jon/users/buzz/public_html/pcs/wp-content/plugins/lightpress/classes/Frontend.php on line 1309

    etc

    what am i doing wrong?

  13. ludo

    Jon, what version are you using?

  14. jon

    lightpress-1.2.0-b1

  15. jon

    and it was a first-time install, not an upgrade (if that's a factor)

  16. jon

    i'm sorry, i seem to have forgotten to include this part, which appeared beneath all those "undefined index" errors:

    dblite_mysql.query() line 67: cannot execute query SELECT p.id, p.post_name AS name, p.post_title AS title, UNIX_TIMESTAMP(p.post_date) AS tstamp, s.context, COUNT(*) AS hits, (COUNT(*) / (NOW() - p.post_date)) AS freq FROM wp2_stats s INNER JOIN wp2_posts p ON p.post_name=s.postname WHERE s.log_id='jon' AND (s.context='post' OR s.context='static') AND p.post_date BETWEEN '2005-11-15 08:28:20' - interval 60 day AND '2005-11-15 08:28:20' - interval 1 day AND (p.post_status='publish' OR p.post_status='static') GROUP BY p.post_name ORDER BY freq DESC LIMIT 5 (mysql error: Table 'buzz_fukung.wp2_stats' doesn't exist) in /home/sites/jon/users/buzz/public_html/pcs/wp-content/plugins/lightpress/classes/DBlite/MySQL.php on line 133

  17. ludo

    My fault, it's the TopRead plugin which is enabled by default and looks for the stats table, which you do not have.

    Disable the TopRead plugin or enable the Stats plugin and the problem should hopefully disappear.

  18. jon

    thanks ludo! my lightpress page is showing up now :) but i still have 6 of those "undefined index: 0" errors showing up (actually it's a set of 3 twice)

    ————–

    Notice: Undefined index: 0 in /home/sites/jon/users/buzz/public_html/pcs/wp-content/plugins/lightpress/classes/Frontend.php on line 1309

    Notice: Undefined index: 0 in /home/sites/jon/users/buzz/public_html/pcs/wp-content/plugins/lightpress/classes/Frontend.php on line 1310

    Notice: Undefined index: 0 in /home/sites/jon/users/buzz/public_html/pcs/wp-content/plugins/lightpress/classes/Frontend.php on line 1311

    Notice: Undefined index: 0 in /home/sites/jon/users/buzz/public_html/pcs/wp-content/plugins/lightpress/classes/Frontend.php on line 1309

    Notice: Undefined index: 0 in /home/sites/jon/users/buzz/public_html/pcs/wp-content/plugins/lightpress/classes/Frontend.php on line 1310

    Notice: Undefined index: 0 in /home/sites/jon/users/buzz/public_html/pcs/wp-content/plugins/lightpress/classes/Frontend.php on line 1311

  19. ludo

    Uhm, very strange. It looks like the category of the post LP is trying to render is missing from the categories list. Never seen this one. Will try to debug it tonight…

  20. jon

    hmm, well, before you go spending too much time looking at that, i should disclose that the content of my WP was ported in from a script — as far as i know every post has a category which exists in the category list; it's possible a post was assigned a category which isn't in the list, but not likely (or apparent to me thus far). nevertheless i appreciate your efforts here!