Forum

I want to install tao on a web server, how to do that?

edited March 13 in Support

Dear experts,

i actually want to install tao on my web server
Edit Admin: URL removed!
under the folder tao. For example

i found the file here https://www.taotesting.com/get-tao/official-tao-packages/
Any Server or Desktop
Set up your own web server and install TAO manually.

i click o the README.md, am will type the green line of code on my terminal to install on my web server? I am stuck at line 10 composer install.
the terminal code in below.

Last login: Tue Mar 12 09:52:38 on ttys001
eduLabs-MacBook-Pro:~ lookang$ git clone https://github.com/oat-sa/package-tao.git
Cloning into 'package-tao'...
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 32822 (delta 2), reused 5 (delta 0), pack-reused 32807
Receiving objects: 100% (32822/32822), 40.34 MiB | 237.00 KiB/s, done.
Resolving deltas: 100% (15117/15117), done.
eduLabs-MacBook-Pro:~ lookang$ composer install
-bash: composer: command not found
eduLabs-MacBook-Pro:~ lookang$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
eduLabs-MacBook-Pro:~ lookang$ php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Installer verified
eduLabs-MacBook-Pro:~ lookang$ php composer-setup.php
All settings correct for using Composer
Downloading...

Composer (version 1.8.4) successfully installed to: /Users/lookang/composer.phar
Use it: php composer.phar

eduLabs-MacBook-Pro:~ lookang$ php -r "unlink('composer-setup.php');"
eduLabs-MacBook-Pro:~ lookang$ composer install
-bash: composer: command not found
eduLabs-MacBook-Pro:~ lookang$

Does anyone know how to proceed please?

Comments

  • If you are having issues with the installation of composer, I recommend checking that projects documentation - https://getcomposer.org/doc/articles/troubleshooting.md

    Thanks,

    Amy

  • edited March 15

    I tried to cd to my directory where tao is unzipped and did the composer script.
    but it still didn't allow me to install? How to proceed on?
    thanks!

    below is the output on my terminal

    Last login: Fri Mar 15 08:08:28 on console
    eduLabs-MacBook-Pro:~ lookang$ composer diagnose
    -bash: composer: command not found
    eduLabs-MacBook-Pro:~ lookang$ cd "google drive"
    eduLabs-MacBook-Pro:google drive lookang$ cd TAO_3.2.0-RC2_build
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ composer diagnose
    -bash: composer: command not found
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    php composer-setup.php
    php -r "unlink('composer-setup.php');"
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    Installer verified
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php composer-setup.php
    All settings correct for using Composer
    Downloading...

    Composer (version 1.8.4) successfully installed to: /Users/lookang/Google Drive/TAO_3.2.0-RC2_build/composer.phar
    Use it: php composer.phar

    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php -r "unlink('composer-setup.php');"
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ composer diagnose
    -bash: composer: command not found
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php composer.phar


    / ____/___ ____ ___ ____ ____ ________ _____
    / / / __ \/ __ `__ \/ __ \/ __ \/ / _ \/ ___/
    / /
    / // / / / / / / // / // (__ ) / /
    _
    /____// // // ./_/____/___//
    /_/
    Composer version 1.8.4 2019-02-11 10:52:10

    Usage:
    command [options] [arguments]

    Options:
    -h, --help Display this help message
    -q, --quiet Do not output any message
    -V, --version Display this application version
    --ansi Force ANSI output
    --no-ansi Disable ANSI output
    -n, --no-interaction Do not ask any interactive question
    --profile Display timing and memory usage information
    --no-plugins Whether to disable plugins.
    -d, --working-dir=WORKING-DIR If specified, use the given directory as working directory.
    -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

    Available commands:
    about Shows the short information about Composer.
    archive Creates an archive of this composer package.
    browse Opens the package's repository URL or homepage in your browser.
    check-platform-reqs Check that platform requirements are satisfied.
    clear-cache Clears composer's internal package cache.
    clearcache Clears composer's internal package cache.
    config Sets config options.
    create-project Creates new project from a package into given directory.
    depends Shows which packages cause the given package to be installed.
    diagnose Diagnoses the system to identify common errors.
    dump-autoload Dumps the autoloader.
    dumpautoload Dumps the autoloader.
    exec Executes a vendored binary/script.
    global Allows running commands in the global composer dir ($COMPOSER_HOME).
    help Displays help for a command
    home Opens the package's repository URL or homepage in your browser.
    i Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
    info Shows information about packages.
    init Creates a basic composer.json file in current directory.
    install Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
    licenses Shows information about licenses of dependencies.
    list Lists commands
    outdated Shows a list of installed packages that have updates available, including their latest version.
    prohibits Shows which packages prevent the given package from being installed.
    remove Removes a package from the require or require-dev.
    require Adds required packages to your composer.json and installs them.
    run-script Runs the scripts defined in composer.json.
    search Searches for packages.
    self-update Updates composer.phar to the latest version.
    selfupdate Updates composer.phar to the latest version.
    show Shows information about packages.
    status Shows a list of locally modified packages, for packages installed from source.
    suggests Shows package suggestions.
    u Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
    update Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
    upgrade Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
    validate Validates a composer.json and composer.lock.
    why Shows which packages cause the given package to be installed.
    why-not Shows which packages prevent the given package from being installed.
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php composer.phar install
    Loading composer repositories with package information
    Installing dependencies (including require-dev) from lock file
    Nothing to install or update
    Generating autoload files
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$

  • Whilw the composer folks can give you the definitive answer as to what is going on using the following command will install composer in /user/local/bin as the name composer.

    php composer-setup.php --install-dir=/user/local/bin --filename=composer

    Thanks,

    Amy

  • sorry I am not very good with terminal

    I type in what is given above and the error message is below.
    I think I have composer already in the TAO_3.2.0-RC2_build folder

    Last login: Tue Mar 19 14:10:05 on ttys000
    eduLabs-MacBook-Pro:~ lookang$ cd "google drive"
    eduLabs-MacBook-Pro:google drive lookang$ cd TAO_3.2.0-RC2_build
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php composer-setup.php --install-dir=/user/local/bin --filename=composer
    Could not open input file: composer-setup.php
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$

    how do I go on?

  • Re-run this command first if you do not have the composer-setup.php file any longer

    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

    Thanks,

    Amy

  • edited March 20

    the new error looks like this now, should I create /user/local/bin
    ?

    Last login: Wed Mar 20 10:16:06 on console
    eduLabs-MacBook-Pro:~ lookang$ cd "google drive"
    eduLabs-MacBook-Pro:google drive lookang$ cd TAO_3.2.0-RC2_build
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php composer-setup.php --install-dir=/user/local/bin --filename=composer
    The defined install dir (/user/local/bin) does not exist.
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$

  • On Mac it is /usr/local/bin

    Thanks,

    Amy

  • thanks!
    I continue to the readme, below is my terminal output, i am stuck at line 14.

    Last login: Fri Mar 22 11:34:47 on console
    eduLabs-MacBook-Pro:~ lookang$ cd "google drive"
    eduLabs-MacBook-Pro:google drive lookang$ cd TAO_3.2.0-RC2_build
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ php composer-setup.php --install-dir=/usr/local/bin --filename=composer
    All settings correct for using Composer
    The installation directory "/usr/local/bin" is not writable
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ sudo php composer-setup.php --install-dir=/user/local/bin --filename=composer
    Password:
    No log handling enabled - using stderr logging
    Created directory: /var/db/net-snmp
    Created directory: /var/db/net-snmp/mib_indexes
    The defined install dir (/user/local/bin) does not exist.
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
    All settings correct for using Composer
    Downloading...

    Composer (version 1.8.4) successfully installed to: /usr/local/bin/composer
    Use it: php /usr/local/bin/composer

    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ composer install
    Loading composer repositories with package information
    Installing dependencies (including require-dev) from lock file
    Nothing to install or update
    Generating autoload files
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ sudo chown -R www-data package-tao
    Password:
    chown: www-data: illegal user name
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$

  • You will need to find the directory where the package-tao directory resides and then type that command there.

    Thanks,

    Amy

  • didn't seem to work

    please help again :)

    Last login: Fri Mar 22 11:34:59 on ttys000
    eduLabs-MacBook-Pro:~ lookang$ cd "google drive"
    eduLabs-MacBook-Pro:google drive lookang$ cd TAO_3.2.0-RC2_build
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ cd package-tao
    eduLabs-MacBook-Pro:package-tao lookang$ sudo chown -R www-data package-tao
    Password:
    chown: www-data: illegal user name
    eduLabs-MacBook-Pro:package-tao lookang$

  • You will need to determine what user is running apache on your machine and chown -R the directory to that user.

    Thanks,

    Amy

  • in my mac, I am lookang
    so what do I type in the terminal?
    I typed sudo chown -R lookang www-data package-tao but it didn't work

    Last login: Sun Mar 24 13:10:48 on console
    eduLabs-MacBook-Pro:~ lookang$ cd "google drive"
    eduLabs-MacBook-Pro:google drive lookang$ cd TAO_3.2.0-RC2_build
    eduLabs-MacBook-Pro:TAO_3.2.0-RC2_build lookang$ cd package-tao
    eduLabs-MacBook-Pro:package-tao lookang$ sudo chown -R www-data package-tao
    Password:
    chown: www-data: illegal user name
    eduLabs-MacBook-Pro:package-tao lookang$ sudo chown -R lookang www-data package-tao
    chown: www-data: No such file or directory
    chown: package-tao: No such file or directory
    eduLabs-MacBook-Pro:package-tao lookang$

  • To see what users are available on your Mac, please type the following command in your terminal, and share the output with us
    users

    Also, to make sure you are in the right directory, please open the directory in which you are installing TAO. When there, right click the folder containing the TAO installation, and while holding down the option key, select "Copy "DIRECTORY_NAME" as path".

    From there, go back to the terminal, type in cd , and press Command + V (to paste the path you just copied)

    Depending on the output of the users command, run the following command:

    sudo chown -R [USER NAME GOES HERE] ./

    Where [USER NAME GOES HERE] will be replaced by the correct user name.

    Also please let us know what Webserver you installed.

    Thanks,

    Amy

  • To see what users are available on your Mac, please type the following command in your terminal, and share the output with us
    users

    Also, to make sure you are in the right directory, please open the directory in which you are installing TAO. When there, right click the folder containing the TAO installation, and while holding down the option key, select "Copy "DIRECTORY_NAME" as path".

    From there, go back to the terminal, type in cd , and press Command + V (to paste the path you just copied)

    Depending on the output of the users command, run the following command:

    sudo chown -R [USER NAME GOES HERE] ./

    Where [USER NAME GOES HERE] will be replaced by the correct user name.

    Also please let us know what Webserver you installed.

    Thanks,

    Amy

  • edited 12:31AM

    indeed the users type in terminal and it is confirmed
    Last login: Tue Mar 26 08:10:45 on ttys000
    eduLabs-MacBook-Pro:~ lookang$ users
    lookang

    I created a folder called tao and i copied the path as suggested
    /Users/lookang/Google Drive/tao
    i added the "" for "Google Drive" to work properly for spaced names in folder

    but I didn't manage to install inside tao. please advise how to go on?
    thank! below is my terminal output

    Last login: Tue Mar 26 08:10:45 on ttys000
    eduLabs-MacBook-Pro:~ lookang$ users
    lookang
    eduLabs-MacBook-Pro:~ lookang$ cd /Users/lookang/"Google Drive"/tao
    eduLabs-MacBook-Pro:tao lookang$ sudo chown -R lookang ./
    Password:

    and
    my webserver domain name is iwant2study.org
    cpsrvd 11.74.0.6
    Database client version: libmysql - 5.1.73
    PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
    PHP version: 5.6.30

  • Hi Lookang,

    I've been following your post, and wanted to make sure you are trying to install TAO on a local webserver.

    Given you specified a domain name (iwant2study.org). It looks like you are trying to install TAO on a remote server instead. Is that a correct assumption?

    Martijn

  • edited 2:21PM
    Dear martijn,
    Yes. A remote web server is what I want.
    Thanks
  • Hi Lookang,

    I see, in that case the procedure would be slightly different. In most cases you have remote access to your webserver. This can be either through an FTP connection, SSH connection, or a web interface.

    Using one of these forms of remote access you can upload the TAO installation to your remote webserver. From there (depending on your webserver's) setup, you should be able to complete the TAO installation using the User interface.

    As an example, say that you upload the TAO installation under a subdirectory (eg. tao) in your webserver, you should be able to open up the installation interface by going to iwant2study.org/tao. Again, this depends heavily on the setup of your webserver. So please be sure to check the correct procedure with your hosting provider as well!

    If you have any other questions, be sure to let me know!

    Martijn

Sign In or Register to comment.

We use cookies on our website to support technical features that enhance your user experience. Cookie Policy Privacy Policy

×