تعليمات تثبيت أوبن بيبليو

من ويكي أضِف
اذهب إلى التنقل اذهب إلى البحث

<html>

<head>

<meta name="description" content="OpenBiblio Library Automation System"> <title>تعليمات تثبيت أوبن بيبليو (المكتبة المفتوحة)</title> <style type="text/css"> .notice {

 margin-left: 50px;
 margin-right: 50px;
 border: solid black 1px;
 background: #ffaaaa;
 padding: 4px;

} .new {

 margin-left: 50px;
 margin-right: 50px;
 border: solid black 1px;
 background: #ffffaa;
 padding: 4px;

} h1 { border-bottom: solid black 1px } th { text-align: right } </style> </head> <body bgcolor="#ffffff" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">

Contents:

  • <a href="#releaseNotes">Release Notes</a>
  • <a href="#sysReq">System requirements</a>
  • <a href="#install">Install Instructions</a>
  • <a href="#update">Updating from a previous version of OpenBiblio</a>

<a name="releaseNotes">

Release Notes:

</a>

الإصدارة 0.7.1 هي الموصى بها للتثبيتات الجديدة وللتحديث من نسخة أقدم من أوبن بيبليو من ضمنها كل النسخ من openbiblio.de. أهم التغييرات هي:

  • حُدّث ليتوافق مع MySQL 5.5.
  • حُدّث ليعالج الميزات التي أهملت في PHP 5.3.x.
  • حُدّث لتوافق بأثر رجعي مع التغيرات الغير متوافقة مع PHP 5.4.0 .
  • إصلاحات في بقّات في ميزات OpenBiblio .
  • New and changed features: Check In shows hyperlinked member name (with Days Late and outstanding Account Balance), Override Due Date, Renew All, Offline Circulation, Bibliography Checkout History, Custom Copy Fields, Copy Barcode Number validation less restrictive and optional, new search types Call Number and Keyword, OPAC search and view exclude nonpublic fields, new parameters for reports Copy Search and Popular Bibliographies, new reports, new layouts for media labels and member cards.

See the <a href="ChangeLog">ChangeLog</a> for more details. Please understand that 0.7.0 never was released officially, but we are still trying to following the version numbering convention expressed at the release of 0.6.0. Some changes for 0.7.1 might appear as new features (not in 0.7.0), technically they are built on bugfixes.

Update urgency:

  • Versions below 0.5.2: urgent. The deviant versions from openbiblio.de can now be updated <a href="#update">automatically</a>.
  • 0.5.2: urgency depends on required compatibility, bugfixes, new features and on trusting staff users with the reports privilege.
  • 0.6.0, 0.6.1: urgency depends on required compatibility, bugfixes and new features.
  • 0.7.0: many fixes for new features, especially in Circulation.

Known limitations:

  • MARC is not stored perfectly in the database tables (issue 1, fixed in obiblio-10-wip).
  • The search process was designed to be easy for the end user, not to query large databases efficiently - do not expect great performance when more than 20,000 MARC records with lots of fields are imported.
  • UTF-8 multibyte characters: very limited support in reports and possibly issues with search (issue 19).
  • If you have not updated to 64 bit PHP before some day in the year 2038: days late and late fee not calculated, incorrect timestamp calculations for holds (issue 51).

OpenBiblio test suite ran successfully on the following configurations:

أنظمة التشغيل: Microsoft Windows 7 Ubuntu 9.04 (GNU/Linux) Ubuntu 9.04 (GNU/Linux)
إصدارة PHP: 5.4.0 RC4 VC9 EasyPHP 5.3.1 XAMPP for Linux 173a 4.3.9 XAMPP for Linux 149a
Web Server: Apache 2.2.21 VC9 Apache 2.2.14 Apache 2.0.52
MySql Version: 5.5.19 5.1.41 4.0.21
Browser: Firefox 10.0.2
Internet Explorer 9.0.5
Firefox 3.6.27 Firefox 3.6.27

<a name="sysReq">

System requirements:

</a>

  • PHP version 4.2.0 or higher and a web server which supports it
  • MySQL version 4.0.12 or higher
  • A relatively modern web browser. Versions of Internet Explorer before 6.0 may have problems with PDF files generated by OpenBiblio. Users of Netscape 4.x and earlier may suffer from appearance problems.

OpenBiblio 0.7.1 is still compatible with ancient versions of PHP and MySQL. Make sure to use versions that are updated for security.


Commonly used scenarios for making a system meet the requirements:

  • Linux: add the required software using a "package manager".
  • Windows: for standalone use or testing purposes use a "WAMP" package like <a href="http://www.easyphp.org">EasyPHP</a>.
  • Handpick the required software: full procedure below.

Find more reading, tutorials, etc. in the documentation section of <a href="http://obiblio.sourceforge.net/">OpenBiblio's home</a>.

<a name="install">

Install Instructions:

</a>

For systems that meet the requirements: jump to <a href="#step5">step 5 and finish the procedure.</a>


When using phpMyAdmin for setting up the database:

  • Open the SQL query window.
  • Run the SQL commands from <a href="#step5">step 5</a> and step 6 in the procedure below. The command is the part in bold directly after mysql>
  • Jump to <a href="#step8">step 8</a> and finish the procedure.

Procedure

Steps 1-4: التفاصيل عفا عليها الزمن, لكن الأساسيات لا زالت تنطبق.
  1. ثبّتوا خادم ويب ك <a href="http://httpd.apache.org/">Apache</a> مثلا متوافق مع PHP. إذا ثبّتم أباتشي، إستطلعوا كيف يتم تشغيله وإيقاف خادم أباتشي. إن كنتم تستخدمون ويندوز 95 أو ويندوز 98 سيكون هناك أيقونات "Start Apache" و "Stop Apache" تساعدك على تشغيل وإيقاف الخادم. قد ترغبون بإضافة أيقونة "Start Apache" إلى مجلد startup. إن كنت تشغل ويندوز NT أو 2000 you can add Apache as a service which will be running, even if you are logged off. إن كنت تستخدم Linux فإن خادم أباتشي سيكون من الممكن تثبيته بإستخدام نظام الحزم من نسختك من لينكس، وسيعمل تلقائيا عندما تشغل لينكس.
  2. Add PHP to your web server as a CGI or a module. If you are using Apache 2.0, I would highly recommend that you install PHP as a module instead of a cgi application. In my experience the Apache PHP module performed over 4 times faster than the cgi PHP. See <a href="http://www.php.net/manual/en/install.apache2.php">Example 3-9. PHP and Apache 2.0 as Module</a> in the <a href="http://www.php.net/manual/en/">PHP Manual</a> for more info on how to install PHP as a module.

    OpenBiblio uses session data. Therefore, you will need to make sure PHP sessions are turned on. Be sure to create a directory for your session data on your server and specify the session.save_path in your php.ini file. The default php.ini sets session.save_path to "/tmp". Therefore, you have to create a directory called c:/tmp (for Windows) users. However, I usually create a more descriptive name inside my PHP directory and then change my php.ini file to match it.

    Example php.ini directive:

    session.save_path = d:\PHP\sessiondata

    See section <a href="http://www.php.net/manual/en/ref.session.php">XCIII. Session handling functions</a> in the PHP manual for more details on PHP sessions.

  3. Install the MySQL database from <a href="http://www.mysql.com/">http://www.mysql.com/</a>. Get familiar with starting and stopping your MySQL Server. See <a href="http://www.mysql.com/doc/W/i/Win95_start.html">Starting MySQL on Windows 95 or Windows 98</a> for more information.

    If you are running NT or Windows 2000, setup MySQL as a service so it starts whenever the machine powers up. See <a href="http://www.mysql.com/doc/N/T/NT_start.html">Starting MySQL on Windows NT or Windows 2000</a> for more information on starting MySQL as a service.

    If you are running Linux, MySQL should be packaged with your Linux installation and will start when you start Linux.
  4. Get familiar with logging into MySQL with your admin account within a DOS prompt window. You can use the following command sequence as a test.
    C:\><b>c:\mysql\bin\mysql -uroot mysql</b>
    Enter password: <b>*********</b>
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 8 to server version: 3.23.26-beta
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer
    
    mysql> <b>show databases;</b>
    +--------------+
    | Database     |
    +--------------+
    | mysql        |
    +--------------+
    6 rows in set (0.00 sec)
    
    mysql> <b>exit</b>
    Bye
    
    C:\>
    
  5. <a name="step5">
  6. Create an OpenBiblio database. To do this, log into MySQL with your admin account and run the following SQL command.
    mysql> <b>create database OpenBiblio /*!40100 default character set latin1 */;</b>
    

    New: The conditional comment /* ... */ is executed on MySQL 4.1.0 or higher and specifies latin1 as the default database character set for the database created.


    You might discover issues when the database character set is not latin1.

    database character set tab Admin: Library Settings, field HTML Charset comment
    latin1
    (recommended)
    iso-8859-1
    (initial value, set by install)
    No issues.
    utf8 UTF-8 Issues for multibyte characters
    • Search?
    • PDF layouts


    New: When OpenBiblio HTML Charset setting is UTF-8, PDF layouts can display some multibyte characters correctly by converting to single byte.


    To check to make sure the OpenBiblio database was created properly, run the following command.

    mysql> <b>show databases;</b>
    +--------------+
    | Database     |
    +--------------+
    | mysql        |
    | OpenBiblio   |
    +--------------+
    
  7. </a> <a name="step6">
  8. Create an OpenBiblio database user. To do this, login to MySQL under the admin userid and run the following SQL command, substituting obiblio_user and obiblio_password with the userid and password of your choice.
    mysql> 
        -> 
    <b>grant all privileges on OpenBiblio.* to <i>obiblio_user</i>@localhost</b></b>
    <b>identified by '<i>obiblio_password</i>';
  9. </a>
  10. Verify your OpenBiblio database and user by logging into the new MySQL database under the new user.
    <b>C:\mysql\bin\mysql -u<i>obiblio_user</i> -p<i>obiblio_password</i> OpenBiblio</b>
    
  11. <a name="step8">
  12. Copy the openbiblio directory and all of its contents into your web server's htdocs root or any subdirectory within the htdocs root.
  13. </a> <a name="step9">
  14. Edit the database_constants.php file (located in the main openbiblio directory) with the text editor of your choice. Change the username and password to match the new MySQL user and password that you created in the previous steps.
  15. </a>
  16. Create the OpenBiblio database tables. To do this run the install php script located at <a href="http://localhost/openbiblio/install/index.php">http://localhost/openbiblio/install/index.php</a>, assuming you placed the openbiblio directory in the root htdocs directory.
  17. For security: Remove the openbiblio/install directory completely to prevent unauthorized use of install or upgrade tools.
  18. For security: Verify that the display_errors setting in php.ini is 'Off' to prevent unintended information disclosure.
  19. Access your new library automation system at <a href="http://localhost/openbiblio/index.php">http://localhost/openbiblio/index.php</a>, assuming you placed the openbiblio directory in the root htdocs directory. Enter "admin" for both the userid and password whenever you are prompted to signon. You can change the admin password from the "Admin" tab -> staff list, where you can also add more library staff members.



<a name="update">

التحديث من نسخة أقدم من أوبن بيبليو:

NEW: Updates from openbiblio.de versions

(e.g. 0.5.1.7) can now be performed automatically.

The following patches that were used in openbiblio.de are not incorporated in version 0.7.1:
<a href="http://sourceforge.net/tracker/?func=detail&aid=1158176&group_id=50071&atid=458476">Membership-Feature</a>

Tested: field member.mbrshipend does not interfere with 0.7.1 and data remains untouched.
Untested suggestion: apply the patch to your 0.7.1 updated OpenBiblio.

<a href="http://sourceforge.net/tracker/?func=detail&aid=1118359&group_id=50071&atid=458476">Add Browse by Subject</a>
<a href="http://sourceforge.net/tracker/?func=detail&aid=1117840&group_id=50071&atid=458476">Add picture to Bibliography</a>
<a href="http://www.flos-inc.com/projects/index.php#main">New Member Screen</a> (barcode entered automatically for new members)


  1. Rename your old openbiblio installation directory so that you don't lose its contents. We'll call the old directory openbiblio-old.
  2. Copy the new openbiblio directory and all of its contents into the directory where the old openbiblio installation was.
  3. Copy the database_constants.php file from the openbiblio-old directory into the new openbiblio directory, replacing the database_constants.php file there.
  4. Backup your database. See your MySQL documentation for instructions.
  5. Update your OpenBiblio database tables by using the conversion tool located at <a href="http://localhost/openbiblio/install/index.php">http://localhost/openbiblio/install/index.php</a>, assuming you placed the openbiblio directory in the root htdocs directory.
  6. For security: Remove the openbiblio/install directory completely to prevent unauthorized use of install or upgrade tools.
  7. For security: Verify that the display_errors setting in php.ini is 'Off' to prevent unintended information disclosure.

Updates from 0.7.0: 0.7.1 is a bugfix release to 0.7.0: it can run without upgrading the database. However, step 5 is recommended. This cleans unused entries from the database and lifts some restrictions.

</a>

</body> </html>