I am trying to deploy laravel application using deployer.org. The setup process works fine at my home on mac computer. But while I am trying to setup deployer on windows I am facing some error.
While running the following command
mv deployer.phar /usr/local/bin/dep
I get the following message
mv: cannot create regular file '/usr/local/bin/dep': No such file or
directory it seems /usr/local/bin/dep does not exist.
What will the right location on Windows
Deployer Documentation
The path : /usr/local/bin is for Mac or Linux OS
For windows : You can copy your file to any location. But you will have to create a environment variable with the name deployer so that you can call deployer from any location in windows.
Refer this link
https://www.computerhope.com/issues/ch000549.htm
Related
i have a server that have 2 hard drive, i have install cpanel on home directory and some of website are in home2
also my server is cent os 7.9
now my issue is when install for example ffmpeg on server, site on home can use it in php shell_exec but site in home2 can't use and get error command not found
i add user of site in home 2 to wheel group and if i connect using ssh ,it work with ffmpeg command but if i try using shell_exec or cpanel terminal it's return command not found error
what is the problem? can any one help?
I'm trying to install phpunit manually on my windows machine. I don't use composer, so I have to install it manually with a .phar file. I'm following the instructions from the official documentation:
https://phpunit.readthedocs.io/en/latest/installation.html#windows
I've done every step, but it won't work. phpunit --version will throw me the message 'phpunit' is not recognized as an internal or external command, operable program or batch file. Can someone Help me?
I'm using Windows 7 64-bit with XAMPP 3.2.2 and PHP 7.1.1.
EDIT:
My phpunit.cmd file location is C:\xampp\php\phar\phpunit.cmd.
The file contains the code #php "%~dp0phpunit.phar" %*. I've added ;C:xampp\php\phar to my PATH variable.
In order to make Windows recognize any command, you must put the binary's path in the relevant environment variable (PATH). Before that you need to create some kind of file Windows can run natively (i.e. not a .phar – can be a command line / batch file or executable). Here are instructions:
https://phpunit.de/manual/current/en/installation.html#installation.phar.windows
Edit: If following the above instructions, it's also important to make sure that php itself is part of the PATH environment variable, so that it's possible to execute commands like php phpunit.phar.
I am trying to install Symfony 2.7 as instructed by the manual.
When I open CMD (I am running it as an administrator in Windows 8.1) the default path is C:\Windows\System32. I have tried running the command specified in the documentation there (c:\> php -r "readfile('http://symfony.com/installer');" > symfony), as well as in the root directory, both give me the same error.
I am using WAMP, the appache rewrite module and php_xls are activated.
I've also added the following to the PATH in the environment variables: ;C:\wamp\bin\php\php5.2.5;C:\wamp\bin\mysql\mysql5.0.45\bin
After having added it, I rebooted the computer and still nothing worked. How can I install Symfony 2.7?
Here is the solution to your original problem:
You just have to make sure that the path to your php executable is correct when you add it to your PATH environment variable. This path is probably related to the version of PHP you have. You should be able to find this path by navigating inside your wamp installation and looking for the php folder and binary. In your case, this would be C:\wamp\bin\php\php5.5.12
However, for the new problem you have...
However, I get the error The directory name is invalid when I execute
the following command: c:>projects\ php symfony
You just have to make sure that your PATH is updated with the correct path for your php, and then do this from C:>
php projects\symfony
Note that php is the executable and projects\symfony is the path to the symfony file.
I am trying to install Laravel for first time. I installed it on my desktop with the following composer command
composer create-project laravel/laravel laravel-app
The command completed successfully without any error but with some messages like
symfony/var-dumper suggests installing ext-symfony_debug ()
symfony/translation suggests installing symfony/config ()
I now did chmod -R 777 larvel-app to make whole folder writable by everyone. I now started php server with following command
cd laravel-app
php artisan serve
and it gave following message
Laravel development server started on http://localhost:8000
When viewed from web browser in address http://localhost:8000, there is nothing, only blank page. When I browse this address, the server seems to quit.
I have following environment:
OSX Mavericks;
MAMP with php 5.4.10 and apache2;
following extensions in php.ini file
extension=imap.so
extension=yaz.so
extension=mcrypt.so
extension=gettext.so
extension=pgsql.so
extension=pdo_pgsql.so
extension=pdo_mysql.so
;;;;;Following are added by me ;;;;no error when starting server
extension=openssl.so
extension=mbstring.so
When I run which php from command line, I get following.
/Applications/MAMP/bin/php/php5.4.10/bin/php
When I tried to run this in mamp ie localhost:8888, it gave 500 internal server error.
Please suggest me, where I might have made mistake.
As a OSX user i strongly recommend you to use Laravel Homestead to develop your applications.
http://laravel.com/docs/5.0/homestead
You only need to install:
Virtualbox
Vagrant
I have my projects in ~/code folder, so everytime i create a new project, i just:
Add project test domain to my local host file (my-project.app pointing to localhost 127.0.0.1)
ssh into the homestead virtualmachine (homestead ssh)
run built in serve command (serve my-project.app /path/to/project/public)
Voilà
The most common reason for this is that the web server process does not have write access to the storage folder and its subfolders.
Set the permissions on the storage folder so that the web server can create files.
You don't have to use php serve, mamp does that for you. Make sure you point your directory to public folder. You can also use custom domain for each of your projects.
Also for Mac there is laravel valet. Easy to get started with many php projects.
I think you should move your Laravel Application to
/Applications/MAMP/htdocs/
and then you can access it on
http://localhost:8888/laravel-app
I am having trouble getting the Bake console.
I am on Windows running XAMPP.
I'm doing the IBM CakePHP tutorial.
Here is my directory:
C:\
xampp
htdocs
ibm2 (a test project - orginally called cakephp)
app
cake
vendors
(etc)
It says to use Bake,
cd into the /webroot/app directory and
launch the Cake Console:
../cake/console/cake bake. You should
be presented with a screen that looks
like Figure 2.
So I write in my command prompt till I am at:
C:\xampp\htdocs\ibm2\app>
Then I type
../cake/console/cake bake
but I get this error:
'..' is not recognized as an internal
or external command, operable program
or batch file.
What am I doing wrong? I use the Windows command prompt
Take a look at Setting Up the CakePHP Console on Windows screencast.
start the command prompt:
type cd\ press enter and then cd:/xampp/php press enter
php.exe C:/xampp/htdocs/cakeblog/lib/cake/console/cake.php bake press enter
This trick works for me :-
Go to shell folder which is in bin folder in cakephp 3.0.
Click on batch file.
After it open cmd and set path to your folder like cd xampp/htdocs/test and then enter bake commands
In cakephp 3.X bake and windows environment with wamp server you should have yet php environment variable active:
check with Powershell and type php-v if you see your version of php
Install cake php bake https://book.cakephp.org/bake/1/en/index.html
no need to install cakephp environmetn variable only go to the root folder on your project and type: PS C:\wamp64\www\yourcakephp3.x_project>bin/cake bake
first check bake command in command prompt if it gives the out put not recognized as
internal or external command than first add environment variable correctly than cake bake will
work correctly