• For .tar.gz archives
  • PHP code for opening .tar.gz archive
  • Database Image Processing Library




    Download 275.14 Kb.
    bet3/4
    Sana22.12.2019
    Hajmi275.14 Kb.
    1   2   3   4

    Installing Gallery 2


    Gallery 2 is a web application and must be installed on your web server in order for you to use it. If you've unpacked it on your desktop, you will have to upload it to your server as part of the install process. Then you can configure it using your web browser.

    1. Upload - Copy the Gallery 2 files to a directory on your webserver. There are several alternatives for this step:

    Fastest way: Upload the gallery package to your web server archive via FTP or another method, then unpack it using an interactive shell session (eg. ssh or telnet). Example unpacking commands (choose the appropriate one):

    For .tar.gz archives

    $ tar xzf gallery2.tar.gz



    For zip archives

    $ unzip gallery2.zip

    If you do not have shell access, you can ask your provider to do it for you, or you can make a miniature PHP script containing one of the above commands like this:

    PHP code for opening .tar.gz archive

    $output = shell_exec('tar xzf gallery-2.0.2-full.tar.gz');

    ?>

    Some webhosting companies offer a control panel with a web file-browser which is capable of extracting / unarchiving archive files. It’s worth a try to check if this option is available.



    Easiest (but slowest) way: If you don't have shell access, you can upload the complete contents of the Gallery 2 archive to the webserver with an FTP program. This may take a lot of time and be error-prone. In this case, pay special attention to the ’System Checks’ step of the installer and make sure that there are no missing or modified files. Consider using a smart FTP program like FileZilla to make sure that your transfer goes smoothly.

    Note: After uploading, you should close this version of the README and browse to the version that you just uploaded.

    That way all the links in this document will point to the right places in your Gallery 2 install.

    2. Begin Installing - Open up your web browser and browse to the install directory. Gallery 2 will walk you through the process of validating that your system is properly configured and will set everything up for you.



    • T

    • 200

    • 600

    • Os

    

    3. Authenticate - You will be asked to create and save a small text file in order to authenticate. You may not proceed until you do this. That’s how Gallery 2 knows that you’re authorized to use the installer.



    • T

    • 200

    • 600

    • Os

    

    4. System Checks - The installer checks your system to make sure that it will support Gallery 2. Make sure that all checks are successful!



    • T

    • 200

    • 600

    • Os

    

    5. Installation Type - Gallery can support multiple independent sites with a single installation of the code. Here you will select a standard single install or the location of a new multisite install. There is more information about multisite in the Gallery Codex.



    • T

    • 200

    • 600

    • Os

    

    6. Storage Setup - Read the instructions on the installer to set up a storage location for Gallery 2. This is where Gallery 2 will store all of your images, as well as other cache information.



    • T

    • 200

    • 600

    • Os

    

    7. Database Setup - Select your database type and enter your database authentication information. If this is not your first Gallery 2 installation and there are still some remains of the old installation, it will check the state of the installed version and offer a clean install option which will delete all your data in the storage directory and in the database. If the installed version seems to be fine, it will also offer to reuse the existing database tables. Select this option if you did not start the installer with the intent to start from scratch.



    • T

    • 200

    • 600

    • Os

    

    8. Admin User Setup - You are prompted for an administrator username and password. Type in a password and type it again to validate it. The full name and the email address are optional. But entering an email address is highly recommended. Once you’re finished, click ’Create’ to create the admin user for this installation of Gallery 2.



    • T

    • 200

    • 600

    • Os

    

    9. Create Config File - Gallery 2 will create the config.php file in your Gallery 2 directory. This contains all the answers you’ve provided in the installer and is necessary for Gallery 2 to function properly. At this point, there’s also a sanity check to prevent you from damaging your Gallery install by running the installer when you should rather have started the upgrader.



    • T

    • 200

    • 600

    • Os

    

    10. Install the Core module - Here’s where we create all the database tables and initial users and albums to get you started. Unless something goes wrong, there’s nothing for you to do here.



    • T

    • 200

    • 600

    • Os

    

    11. Install other modules - Gallery 2 has lots of different modules that provide useful functionality. Choose which ones you want to use. You can always go to the Site Admin page later on to install, activate, deactivate or uninstall modules, so it’s ok to experiment here.



    • T

    • 200

    • 600

    • Os

    

    12. Check Security - Gallery 2 walks you through the process of locking down your new config.php.



    • T

    • 200

    • 600

    • Os

    

    13. Finished! - Congratulations! You have successfully installed Gallery 2!



    • T

    • 200

    • 600

    • Os

    

    Download 275.14 Kb.
    1   2   3   4




    Download 275.14 Kb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Database Image Processing Library

    Download 275.14 Kb.