Announcement

Collapse
No announcement yet.

Trying to install a script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to install a script

    I am trying to install a php script on one of my add-on domains. I have uploaded the script with BlueFTP, but I am struggling with the first two steps in the installation process:
    • Move the 'www' directory (or its contents) into a web accessible directory.
    • Move the 'lib' directory into a non-web accessible directory.

    Does this mean editing the chmod? I'm not sure what a non-web accessible directory would be...
    http://MuayThai.me

  • #2
    Re: Trying to install a script

    it could.. depends..what it is and what the rest of the instructions are.. but that would most likely work. Sounds like you are using a dreamweaver templated script.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    02036089024 / United Kingdom
    291916438 / Australia

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


    Comment


    • #3
      Re: Trying to install a script

      Well, what should I edit the chmod to?

      here's the rest of the instructions:
      ----------------------------------

      Install:
      • Upload and uncompress the downloaded files on your web server.
      • Move the 'www' directory (or its contents) into a web accessible directory.
      • Move the 'lib' directory into a non-web accessible directory.
      • Inside the www/admin directory find the config-dist.php file and rename it to config.php.
      • Open the config.php file and edit the following:
        • Database connection parameters

        // MySQL Database Connection
        $GLOBALS[ 'DB_HOST' ] = 'db_host';
        $GLOBALS[ 'DB_DB' ] = 'db_db';
        $GLOBALS[ 'DB_USER' ] = 'db_user';
        $GLOBALS[ 'DB_PASS' ] = 'db_pass';
        • Base URL will point to the the location you placed the www directory or its content.

        $GLOBALS[ 'SITE_BASE_URL' ] = 'http://example.com/www';
        • Lib path

        *nix systems:
        $GLOBALS[ 'LIB_PATH' ] = '/home/httpd/lib';
        Windows systems:
        $GLOBALS[ 'LIB_PATH' ] = 'c:\\inetpub\\lib';
        • Edit the $GLOBALS[ 'TB_*' ] names if you have tables named the same as the defaults.
      • Create the required tables using the appropriate lib/sql/install_*.sql file. If you changed any of the table names in config.php, change them to match in the install_*.sql file too.
        • Use the 'mysqli' file if you have PHP5 and MySQL 4.1 or greater.
        • Use the 'mysql' file if you have PHP4.

        If you don't know, try the opt/test.php to find out.
      • Make the lib/cache directory writable.
      • Place these fonts in the lib/fonts directory:
        • arial.ttf
        • arialbd.ttf

        You may aquire these fonts from http://corefonts.sourceforge.net/ or a Windows PC.
      • The watermark sizes are initally setup for the fonts listed above. The JPGraph software you may optionally choose to install requires those fonts as well. All that said, you may use any other TrueType fonts you wish.
      • Login to the www/admin page with:

      Login: admin
      Password: changeme
      Optional:
      • Make the lib/template/*.tpl files writable if you will edit them from inside the admin.
      • To enable the stats graphs, install JPGraph:


      • Install JPGraph into the lib directory in a folder named 'jpgraph'.
      • Edit the jpg-config.inc:
        • Change the cache directory path to your lib/cache path.

        DEFINE( "CACHE_DIR", "c:\\inetpub\\lib\\cache\\" );
        • Change the font directory path to your lib/fonts path.

        DEFINE( "TTF_DIR", "c:\\inetpub\\lib\\fonts\\" );
      • After you test everything, edit www/admin/config.php and turn off debugging.

      $GLOBALS[ 'SITE_DEBUG' ] = 0;
      Notes:
      • If you have problems:
        • Upload the opt/*.php files to you web server and view them in a browser.

        test.php - Performs specific tests on your web environment and the capabilities of your PHP/MySQL install.
        phpinfo.php - Provide you with all available PHP information.
      http://MuayThai.me

      Comment


      • #4
        Re: Trying to install a script

        Actually, Im not sure that this doesnt have to be installed on the server end of things.. not just your site..in otherwords an addon for php. Check with Vodahost..as I believe the library they are referring to .. you cant access..even tho they give you library files.

        Karen

        VodaHost

        Your Website People!
        1-302-283-3777 North America / International
        02036089024 / United Kingdom
        291916438 / Australia

        ------------------------

        Top 3 Best Sellers

        Web Hosting - Unlimited disk space & bandwidth.

        Reseller Hosting - Start your own web hosting business.

        Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


        Comment


        • #5
          Re: Trying to install a script

          Am finding it difficult to upload a PHP script too and i will be glad if aqny one around could help me out.

          Comment


          • #6
            Re: Trying to install a script

            What kind of help do you need?

            Karen

            VodaHost

            Your Website People!
            1-302-283-3777 North America / International
            02036089024 / United Kingdom
            291916438 / Australia

            ------------------------

            Top 3 Best Sellers

            Web Hosting - Unlimited disk space & bandwidth.

            Reseller Hosting - Start your own web hosting business.

            Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


            Comment

            Working...
            X