skip to Main Content

Homepage Forums Machine Learning Playground Documentation Getting started with the installation of the website

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5415
    admin
    Keymaster

    Here are the details of the installation of the website on your server. If you need help to install the website on your own web server, visit this page.

    The script uses the Laravel framework. If you encounter difficulties to install the script, you can easily consult the help available at this address.

    1. Use an FTP software or the file manager of your hosting to upload all the files on your server. You need to upload all files to the server root.

    2. Configure the entry point. The entry point of Laravel is the file index.php, it is located in the directory: public/index.php. This is where you should redirect your domain name.

    3. Configure the configuration file on the server. Laravel uses an .env file that you have to configure manually on your server. This allows you to easily work locally, on a web server or on another without modifying the code of your website. This file must be created at the root of your server. You will find an example of this file at the bottom of the page.

    4. Then execute this command to create your database (require)

    php artisan migrate

    5. Create a symbolic link to the storage folder that will contain your images with the public folder. (require)

    php artisan storage:link

    6. Generate a security key (require)

    php artisan key:generate

    7. Configure your Twitter application in the .env file (optional)

    Sample file (.env)

    APP_NAME=Laravel
    APP_ENV=local
    APP_KEY=
    APP_DEBUG=false
    APP_URL=https://your_domain.com
    
    LOG_CHANNEL=stack
    LOG_LEVEL=debug
    
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=database_name
    DB_USERNAME=database_user
    DB_PASSWORD=database_password
    
    BROADCAST_DRIVER=log
    CACHE_DRIVER=file
    QUEUE_CONNECTION=sync
    SESSION_DRIVER=file
    SESSION_LIFETIME=120
    
    MEMCACHED_HOST=127.0.0.1
    
    REDIS_HOST=127.0.0.1
    REDIS_PASSWORD=null
    REDIS_PORT=6379
    
    MAIL_MAILER=smtp
    MAIL_HOST=mailhog
    MAIL_PORT=1025
    MAIL_USERNAME=null
    MAIL_PASSWORD=null
    MAIL_ENCRYPTION=null
    MAIL_FROM_ADDRESS=null
    MAIL_FROM_NAME="${APP_NAME}"
    
    AWS_ACCESS_KEY_ID=
    AWS_SECRET_ACCESS_KEY=
    AWS_DEFAULT_REGION=us-east-1
    AWS_BUCKET=
    
    TWITTER_CONSUMER_KEY=twitter_consumer_key
    TWITTER_CONSUMER_SECRET=twitter_consumer_secret
    TWITTER_ACCESS_TOKEN=twitter_access_token
    TWITTER_ACCESS_SECRET=twitter_access_secret
    
    PUSHER_APP_ID=
    PUSHER_APP_KEY=
    PUSHER_APP_SECRET=
    PUSHER_APP_CLUSTER=mt1
    
    MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
    MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Back To Top