Problems with install Class 'PEAR_Registry' not fo

Hi, when I ran the pear bat file it did the install but I got this at end of it


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

contain the PEAR PHP directory you just specified:

<C:\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.



Current include path : .;C:\php5\pear

Configured directory : C:\PHP\pear

Currently used php.ini (guess) :



When i run the installer I get



Fatal error: Class 'PEAR_Registry' not found in c:\program files\apache group\Apache\htdocs\steps\versioncheck.inc on line 281



Also the installer shows GD and PSpell not installed even though I have uncommented the extension=php_gd2.dll

in the php.ini file



my php directory is C:\PHP



Can u help?



Thanks



Rich…:slight_smile:

Make sure you have added the PEAR directory into the include_path in the php.ini file (which should be c:\PHP\pear). Also, make sure that the extension_dir in php.ini is set to the location of the extensions, which, in your case should be c:\php\extensions


so the include_path should look something like:


    include_path = ".;c:\php\includes;c:\php\pear"


and your extension_dir should look like:

    extension_dir = c:\php\extensions


hope this helps ;)

If you're getting the 'Registry not found' error, leave the pear path textbox blank during the install. The installer will then search for each pear class manually instead of trying to use the pear registry.

ok , i have tried putting the path into the php.ini file, so it now looks like this


;;;;;;;;;;;;;;;;;;;;;;;;;

; Paths and Directories ;

;;;;;;;;;;;;;;;;;;;;;;;;;



; UNIX: "/path1:/path2"

;include_path = ".:/php/includes"

;

; Windows: "\path1;\path2"

include_path = ".;c:\php\includes;c:\php\pear"



; The root of the PHP pages, used only if nonempty.

; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root

; if you are running php as a CGI under any web server (other than IIS)

; see documentation for security issues. The alternate is to use the

; cgi.force_redirect configuration below

doc_root = ".;c:\program files\apache group\apache\htdocs"



; The directory under which PHP opens the script using /~username used only

; if nonempty.

user_dir =



; Directory in which the loadable extensions (modules) reside.

extension_dir = c:\php\extensions



; Whether or not to enable the dl() function. The dl() function does NOT work

; properly in multithreaded servers, such as IIS or Zeus, and is automatically

; disabled on them.

enable_dl = On



I don't appear to have an includes folder in the php folder ?



and the extensions folder is called 'ext'



:blink:



Rich…:slight_smile:

Ok, i have managed to get some of the PEAR modules to work!


.ini file path was wrong, it should be





; Windows: "\path1;\path2"

include_path = ".;c:\php;c:\php\pear"



But, :blink: some of the PEAR modules are not working, the installer shows



Required PEAR module "Mail_Mime" is not installed.

Please run pear install Mail_MimeRequired



PEAR module "XML_HTMLSax" is not installed.

Please run pear install XML_HTMLSax



please advise, thanks,



Rich…:slight_smile:

Mail_Mime and XML_HTMLSax are not included in the standard PEAR install with PHP. You need to install them manually. It should be as easy as going to a command prompt, changing to the C:\PHP directory and running:

    C:\PHP> pear install Mail_Mime
    C:\PHP> pear install XML_HTMLSax