maxter Posted November 6, 2006 Report Share Posted November 6, 2006 Hi all, I have successfully installed the Uniform Server on my WinXP machine.Then I installed PEAR - I had the common fatal error regarding the PEAR class, which I fixed by upgrading the go_pear script as shown elsewhere on this forum. Now I want to try the symfony framework and tried to install it as directed here, using the pear channel-discover feature. so I opened a DOS shell and navigated to W:\home\admin\www\plugins\pear , then entered the pear channel-discover pear.symfony-project.com unfortunately I got this strange error: W:\home\admin\www\plugins\pear>pear channel-discover pear.symfony-project.com""W:\home\admin\www\plugins\pear\"" isn't recognized as an internal or external command, an executable program or a batch file. I tried to use pear.bat as a name, to add the current directory to the Path variable, etc. and adding quotes to wrap the full command, but to no avail. what am I doing wrong? how can I use PEAR's channel manager? thanks in advance, Max Quote Link to comment Share on other sites More sharing options...
Ric Posted November 6, 2006 Report Share Posted November 6, 2006 If you have installed Pear correctly you probably are running the command from the wrong location! Change to the php folder W:cd usr\local\php A quick check type in pear – help will list all the help commands for pear with this confirmed type your command in: pear channel-discover pear.symfony-project.com W:\usr\local\php>pear channel-discover pear.symfony-project.comAdding Channel "pear.symfony-project.com" succeededDiscovery of channel "pear.symfony-project.com" succeeded I tested it see above All the best Quote Link to comment Share on other sites More sharing options...
maxter Posted November 7, 2006 Author Report Share Posted November 7, 2006 If you have installed Pear correctly you probably are running the command from the wrong location! Change to the php folder W:cd usr\local\php A quick check type in pear – help will list all the help commands for pear with this confirmed type your command in: pear channel-discover pear.symfony-project.com W:\usr\local\php>pear channel-discover pear.symfony-project.comAdding Channel "pear.symfony-project.com" succeededDiscovery of channel "pear.symfony-project.com" succeeded I tested it see above All the best Hi, thanks for your answer , it seems I still need some help to get it sorted. I cd'ed as you directed me but I get the following error:"pear is not recognized as an internal or external command, an executable file or a batch file", so I cannot proceed with pear channel-discover.the pear install goes ok. it says to add a path to my include_path I do so, using the format specified, and restart the server, but it does no good. Ciao! Quote Link to comment Share on other sites More sharing options...
maxter Posted November 9, 2006 Author Report Share Posted November 9, 2006 Hi, thanks for your answer , it seems I still need some help to get it sorted. I cd'ed as you directed me but I get the following error:"pear is not recognized as an internal or external command, an executable file or a batch file", so I cannot proceed with pear channel-discover.the pear install goes ok. it says to add a path to my include_path I do so, using the format specified, and restart the server, but it does no good. Ciao! I discovered a little more .... if I enter the command above with the server stopped, pear.bat is found, but fails because the install-dirs point at the virtual drive W: (which does not exist since the uniform server is stopped). if I try to run it with the server up, the bat file is not found (I run the commands from both the dir you specified above and from the one where the pear.bat is located).... can anyone help me troubleshoot this? :-) thank you Quote Link to comment Share on other sites More sharing options...
Ric Posted November 9, 2006 Report Share Posted November 9, 2006 With this error "pear is not recognized as an internal or external command, an executable file or a batch file” Means you have not installed pear correctly try this: Open a command window and type whats in bold: C:\>w: W:\>cd usr\local\php W:\usr\local\php>php -r "readfile('http://pear.php.net/go-pear');" > go-pear W:\usr\local\php>php go-pearWelcome to go-pear! Go-pear will install the 'pear' command and all the files needed byit. This command is your tool for PEAR installation and maintenance. Use 'php go-pear local' to install a local copy of PEAR. Go-pear also lets you download and install the PEAR packages bundledwith PHP: MDB2. If you wish to abort, press Control-C now, or press Enter to continue: Enter HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none:: Enter Below is a suggested file layout for your new PEAR installation. Tochange individual locations, type the number in front of thedirectory. Type 'all' to change all of them or simply press Enter toaccept these locations. 1. Installation prefix : W:\usr\local\php 2. Binaries directory : $prefix 3. PHP code directory ($php_dir) : $prefix\pear 4. Documentation base directory : $php_dir\docs 5. Data base directory : $php_dir\data 6. Tests base directory : $php_dir\tests 7. Temporary files directory : $prefix\temp 8. php.exe path : W:\usr\local\php\php.exe 1-8, 'all' or Enter to continue: Enter The following PEAR packages are bundled with PHP: MDB2.Would you like to install these as well? [Y/n] : y Loading zlib: okDownloading package: PEAR-stable......okDownloading package: Archive_Tar-stable....okDownloading package: Console_Getopt-stable....okDownloading package: XML_RPC-stable....okBootstrapping: PEAR...................(remote) okBootstrapping: Archive_Tar............(remote) okBootstrapping: Console_Getopt.........(remote) okDownloading package: MDB2.............okExtracting installer..................okwarning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1)warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2)pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0) pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0) pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk2" (version >= 0.1.0)install ok: channel://pear.php.net/PEAR-1.4.11install ok: channel://pear.php.net/Archive_Tar-1.3.1install ok: channel://pear.php.net/Console_Getopt-1.2install ok: channel://pear.php.net/XML_RPC-1.5.1install ok: channel://pear.php.net/MDB2-2.3.0 ******************************************************************************WARNING! The include_path defined in the currently used php.ini does notcontain the PEAR PHP directory you just specified:If the specified directory is also not in the include_path used byyour scripts, you will have problems getting any PEAR packages working. Would you like to alter php.ini ? [Y/n] : y php.ini include_path updated. Current include path : .;\usr\local\PHP\includes;\usr\local\PHP\pearConfigured directory : W:\usr\local\php\pearCurrently used php.ini (guess) : W:\usr\local\php\php.iniPress Enter to continue: Enter The 'pear' command is now at your service at w:\usr\local\php\pear.bat ** The 'pear' command is not currently in your PATH, so you need to** use 'w:\usr\local\php\pear.bat' until you have added** 'W:\usr\local\php' to your PATH environment variable. Run it without parameters to see the available actions, try 'pear list'to see what packages are installed, or 'pear help' for help. For more information about PEAR, see: http://pear.php.net/faq.php http://cvs.php.net/co.php/pearweb/doc/pear...manager.txt?p=1 http://pear.php.net/manual/ Thanks for using go-pear! * WINDOWS ENVIRONMENT VARIABLES *For convenience, a REG file is available under W:\usr\local\php\PEAR_ENV.reg .This file creates ENV variables for the current user. Double-click this file to add it to the current user registry. W:\usr\local\php> Repeat this: If you have installed Pear correctly you probably are running the command from the wrong location! Change to the php folder W:cd usr\local\php A quick check type in pear – help will list all the help commands for pear with this confirmed type your command in: pear channel-discover pear.symfony-project.com Quote Link to comment Share on other sites More sharing options...
maxter Posted November 11, 2006 Author Report Share Posted November 11, 2006 Hi, I was able to pear channel-discover and install symfony by following the CLI staps you had pointed out. after that I had to add W:\usr\local\php to the PATH variable to be able to run symfony. Now I am getting an 500 internal server error running my very first symfony project (from docs) ... but well, I think this is outside the scope of the Uniform Server Crew thank you again, now I'll need to troubleshoot this new issue Ciao Max Quote Link to comment Share on other sites More sharing options...
ShimickJohn Posted April 16, 2021 Report Share Posted April 16, 2021 Symfony is the leading, modern PHP framework that is used to create secure websites and web applications. I was surfing for blogs that can assist on how we can install symfony 3 on Cloud server, didn't knew that I can find such old thread with a look alike question and thread. It was good reading thou👍 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.