I'm installing Magento 2 for the first time following this tutorial https://www.javatpoint.com/how-to-install-magento-2-using-composer. XAMPP is installed (with Apache and MySQL running), the database is setup on PHPMyAdmin, but when I try to run php bin/magento setup:install (step 23 in the tutorial) I get the error: Could not validate a connection to Elasticsearch. No alive nodes found in your cluster
How can I fix this?
Download Elastic Search first on your system -
https://www.elastic.co/downloads/past-releases/elasticsearch-7-6-0
After Downloading follow this step -
Extract the .zip file
Open Terminal or command prompt and go to the extracted path
run command .\bin\elasticsearch.bat
if this does not work just go to the extracted folder and opened the elasticsearch.bat file inside the bin folder.
and the install Magento with setup: install command.
Hope it helps!!
Please run this Command in Terminal
sudo service elasticsearch start
And after run that command again run php bin/magento setup:install
Hope Your issue will be solve.
Thank you.
Related
I tried to install with scoop, tried with binary installation and it crashed. Everytime I run symfony command I always get Warning: readfile(http://symfony.com/installer): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in Command line code on line 1. Then I tried to install it on wsl, but I get same results. Any idea how to fix it?
I suggest you install it using the recommended method, using Scoop tool
Scoop official website
Open powershell from start menu then paste this code to install it (I got it from scoop website)
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
Then in powershell execute this command
scoop install symfony-cli
this is the current recommended method to install symfony cli on windows
After that check it by calling this command
symfony -v
If it doesn't work try closing powershell and open it again ( so It refreshs its variables ) the use the last command again
If this doesn't work the problem may be in your OS configuration or networking
Good luck
I suggest you install it with power shell with the given steps
Step1 - Open Power shell and Run the command -
iwr -useb get.scoop.sh | iex
Note – If it asks for Some execution policy for powershell, run the following command and then try installing scoop.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Step 2 -
scoop install symfony-cli
Step 3 - Create Symfony Project -
symfony new newApp
Then
cd newApp
Don't forget to update to latest version using :
scoop update symfony-cli
I am new to magento & I was installing an extension into my magento version 2.1.7 but the system readiness check shows the following error currently megento is present in my system with windows 8 operating system.
Error shown while installing extension in magento2.1
Error shown while installing extension in magento2.1
I have tried the below given solutions but no any solution is worked with it my magento directory also & from my system32 also.
php ls -al <your Magento install dir>/var/.setup_cronjob_status
It is showing the following response.
Could not open input file:ls
I also tried the below code
php crontab -u magento2.1 -l
&
php crontab -u Admin -l
where magento2.1 is the user name of my Magento & Admin is my system name.
Both the code given an error as follows
Could not open input file:crontab
I am running this magento with Php version 7.0.2 & Xampp version 7.0.20-0-VC14
Whether it is an error of not having cron in my system or something else?
Any Idea?
Try to run the cron files of Magento by run the cron file separately.
Just simply go to the root directory of your Magento open command prompt there & run the below commands
php bin/magento cron:run
php update/cron.php
php bin/magento setup:cron:run
I installed Magento 2.1 in Windows 10 and work with these commands:
php bin/magento cron:run
php update/cron.php
php bin/magento setup:cron:run
I have a local install of JenkinsCI. Installed via instructions in the Chapter 2 of Jenkins The Definitive Guide. I start Jenkins via Java Web Start/JNLP file on my MAC running El Capitan. All that went great, sample project is working.
I know want to get my Codeception Acceptance test running via Jenkins. I'm following the most recent blog post about this on the Codeception site: http://codeception.com/02-04-2015/setting-up-jenkins-with-codeception.html#.VwWxE2PLRAZ.
Using the Execute shell build step, my build fails with the following message:
Started by user anonymous
Building in workspace /Users/Cosette/.jenkins/workspace/Project Name
[Project Name] $ /bin/sh -xe
/var/folders/ns/ly6hv_513tl6qqslrb2vj_dw0000gn/T/hudson9210778078639547082.sh
composer install
/var/folders/ns/ly6hv_513tl6qqslrb2vj_dw0000gn/T/hudson9210778078639547082.sh:
line 2: composer: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
My guess is that maybe this install type doesn't install the Jenkins user? Please note I am very beginner level and this is my first question here on stackoverflow. Also, That should be a + sign in front of "composer install".
You should download composer from https://getcomposer.org/, rename it to composer, make executable with chmod +x and place somewhere in the PATH of Jenkins.
I have yet to find an answer to ensuring the Jenkins user has access to files under other users. I eventually gave up and installed via homebrew, eliminating the Jenkins user all together. For now I'm just placing everything necessary to run in Users/UserName/.jenkins/Home/workspace/Project-name
I am trying to update my Php to 5.5 on a mac (by pasting "curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5" into terminal). The download starts but gives the following message before the downloads stops:
Package 5.5-frontenddev is already installed at version 5.5.5-20131020-233829. You wanted to install version 5.5.5-20131020-233829.
Is there anyway around this as I really need 5.5 in order to continue with my course!
Thank you in advance for any help.
Margate
You should be able to delete the packager registry log and just try the command again, making sure you have removed the relevant folders from /usr/local/php5-*.
The file is located at:
/usr/local/packager/registry.log
I am currently working with symfony2 and I want to launch to download the libraries I need. I know the command in linux is "$ ./composer.phar update --dev" however when I run this in windows it prompts whether I should open the file with the windows explorer or not. I currently have composer.phar installed on windows but I am having trouble launching it. How would I be able to update my symfony2 folder with the dependencies I need. Thank you.
In CMD:
php C:\ProgramData\ComposerSetup\bin\composer.phar self-update
The problem is that Windows don't know how to open .phar files. You need to execute them using php interpreter php composer.phar update and the php interpreter(php.exe) must be accessible on PATH.
You could use command php -v to check if your php is accessible from command line.
Go to C:\ProgramData\ComposerSetup\bin\composer.phar
In CMD write php composer.phar (update) or (self-update)
1: Open cmd
First go to your work directory like if you have wamp then c:/wamp/www.
Then enter composer if you can see list of composer command then its good.
Now type "composer self-update".
5: Next you can see the process.
This worked for me on my Centos server
sudo -u nginx php composer.phar update