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
Related
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.
I have a Debian 8 distribution and am trying to get the tcpdf php library running for generating pdf documents. I notice that it is already installed as a package when searching for it in Synaptic Package Manager. It's version 6.0.093+dfsg-1 and its location is /usr/share/doc/php-tcpdf. I looked around online for instructions and tutorials for using the library in my php scripts but haven't found anything explicit and instructive. Neither do the official sites: https://tcpdf.org/ and https://github.com/tecnickcom/tc-lib-pdf offer any setup, installation, or integration documentation.
I downloaded the TCPDF-master.zip from https://github.com/tecnickcom/TCPDF , pasted it into my /var/www/html/ directory, but when I try running one of the examples, or the index.php file, the browser just gives me the following error:
The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500
The error.log file at /var/log/apache2 displays:
PHP Fatal error: Unknown: Failed opening required '/var/www/html/tcpdf/examples/example_001.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
I received the same errors even after installing PEAR and also when trying to run the fpdf library.
Please instruct me to follow the proper procedure on correctly using this library. Thanks.
First, install composer as described at http://www.bravo-kernel.com/2014/08/how-to-install-composer-on-debian/ . Make it globally available by running the following commands while logged in the terminal as user:
$ cd /usr/src
$ sudo apt-get install curl php5-cli
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
If the terminal responds with the following errors:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
a system restart might be needed due to a possibility of apt-get (or some GUI frontend to it) being halted while executing, leaving apt in a locked state.
Verify the installation:
$ composer --version
which should output:
Composer version 1.3.0 2016-12-24 00:47:03
or something similar.
Afterwards, navigate to the desired directory within terminal where you want to locally install the composer dependency. For instance: /var/www/html/ which is the web root on Debian. Input the command for installing the tcpdf php library:
composer require tecnickcom/tcpdf
as stated at https://packagist.org/packages/tecnickcom/tcpdf
All should now operate as intended.
I was trying to run the gulp command in the windows command promptafter installing node_modules in my laravel installation but it came back with this error in my windows command prompt :-
'gulp' is not recognized as an internal or external command,
operable program or batch file.
I was trying to use Lavarel Elixir and as in the Laracast videos I was trying to get the gulp command working on my command prompt but it shows
I installed node_modules using the below command
npm install --no-bin-links
it installed all the files
I am using Netbeans as my IDE and it is showing an error in the node_modules folder also , so I am unsure as to how to get this fixed and Working
My Work Environment is
Apache through MAMP
OS :- Windows 10
IDE :- Netbeans
Thanking you in anticipation
In order to be able to run gulp you need to install the gulp command line interface globally like so: npm install -g gulp-cli. Afterwards you need to add a gulpfile.js where you would configure your builds/tasks. For more information check out the official "Getting started" guide and the docs on gulp: https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md
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 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