close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Path to PEAR

Thread began 5/28/2012 5:03 am by john70964 | Last modified 5/31/2012 2:40 pm by Jason Byrnes | 12819 views | 26 replies |

john70964

Path to PEAR

I have created an email contact form.
I am using the settings as recommended by 1and1.co.uk.

If I use these setting on my local PC using xampp then the test emails arrive as expected.

When I upload to my 1and1 server the the emails do not arrive.

The Path to PEAR box is not filled in as you can see. I have asked 1and1 support if this need to be completed but cannot seem to get an answer.

Can you say if the Path to PEAR needs to be included or can you see if there may be some other reason I cannot seem to use the remote server for this?

I attach an image which shows the settings.

Later:
I have been contacted by 1and1 support who ask

Can you please specify what is "Path to Pear ? Is it a folder in your Outlook or is it part of the email settings? We need to clarify the information first before we can provide the resolution.

Later still!
1and1 suggest the path to PEAR is perhaps
C:\Program Files\Parallels\Plesk\Additional\PleskPHP5\pear\ .
I used this in the UE envelope box and uploaded the files but still the email failed to arrive?

BTW I am on the 1and1.co.uk shared server maybe this is the problem


Many thanks for any assistance

John

Sign in to reply to this post

Jason ByrnesWebAssist

In most cases, the path to pear can be left blank.

to help troubleshoot why the email is not sending, we can add some troubleshooting code.

In the Universal Email behavior, set the Go To address to be blank so that it will not redirect to another page after sending the email.

add the following code at line 1 to turn error reporting on:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




and add this code at the end after the closing </html> tag:

php:
<?php

echo("<pre>");
var_dump($_SESSION);
echo(
"</pre>");
?>



send a link to your contact page after making these changes so I can test it.

Sign in to reply to this post

john70964

Thanks Jason
The link is
contactus.php

I inserted the reporting code

Sign in to reply to this post

john70964

I have been trying to get some help from 1and1
the last message was:
It appears that Pear is already installed on the linux package. You can see that on the link below under configure command.

info.php

but I did not understand what the text in the box, may assist you Jason.
The previous message was
Thank you for contacting us.

Please install Pear onto you webspace where the webassist files resides. After installing, take note of the complete path where it was installed.



John

Sign in to reply to this post

Jason ByrnesWebAssist

so, in the session variable dump, I see the following error response:

["waue_contactus_1_Log"]=>
string(192) "Sending To: test@test.com; php@net100.co.uk... 10001 - Failed to connect to auth.smtp.1and1.co.uk:25 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )] - Failure

"


this means that the auth.smtp.1and1.co.uk is rejecting the User Name and password you are entering. Double check that you have the correct username and password for connecting to the auth.smtp.1and1.co.uk server.

Sign in to reply to this post

john70964

In Mail Object Settings the username is set to info@emccableglands.co.uk plus the password.

I checked the password on the server

To test I sent an email to info@emccableglands.co.uk

I then received the test email

Sign in to reply to this post

john70964

As a test I created another email account on the 1and1.co.uk server which is working emails OK and replaced the used and password in UE with the same results.

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to contact 1 and 1 to determine why the SMTP server is refusing the connection.

It may be the from address setting needs to be a valid email address for your domain.

Sign in to reply to this post

john70964

Thanks Jason

I will contact 1and1 again

The From address is already an email address on the 1and1 server

Sign in to reply to this post

john70964

I asked for some help on this from 1and1 and I did get a quick response.
Unfortunately the answer I have received is way over my head and I have no idea how or if I can do some of the things suggested, I am on a shared server at 1and1.
Here is the answer I received it may help to throw some light why I cannot get the UE working.

In your SMTP server, could you please try to use this outgoing server mrelay.perfora.net or mrvnet.kundenserver.de if it works.

How to check your Pear Path please refer on the steps below:

To use PEAR and PEAR compatible packages in your applications, you normally include them into your PHP scripts using require_once(). For this to work, PEAR's php_dir must be a part of PHP's include path.

First, check where PEAR installs .php files:

$ pear config-get php_dir
/usr/share/lib/php/

This directory will contain System.php.

Now it's time to find which configuration file is used by your PHP installation. On command line, execute:

$ php --ini
Configuration File (php.ini) Path: /etc/php/cli-php5
Loaded Configuration File: /etc/php/cli-php5/php.ini
Scan for additional .ini files in: /etc/php/cli-php5/ext-active
Additional .ini files parsed: /etc/php/cli-php5/ext-active/php_gtk2.ini,
/etc/php/cli-php5/ext-active/xdebug.ini

To see which php.ini is used by PHP on your web server, create a file with only <?php phpinfo(); ?> as the contents, and save it in your local web root as check_php.php. Open the file in your browser as check_php.php, to find the path to the php.ini file your web server is using.

Now check PHP's include_path setting on command line:

$ php -c /path/to/php.ini -r 'echo get_include_path()."\n";'

To check PHP's include_path in your web server, create a file with only <?php phpinfo(); ?> as the contents, and save it in your local web root as check_php.php. Open the file in your browser as check_php.php, to verify the include_path your web server is using.

In every case, PEAR's php_dir should be in the include path. If not, add it in your system's php.ini.

Now that this is done, try including a file. Create a new check_pear.php file with the following contents:
<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>

System.php is shipped with every PEAR installation and thus should be on your computer, too. Open the file with the browser from your web server, and also try it on command line. The only output should be

bool(true)

A message like:


Warning: require_once(System.php): failed to open stream:
No such file or directory in /path/to/check_pear.php on line 2


means that your include path is not correct. (So go and fix it!)

A completely white page in your browser hints two things:

Your server is configured to not display any errors to the user/browser (display_errors Off)

There was an error including System.php, and you should check you server's error log.

If you have any further questions please do not hesitate to contact us.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...