Results 1 to 3 of 3

Thread: [HowTo] Install Serendipity Weblog/Blog system

  1. #1
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336

    [HowTo] Install Serendipity Weblog/Blog system

    Serendipity is a complete blogsystem written in php. It is simple to install and does not require a specific knowledge.

    precondition: installation according wengi's howto and wtpe's howto for lighttp, php and mysql as well as howto for esmtp (email) (Credit to Wengi and WTPE for their good job!)
    WinSCP, Putty, mc or nano or vi is called editor
    A Router with min. 32 MB Ram (=> WL500gP) is strongly recommended, better is 128MB.

    Assumption: in this example-installation the super user is root and not admin.

    Preamble: Depending on traffic and related articles, serendipity's database can become pretty big. A disadvantage of Wengis howto is the 1 GB /opt partition, hence a large database can cause problems.
    But as we are using linux, this is not a real problem. With just a few commands you can store your database elsewhere. See item "move mysql database" how to do so without changing mysql.
    Ensure that mysql is running! Issue a "ps xf | grep mysql
    You should see several lines with mysql

    Installation:
    1.) cd to your my.cnf directory: cd /opt/etc/my.cnf
    2.) open my.cnf and add the following 2 lines to section [mysqld]:
    default-character-set=utf8
    default-collation=utf8_general_ci
    store the changed my.cnf
    3.) now remove the old database with:
    rm /opt/var/lib/mysql/mysql/*.*
    rmdir /opt/var/lib/mysql/mysql

    #MOVE MYSQL DATABASE (if you want to store your database elsewhere)
    rmdir /opt/var/lib/mysql
    #create a directory elsewhere (here dir database)
    mkdir /tmp/mnt/disc0_3/database
    #make a symbolic link to it
    ln -s /tmp/mnt/disc0_3/database /opt/var/lib/mysql
    #END OF MOVE MYSQL DATABASE

    4.) finally create a new database, issue a
    /opt/bin/mysql_install_db
    reboot
    5.) mysql -u root
    6.) use mysql;
    7.) update user set Password = PASSWORD('mypasswd') where User ='root';
    8.) create database serendipity;
    9.) grant ALL PRIVILEGES on serendipity.* to root@localhost;
    10.) set password for root@localhost = password('mypasswd');
    11.) flush privileges;
    12.) exit;
    13.) create a directory: mkdir /tmp/mnt/disc0_3/blog
    14.) cd /tmp/mnt/disc0_3/blog
    15.) wget http://prdownloads.sourceforge.net/p...e.zip?download
    16.) tar -zxf serendipity-1.5.5-lite.zip
    17.) chown -R root:root /tmp/mnt/disc0_3/blog/serendipity
    18.) ln -s /tmp/mnt/disc0_3/blog/serendipity /opt/share/www/blog
    19.) now start serendipity with your browser (IE; Forefox - the Initialisation take a few seconds):
    http://your.ip.of.asus/blog
    20.) use database serendpity and user root with mypasswd (item 7.), keep everything as suggested, even language
    for administration choose a user as you want and a strong password, then save everything
    21.) now start serindipity again with http://your.ip.of.asus/blog and open the login screen (right bottom)
    22.) log in with your user and password and go to administration, configuration, general settings
    choose your language and set under charset selection to native (your database is always utf8, hence use native)
    23.) save everything, you should get no error message
    24.) Now your Blog-system is ready to use http://ip.of.your.asus/blog


    hint: when you want to enter mysql again, use: mysql -u root -p
    enter mypasswd
    do not forget howto leave mysql: exit;

    For more informations/documentation goto http://www.s9y.org (the home of serendipity)
    If you want to install a full version of serendipity, you still can use this howto, just change the addresss and name
    of 15.) and 16.)

    Any suggestions or improvements a.s.o. are greatly appreciated

    And a special thanks to WTPE for the mysql suggestions and solutions.

    Here you can find a screenshoot.
    Enjoy!
    Newbiefan
    Last edited by newbiefan; 13-06-2011 at 12:50.
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

  2. #2
    Thank you for this HowTo. I used it for guideline for installing PHP-Fusion.
    I just don't understand this line?

    18.) ln -s /tmp/mnt/disc0_3/blog/serendipity /opt/share/www/blog
    Why that link? In wpte's html guide to html is told to make harddisk folder already webserver folder in lighttp.conf file. So why to link to that opt/share/www?

  3. #3
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    Quote Originally Posted by jeremees View Post
    Thank you for this HowTo. I used it for guideline for installing PHP-Fusion.
    I just don't understand this line?



    Why that link? In wpte's html guide to html is told to make harddisk folder already webserver folder in lighttp.conf file. So why to link to that opt/share/www?
    Well, it's just a symbolic link to your webserver, therefore your blog can be stored anywhere. In case your webserver is stored on a own hdd (or you have enough remaining place), store everything there without symlink.
    Newbiefan
    Last edited by newbiefan; 10-01-2012 at 06:24.
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

Similar Threads

  1. [HowTo] install pyLoad
    By !gm in forum WL-500gP Tutorials
    Replies: 4
    Last Post: 22-06-2011, 19:06
  2. lighttp and php tutorial
    By theboy50 in forum WL-500g/WL-500gx Tutorials
    Replies: 29
    Last Post: 30-01-2008, 18:03
  3. Cannot install IPKG system
    By brianyu in forum WL-HDD Q&A
    Replies: 2
    Last Post: 28-08-2007, 06:41

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •