Jump to content
The Uniform Server Community
maxter

how to install symfony on Uniform Server / winXP?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.com

Adding Channel "pear.symfony-project.com" succeeded

Discovery of channel "pear.symfony-project.com" succeeded

 

I tested it see above

 

All the best

 

:)

Share this post


Link to post
Share on other sites

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.com

Adding Channel "pear.symfony-project.com" succeeded

Discovery 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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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-pear

Welcome to go-pear!

 

Go-pear will install the 'pear' command and all the files needed by

it. 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 bundled

with 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. To

change individual locations, type the number in front of the

directory. Type 'all' to change all of them or simply press Enter to

accept 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: ok

Downloading package: PEAR-stable......ok

Downloading package: Archive_Tar-stable....ok

Downloading package: Console_Getopt-stable....ok

Downloading package: XML_RPC-stable....ok

Bootstrapping: PEAR...................(remote) ok

Bootstrapping: Archive_Tar............(remote) ok

Bootstrapping: Console_Getopt.........(remote) ok

Downloading package: MDB2.............ok

Extracting installer..................ok

warning: 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.11

install ok: channel://pear.php.net/Archive_Tar-1.3.1

install ok: channel://pear.php.net/Console_Getopt-1.2

install ok: channel://pear.php.net/XML_RPC-1.5.1

install ok: channel://pear.php.net/MDB2-2.3.0

 

******************************************************************************

WARNING! The include_path defined in the currently used php.ini does not

contain the PEAR PHP directory you just specified:

If the specified directory is also not in the include_path used by

your 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\pear

Configured directory : W:\usr\local\php\pear

Currently used php.ini (guess) : W:\usr\local\php\php.ini

Press 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

 

:)

Share this post


Link to post
Share on other sites

:)

 

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...