Course Hero Logo

Installation Guide.docx - Installation-Maintenance Guide...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 4 out of 17 pages.

Installation-Maintenance GuideSetup the Environment:Install the Windows Subsystem for LinuxBefore installing any Linux distros for WSL, you must ensure that the "Windows Subsystem for Linux" optional feature is enabledOpen PowerShell as Administrator and run:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-LinuxRestart your computer when prompted. Install “Ubuntu 18.04 LTS” from the Microsoft Store.Create a new UNIX username and password to complete the Ubuntu initialization process.For more details: NOTE: If you do not own a Windows PC, the above steps can be applied to the virtual machines assigned to you by Professor Sadjadi.Dependencies:Update the lists and ensure you are on the latest release:sudo apt update && sudo apt -y upgradeInstall PHP:sudo apt -y install software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo apt-get updatesudo apt -y install php7.4sudo apt-get install -y php7.4-{cli,fpm,json,common,mysql,zip,gd,mbstring,curl,xml,bcmath,bz2,intl,dom,xdebug,xmlrpc,soap}sudo apt install libapache2-mod-phpsudo a2enmod proxy_fcgi setenvifsudo service apache2 restartsudo a2enconf php7.4-fpmsudo service apache2 reload
Additional packages:sudo apt-get install network-manager libnss3-tools jq xselFor more information follow this link:Install ComposerMake sure you are in your home folder by typing:cd ~Then download composer with the following command: curl -sS -o composer-setup.phpThen run the file by typing: sudo php composer-setup.php –install-dir=/usr/local/bin –filename=composerNow finally we apt install using:sudo apt install composerNext, open the composer.json file using the following command:sudo nano .composer/composer.jsonIf you get an error saying the directory does not exist you can create it by running the following command:mkdir .composerand the run again sudo nano .composer/composer.jsonType in the following “require” lines into the file:{"require": {"squizlabs/php_codesniffer": "^3.5","laravel/installer": "^3.0"}}Press Crtl + X, then Y, then Enter to save and exit nano.
Now change the permissions of composer using this chowncommand:sudo chown -R $USER ~/.composer/Run this command for update:composer global updateIf you encounter the following error message on any commands involving Composer:“Your requirements could not be resolved to an installable set of packages”Add the –-ignore-platform-reqsto the end of the composer command.For example, instead of running composer global update, run composer global update –-ignore-platform-reqsIf you encounter an error with php version 8. you can uninstall it using the following command:sudo apt remove php8*Then you can re-run the command that gave you the error:composer global updateNow to ensure composer can be seen by the path, type: sudo nano ~/.bashrcand paste:export PATH="$PATH:$HOME/.composer/vendor/bin"to the bottom.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 17 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
STAFF
Tags
MYSQL, Control key, Advanced Packaging Tool, WSL

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture