|
From: Tomas K. <to...@us...> - 2012-04-26 16:41:01
|
morten44 wrote: > > Hi > I am running Ubuntu 11.10 with ISPConfig Control Panel > Squirrelmail is working but want users to be able to change passwords > > I followed this instruction to install: change_sqlpass-3.3-1.2.tar.gz > http://www.howtoforge.com/how-to-configure-squirrelmail-to-allow-users-to-change-their-email-passwords-on-an-ispconfig-3-server > > I then got the error: Could not find Pear DB library > I enabled the debug in the plugin and got additional information: > Warning: include_once(DB.php): failed to open stream: No such file or > directory in > /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) : > eval()'d code on line 1 Warning: include_once(): Failed opening 'DB.php' > for inclusion (include_path='.') in > /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) : > eval()'d code on line 1 > > I ran "pear list" and got the following: > Archive_Tar 1.3.10 Stable > Auth 1.6.2 Stable > Console_Getopt 1.3.1 Stable > DB 1.7.14 Stable > PEAR 1.9.4 Stable > Structures_Graph 1.0.4 Stable > XML_Util 1.2.1 Stable > > > It seems like everything is installed > > I ran phpinfo to check php.ini file. It shows: > include_path .:/usr/share/php :/usr/share/php/PEAR > > I am totally stuck. Can anyone tell me what more to check/test? > Any idea how to resolve this? > Your active include_path is '.' according to error message. Don't run phpinfo() in console. Debian (and Ubuntu) has separate php.ini files for apache and for cli. Test php settings in webserver. See http://www.squirrelmail.org/wiki/TestPHPSettings Please note that you can set this setting in multiple locations. Debian PHP has separate directory for additional configuration files. Setting can also be set in apache configuration and .htaccess files. -- Tomas -- View this message in context: http://old.nabble.com/change_sqlpass-not-working%3A-ERROR%3A-Could-not-find-Pear-DB-library-tp33753287p33754218.html Sent from the squirrelmail-plugins mailing list archive at Nabble.com. |
|
From: morten44 <mo...@e-...> - 2012-04-26 19:05:44
|
Reply: HI and thanks for your reply You where right I insert phpinfo.php into the root folder of my domain and it shows the include_path correct I then move the phpinfo.php into /usr/share/squirrelmail and point my broswser to the file here and it shows "." I have asked the ISPconfig guys and they say it only uses /etc/php5/apache2/php.ini and /etc/php5/cgi/php.ini I have then edited .htaccess file for domain and entered: php_value include_path ".:/usr/share/php: /usr/share/php/PEAR" Restarted apache2 BUT still it shows "." Any idea where i will need to enter this include_path info? I am using Ubuntu 11.10 with ISPConfig Thanks again morten44 wrote: > > Hi > I am running Ubuntu 11.10 with ISPConfig Control Panel > Squirrelmail is working but want users to be able to change passwords > > I followed this instruction to install: change_sqlpass-3.3-1.2.tar.gz > http://www.howtoforge.com/how-to-configure-squirrelmail-to-allow-users-to-change-their-email-passwords-on-an-ispconfig-3-server > > I then got the error: Could not find Pear DB library > I enabled the debug in the plugin and got additional information: > Warning: include_once(DB.php): failed to open stream: No such file or > directory in > /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) : > eval()'d code on line 1 Warning: include_once(): Failed opening 'DB.php' > for inclusion (include_path='.') in > /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) : > eval()'d code on line 1 > > I ran "pear list" and got the following: > Archive_Tar 1.3.10 Stable > Auth 1.6.2 Stable > Console_Getopt 1.3.1 Stable > DB 1.7.14 Stable > PEAR 1.9.4 Stable > Structures_Graph 1.0.4 Stable > XML_Util 1.2.1 Stable > > > It seems like everything is installed > > I ran phpinfo to check php.ini file. It shows: > include_path .:/usr/share/php :/usr/share/php/PEAR > > I am totally stuck. Can anyone tell me what more to check/test? > Any idea how to resolve this? > > Thanks for taking time to read it > > Regards > Morten > > > > > -- View this message in context: http://old.nabble.com/change_sqlpass-not-working%3A-ERROR%3A-Could-not-find-Pear-DB-library-tp33753287p33755025.html Sent from the squirrelmail-plugins mailing list archive at Nabble.com. |
|
From: Tomas K. <to...@us...> - 2012-04-26 19:32:56
|
2012.04.26 22:05 morten44 rašė: > Reply: > HI and thanks for your reply > You where right > I insert phpinfo.php into the root folder of my domain and it shows the > include_path correct > > I then move the phpinfo.php into /usr/share/squirrelmail and point my > broswser to the file here and it shows "." > > I have asked the ISPconfig guys and they say it only uses > /etc/php5/apache2/php.ini and /etc/php5/cgi/php.ini > > I have then edited .htaccess file for domain and entered: > php_value include_path ".:/usr/share/php: /usr/share/php/PEAR" > > Restarted apache2 BUT still it shows "." > > Any idea where i will need to enter this include_path info? .htaccess is not working. It means that for that directory you have Apache Options set to None or AuthConfig. http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride Check your main apache configuration file. Make sure that it loads additional files from /etc/apache2/conf.d/ directory. Look for following settings in /etc/apache2/ files. ---- # Include generic snippets of statements Include /etc/apache2/conf.d/ ---- Check /etc/apache2/conf.d/squirrelmail.conf file. It should have <directory /usr/share/squirrelmail> block. Add your php_value setting inside that directory block. Don't add . directory to include_path. Same rule as for having it in root's $PATH. Code should never load own files from current directory without specifying path. If I remember correctly, it also triggers additional checks in PHP as it has to calculate path on every include call. If you don't have squirrelmail related files in apache2/conf.d/, create new file. Check apache manual for <directory> directive and create <directory> block for /usr/share/squirrelmail. Reload apache configuration after updating squirrelmail.conf. Check phpinfo() output for SquirrelMail again. -- Tomas |
|
From: morten44 <mo...@e-...> - 2012-04-29 20:10:20
|
Hi Thanks for your reply I had problems to follow the instructions you suggested as its a little over my head :) QUOTE: .htaccess is not working. It means that for that directory you have Apache Options set to None or AuthConfig. http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride QUESTSTION: I have checked /etc/apache2... I have apache2.conf File does not mention anything about allowoverrride. Only part says: The following line prevents .htaccess to be viewed by web clients <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy all </Files> I checked the link and read, but not able to conclude out from that what I have to enter into the config file. Any sugestion or concrete examples? QUOTE: make sure this is loaded into apache2.conf: # Include generic snippets of statements Include /etc/apache2/conf.d/ REPLY: It was not. I have just written this in a random place in the file now QUOTE: Check /etc/apache2/conf.d/squirrelmail.conf file. It should have <directory /usr/share/squirrelmail> block. Add your php_value setting inside that directory block. Don't add . directory to include_path. Same rule as for having it in root's $PATH. Code should never load own files from current directory without specifying path. If I remember correctly, it also triggers additional checks in PHP as it has to calculate path on every include call. QUESTION: File not there. Not sure what the "block" means and "add your php_value. That whole paragraph was hard to understand for me. Hard for a windows guy to dig into this as we are used to click, install and it works. lol I appreciate your time but after tried all i could think of the last 48hours I think i go back to my Windows/Imal solution as I cant move 1000 users over if they can not change their password. I wonder why its not a default setting as very basic if you have an email account? Thanks for your time Tomas Kuliavas wrote: > > 2012.04.26 22:05 morten44 rašė: >> Reply: >> HI and thanks for your reply >> You where right >> I insert phpinfo.php into the root folder of my domain and it shows the >> include_path correct >> >> I then move the phpinfo.php into /usr/share/squirrelmail and point my >> broswser to the file here and it shows "." >> >> I have asked the ISPconfig guys and they say it only uses >> /etc/php5/apache2/php.ini and /etc/php5/cgi/php.ini >> >> I have then edited .htaccess file for domain and entered: >> php_value include_path ".:/usr/share/php: /usr/share/php/PEAR" >> >> Restarted apache2 BUT still it shows "." >> >> Any idea where i will need to enter this include_path info? > > .htaccess is not working. It means that for that directory you have Apache > Options set to None or AuthConfig. > http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride > > Check your main apache configuration file. Make sure that it loads > additional files from /etc/apache2/conf.d/ directory. Look for following > settings in /etc/apache2/ files. > ---- > # Include generic snippets of statements > Include /etc/apache2/conf.d/ > ---- > > Check /etc/apache2/conf.d/squirrelmail.conf file. It should have > <directory /usr/share/squirrelmail> block. Add your php_value setting > inside that directory block. Don't add . directory to include_path. Same > rule as for having it in root's $PATH. Code should never load own files > from current directory without specifying path. If I remember correctly, > it also triggers additional checks in PHP as it has to calculate path on > every include call. > > If you don't have squirrelmail related files in apache2/conf.d/, create > new file. Check apache manual for <directory> directive and create > <directory> block for /usr/share/squirrelmail. > > Reload apache configuration after updating squirrelmail.conf. Check > phpinfo() output for SquirrelMail again. > > -- > Tomas > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > ----- > squirrelmail-plugins mailing list > Posting guidelines: http://squirrelmail.org/postingguidelines > List address: squ...@li... > List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins > List info (subscribe/unsubscribe/change options): > https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins > -- View this message in context: http://old.nabble.com/change_sqlpass-not-working%3A-ERROR%3A-Could-not-find-Pear-DB-library-tp33753287p33763283.html Sent from the squirrelmail-plugins mailing list archive at Nabble.com. |
|
From: morten44 <mo...@e-...> - 2012-04-29 20:48:30
|
Hi again I got it to work now :) This was the fix http://ubuntuforums.org/showthread.php?t=1948259 Thanks again morten44 wrote: > > Hi > I am running Ubuntu 11.10 with ISPConfig Control Panel > Squirrelmail is working but want users to be able to change passwords > > I followed this instruction to install: change_sqlpass-3.3-1.2.tar.gz > http://www.howtoforge.com/how-to-configure-squirrelmail-to-allow-users-to-change-their-email-passwords-on-an-ispconfig-3-server > > I then got the error: Could not find Pear DB library > I enabled the debug in the plugin and got additional information: > Warning: include_once(DB.php): failed to open stream: No such file or > directory in > /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) : > eval()'d code on line 1 Warning: include_once(): Failed opening 'DB.php' > for inclusion (include_path='.') in > /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) : > eval()'d code on line 1 > > I ran "pear list" and got the following: > Archive_Tar 1.3.10 Stable > Auth 1.6.2 Stable > Console_Getopt 1.3.1 Stable > DB 1.7.14 Stable > PEAR 1.9.4 Stable > Structures_Graph 1.0.4 Stable > XML_Util 1.2.1 Stable > > > It seems like everything is installed > > I ran phpinfo to check php.ini file. It shows: > include_path .:/usr/share/php :/usr/share/php/PEAR > > I am totally stuck. Can anyone tell me what more to check/test? > Any idea how to resolve this? > > Thanks for taking time to read it > > Regards > Morten > > > > > -- View this message in context: http://old.nabble.com/change_sqlpass-not-working%3A-ERROR%3A-Could-not-find-Pear-DB-library-tp33753287p33763284.html Sent from the squirrelmail-plugins mailing list archive at Nabble.com. |
|
From: Tomas K. <to...@us...> - 2012-04-30 14:50:41
|
morten44 wrote: > > Hi again > I got it to work now :) > This was the fix > http://ubuntuforums.org/showthread.php?t=1948259 > It is not a fix, but very crude hack. Please learn how to configure your local PHP settings correctly. If you use PHP DSO module in apache, following option will override global include_path ---- <directory /usr/share/squirrelmail> php_value include_path "/usr/share/php" # you can put other options here to, if you want better controls for application </directory> ---- Just be consistent and keep directory settings in proper location. It can be set in global scope or for any virtual host you have. If you continue using "fixes" within application scripts, you will end up with heavily customized, unportable and unupgradable system. Application files have nothing to do with your local php include_path settings. I've confused setting name, but link pointed at proper configuration directive. If you have 'AllowOverride None' for /usr/share/squirrelmail, all your .htaccess files are ignored. -- View this message in context: http://old.nabble.com/change_sqlpass-not-working%3A-ERROR%3A-Could-not-find-Pear-DB-library-tp33753287p33763307.html Sent from the squirrelmail-plugins mailing list archive at Nabble.com. |
|
From: morten44 <mo...@e-...> - 2012-05-02 23:00:04
|
Hi Thanks for your advise. Yes it makes sence what you say As soon as I have migrated the whole thing over and all users are up and running I will look into it Thanks again for good explenation Kind Regards Morten morten44 wrote: > > Hi again > I got it to work now :) > This was the fix > http://ubuntuforums.org/showthread.php?t=1948259 > > Thanks again > > > > morten44 wrote: >> >> Hi >> I am running Ubuntu 11.10 with ISPConfig Control Panel >> Squirrelmail is working but want users to be able to change passwords >> >> I followed this instruction to install: change_sqlpass-3.3-1.2.tar.gz >> http://www.howtoforge.com/how-to-configure-squirrelmail-to-allow-users-to-change-their-email-passwords-on-an-ispconfig-3-server >> >> I then got the error: Could not find Pear DB library >> I enabled the debug in the plugin and got additional information: >> Warning: include_once(DB.php): failed to open stream: No such file or >> directory in >> /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) : >> eval()'d code on line 1 Warning: include_once(): Failed opening 'DB.php' >> for inclusion (include_path='.') in >> /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) : >> eval()'d code on line 1 >> >> I ran "pear list" and got the following: >> Archive_Tar 1.3.10 Stable >> Auth 1.6.2 Stable >> Console_Getopt 1.3.1 Stable >> DB 1.7.14 Stable >> PEAR 1.9.4 Stable >> Structures_Graph 1.0.4 Stable >> XML_Util 1.2.1 Stable >> >> >> It seems like everything is installed >> >> I ran phpinfo to check php.ini file. It shows: >> include_path .:/usr/share/php :/usr/share/php/PEAR >> >> I am totally stuck. Can anyone tell me what more to check/test? >> Any idea how to resolve this? >> >> Thanks for taking time to read it >> >> Regards >> Morten >> >> >> >> >> > > -- View this message in context: http://old.nabble.com/change_sqlpass-not-working%3A-ERROR%3A-Could-not-find-Pear-DB-library-tp33753287p33763396.html Sent from the squirrelmail-plugins mailing list archive at Nabble.com. |