Symfony2 installing vendors in Windows - php

I'm new in symfony2, I have an instance when I'm trying to installing vendors in windows using the below command.
php app/console bin/vendors install
after this command I got the below errors
In mac and linux this command works but in windows it is not working properly. In windows After this command it deletes some of the folder in vendor .
Does anybody knows about this why it happens in windows?

I helped a poor (actually he uses windows seven like you, so he must be kind of rich) friend of mine the other day with the very same issue. Just install git-bash and you'll be fine. Plus, git-bash will provide you with a waaaaaaay better cli than what you have for the moment.
You can install it from here. Make sure you check the git-bash option.

Related

How to install Symfony 2.6 with wamp server in windows 8 successfully?

I am new to web development and I tried to install Symfony to my Laptop.. I have already installed fallowing softwares.
Windows 8 ( 64x )
wamp Server 2.4 (includes php5.4.12 & mysql5.6.12)
MySql Server 5.6 (This is not useless but I have installed)
I added C:\wamp\bin to path in System Variable
When I was trying to install Symfony I had to download Composer first So I downloaded Composer-Setup.exe from here
Then I run the wamp Server and went to PHP Extensions then Enabled php_curl and php_openssl also.
I did run Composer-Setup.exe file and selected Do not install shell menus and continued.
set C:\wamp\bin\php\php5.4.12\php.exe as the path to php.exe file
Finally I got following Composer Download error message
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
Have I done wrong steps ? How can I solve this issue. Please help me to solve this and install Symfony 2.6 with wamp server 2.4 in Windows 8.
Note: This method does not use the composer but is equally effective
First ensure that PHP is available to your Path environment/system variable, if not add it.
Once you have added php to your environment variable restart your computer and open cmd and cd to your web root directory (project directory)
In cmd run the following:
$php -r "readfile('https://symfony.com/installer');" > symfony
This will download a file named symfony into your project directory (i.e. directory from where cmd is run)
Install the latest version of symfony as follows:
$php symfony new my_project_name
OR
Install/use the most recent version in a specific branch say 2.8
$php symfony new my_project_name 2.8
OR
Install/use specific version version within a specific branch
$php symfony new my_project_name 2.8.3
Note: steps 4, 5, or 6 will take some time, depending on your Internet speed to download Symfony
Is there a specific reason you want to install a WAMP stack? In my experience it's much easier and flexible to use Vagrant to provision a virtual machine with the right specs
Portable: just run vagrant up on another machine, wait a few minutes, and you're done
Allows you to keep the configuration of your developer's machines and the target server the same
Fixing a broken package just requires you to run vagrant up --provision later
Many packages like composer are written more with *Unix-systems in mind and will be easier to maintain and install.
Simply put, configuring an entire server directly on your machine is tedious work and isn't longer necessary. The Vaprobash project is a good example of how to get started

how to install Phabricator on windows?

I tried to install Phabricator on windows 8 with WAMP Apache Server.
As per the below link I installed Arcanist and confirmed with the comment
arc -v
https://secure.phabricator.com/book/phabricator/article/arcanist_windows/
Next I try to access the Phabricator page on my localhost, I can see only the .sh for Linux, Nothing for windows. Please guide me if you installed successfully on windows.
http://localhost/phabricator/scripts/install/
Use below steps to setup phabricator/arc cli on windows box.
Download & Install Git Bash.
It needs PHP, if you don't have PHP installed on machine then you use XAMP or WAMP. Find the installation directory for PHP and set system path for that.
Open command prompt and test the php installation by writing php command. If it does not show any error then you can skip step-4.
In case of MSVCR100.dll missing error. download the exe file from here: http://www.microsoft.com/en-in/download/details.aspx?id=30679 and install it.Once again test php installation.
Use Git Bash to do following:
Clone below repos somewhere:
git clone https://github.com/phacility/libphutil.git
git clone https://github.com/phacility/arcanist.git
Again update system path similar to step 3 and add there : <path>\arcanist\bin
Test arc help command in Git Bash.
Install Phabricator server certificate using arc install-certificate command.
Add an editor by following https://secure.phabricator.com/book/phabricator/article/arcanist_windows/
You cannot install Phabricator on Windows. However, you can install it on a Virtual Box such as Oracle VM VirtualBox which is free. Once you have VirtualBox, you need to create a Virtual Ubuntu there. After installing Ubuntu on VirtualBox you can install Phabricator there, on Ubuntu, by following the instructions.
If you need more help with details and whatnot, I will gladly help you.
The Phabricator server does not support Windows. See the Install Guide:
To install the Phabricator server software, you will need an operating system ... which is not Windows. ... [T]he server software does not run on Windows. It does run on most other operating systems, so choose one of these instead:

Install phpsh on Windows

Has anyone had success installing phpsh on Windows?
I have Php 5.2 and Python 2.7 on my Windows 7 machine. When I try to run setup.py, I get a NameError: name '__init__' is not defined. I found someone had forked the project here, but I ran into the same error.
Any idea what I can do?
The only solution for phpsh on Windows is to run CoLinux. Then you have a full Linux and Windows running together without having to run a virtual machine. The only other choice is to run a virtual machine with Linux, but if you system is slow this would not be fun.

how to set develop environment for zend framework 1.11.11 in netbeans 7.1.1 using wamp?

hey guys I need your help for setting environment for zendframe work ? I have installed my netbeans in D: drive under D:/program files/netbeans. and the zend framework is under D: drive. and my wamp package is installed under c:/wamp. now what i need is to configure these all for my development?
I searched google, stackoverflow and every blog i could for the whole day. but all that I got is a error given below.
'"php.exe"' is not recognized as an internal or external command,
operable program or batch file.
tell me how can I solve this ? what should I do ? Do I need to set all these under one roof or I need to upgrade my PHP version ???
Yes My config is written below.
WAMP Server 2.0c with PHP 5.2.6, MySQL 5.0.51b, Apache 2.2.8.
Netbeans 7.1.1 and Zend framework 1.11.11
Add php.exe to your environment variable PATH. If you add the directory where php.exe is installed to your PATH environment variable (you may need to log out for it to take effect), it should work.
See this tutorial
You may actually specify the path to PHP interpreter within Netbeans, in Options - PHP - General tab.
Perhaps you should set up the include_path as well to make Zend modules (at least autoloading one) recognizable.
Update to a more up-to-date version of PHP first.
Then, ensure that PHP is on your environment PATH variable. You can look up on google how to do that.
You'll have to install phpunit too after you get that setup. WAMP might come with it but I doubt it. Usually this is easy if you have pear. You can get the pear commands from the phpunit site.
If you don't have pear you'll have to install that. Download a 'go-pear.phar' file that is appropriate to you. You usually install it by running php go-pear.phar' and then you can use pear it install phpunit.
You can then call it a day OR you can continue setting up Netbeans to automatically use phpunit.
If you don't setup netbeans then you'll have to just use phpunit on the command line.
After the pear phpunit install just run phpunit on the command line and you should get some sort of 'help' output.
Edit : Step by step details.
I'm going to assume you have xdebug, php, netbeans installed from your comments. It seems like your only issue is installing phpunit.
Here goes.
Open up a command prompt
Open a browser window.
In your browser go to http://pear.php.net/go-pear
Save the text file that comes up into the directory php is installed in.
Go to the php directory php is installed in via the cd command on the terminal.
Type in the command php go-pear.phar
Follow the installation instructions for pear and pick the options that make the most sense. I just install everything in the php directory so php and pear live in the same place.
After pear is installed type in the following commands ( from the phpunit install website : http://www.phpunit.de/manual/current/en/installation.html ) You might have to use sudo here, if you're on windows maybe not.
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
9 Run phpunit -h on the command line and you should get some help message. If you're on windows you might have to open up a new command line prompt before you try this.

APC - PHP 5.2.17 - Windows - IIS

I am trying to get APC up & running but there are to many versions out there - and to many open questions. My configuration is as follows:
PHP 5.2.17 windows installer
Server 2003
IIS
I also seen some topics that the cant be uninstalled?
Questions,
What file should i download from http://downloads.php.net/pierre/ ?
Is it possible to get APC to work with this config?
Regards, Joakim
I believe you can install APC with pecl, which should come with PHP.
So find the pecl executable and run from command: pecl install apc.
Then make sure it places the .so in the right directory.
Note that I'm a linux user, not sure if this works exactly the same way on Windows.
Edit:
First result on google: http://www.iis-aid.com/articles/how_to_guides/install_and_configure_apc_on_iis

Categories