Hot answers tagged pear
3
I'd rather not take any risks – if you are on blacklists, getting back out of them will be a pain. There are lots of services like TinyMail/Mailchimp that Just Work™ and offload all the problems.
(If you don't like outsourcing it, I'd at least move it to a different server – no more performance penalties, and if you do happen to be blacklisted, you still ...
2
Depending on the OS you have elected to install, you will need to install php-pear onto your system. On Red Hat/CentOS, this is
yum install php-pear
This will install the pear binary for you. If you then need specific pear modules, you will need to install them using:
pear install "module"
Where module is the name of the module. Don't forget to add ...
2
That QMail instance just doesn't support the STARTTLS extension.
It's a little weird that the extension is advertised in the welcome message, but since QMail needs to be patched in order to support STARTTLS, I guess the patching wasn't done properly.
Bottom line: Nothing your PEAR client can do about it besides not using STARTTLS. Maybe SMTPS on 465/TCP ...
2
I've had the same issue with Ubuntu 10.04. All I had to do was to upgrade PEAR with -Z option.
sudo pear upgrade -Z PEAR
worked like a charm for me.
And if you want to install PHPUnit afterwards use the same -Z option.
sudo pear install -Z phpunit/PHPUnit
2
Christian is right. Pyrus is the best way to manage a local registry of PEAR-installable vendor dependencies for your application.
I think the issues you're running into are caused by poorly implemented packages/channels, not issues specific to pyrus, or the method.
Pyrus does not allow the user to customize the path to the data_dir for example, therefore ...
1
config.m4 is located in the trunk
Maybe download and install without pecl? http://pecl.php.net/package/sca_sdo
Follow the readme in the packaged version: http://pecl.php.net/get/SCA_SDO
1
Right now the Text_Highlighter package has a dependency on PEAR, which means it will pull in a bunch of other packages. To install the package into a self-contained repository you can use:
mkdir Text_Highlighter
cd Text_Highlighter
php pyrus.phar `pwd` set bin_dir `pwd`/bin
php pyrus.phar `pwd` install pear/Text_Highlighter-0.7.2
Which will install ...
1
You need to make sure all your chef recipes are idempotent and nondestructive for your environment. Chef will always run default.rb when you require or include the recipe.
Two ways to fix this:
Make your PHP recipe check for installed PHP binaries, and do nothing if they are found
Move the installation steps to a new recipe file outside of default.rb
...
1
You can specify that your cookbook depends on the opscode php cookbook by adding depends 'php' to your cookbook's metadata.rb. By using depends, you don't have to actually run the php cookbook. See http://wiki.opscode.com/display/chef/Metadata#Metadata-depends
Then, assuming the php cookbook is available from your chef server, a chef-client run will pull ...
1
You can always find where files are on your system using the locate database like this: locate -i filename. However in the case of packages, sometimes browsing is more useful. Since you installed the package using apt-get, you can get a listing of all the files owned by the package and where they went on the system like this:
dpkg -L php-pear
However that ...
1
I haven't been able to establish what exactly the ndn-php5-cgi packge is or does, but it is certainly the reason why php-pear won't install. Either remove that package entirely or make sure that the debian installer can overwrite the /etc/pear/pear.conf file. It's probably also a good idea to make a backup copy of that file so that you can figure out ...
1
Well, throwing caution to the wind (thankfully on nothing critical) and apt-get remove of nun-php5-cgi which includes: ( ndn-apache22-php5 ndn-php5-cgi ndn-php5-xcache zendoptimizer) allowed me to the fully install php-pear with PECL with the almost the EXACT same error you were getting. What these means down the road, I don't know, but it works for me on ...
1
According to this site:
http://mattiasgeniar.be/2008/08/20/how-to-enable-pear-packages-in-plesk/
PEAR should already be installed, just shy. A few vhosts config changes and you're off.
Unless PHP has been compiled without PEAR, then no, its probably never going to work unless you reinstall it, or get your hosting provider to do so.
1
I looked in my apache log and found the following error
OAuth: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20100525 These options need to match in Unknown on line 0
So it was indeed getting compiled with the wrong target version.
All I had to do was
sudo apt-get install php5-dev
Then rerun the ...
1
In this case, you should be able to use either From or Reply-to. It may be best put the client's address in Reply-to and use a no-reply address for your domain in the From header. If your web-server is not trusted by your email server, this may be required.
If you were allowing the client to send a message, as some sites do, put the client's address in ...
1
This is most likely a permission issue, and nothing to do with Pear nor the include path - as the error message shows that include_once uses an absolute path and does not need to use the PHP include_path setting.
I suggest that you check that /usr/share/wordpress/wp-content/plugins/twitter-for-wordpress/ has permissions to allow the web server to read it. ...
1
This is your problem:
dyld: Library not loaded: /b/32_216/rdbms/lib/libclntsh.dylib.10.1
You probably don't have that /b directory at the root of your volume. I'm not sure why they'd have make set to pull something from there-maybe check one of the other machines and see if they have that /b directory tree at the root of their volume.
1
Got in touch with Dreamhost and they say it's a problem with their setup:
Ah. Yea. The reason why the version does not match is due to back porting
done in the Debian version we're using. I'm not sure if there's a way
around that but can create a incident report with our system admin if
you'd like. But ultimately, it would be best to install a ...
Only top voted, non community-wiki answers of a minimum length are eligible