Jump to content


Photo

how to install symfony on Uniform Server / winXP?


  • Please log in to reply
5 replies to this topic

#1 maxter

maxter

    Newbie

  • Member
  • Pip
  • 4 posts

Posted 06 November 2006 - 10:19 AM

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

#2 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 06 November 2006 - 03:56 PM

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

:)

#3 maxter

maxter

    Newbie

  • Member
  • Pip
  • 4 posts

Posted 07 November 2006 - 05:36 AM

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!

#4 maxter

maxter

    Newbie

  • Member
  • Pip
  • 4 posts

Posted 09 November 2006 - 08:06 AM

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

#5 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 09 November 2006 - 11:30 AM

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...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:
<W:\usr\local\php\pear>
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 <W:\usr\local\php\php.ini>? [Y/n] : y

php.ini <W:\usr\local\php\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/c...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

:)

#6 maxter

maxter

    Newbie

  • Member
  • Pip
  • 4 posts

Posted 11 November 2006 - 06:34 PM

:)

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users