E-WebStyle Web Design Houston E-WebStyle Web Design Houston

Archive for the ‘.php’ Category

FormToEmail - SMTP server response: 553 sorry, that domain isn’t allowed to be relayed thru this MTA

Thursday, April 8th, 2010

We recently had to switch servers and my client started experiencing the following error when submitting forms using FormToEmail, which is some self explanatory .php code.

Form To Email PHP script from FormToEmail.comWarning: mail() [function.mail]: SMTP server response: 553 sorry, that domain isn’t allowed to be relayed thru this MTA (#5.7.1) in E:\hshome\USERID\DOMAINNAME\formmailcontactus.php on line 207

The challenge was that determined to be two things the settings for sendmail_from and SMTP in the php.ini file.  In my case I have a generic domain for my cluster.  You will probably want something like smtp.YOURDOMAIN.com or mail.YOURDOMAIN.com.  The sendmail_from should be a full email that does exist on the mail server.

Additionally my client was sending directly to her sbcglobal.net.  For some reason the old server allowed this.  The new server, which is more secure and doing what I think it should does not allow this.

I hope this helps.

Chris

Wordpress Permalink Page Cannot Be Found IIS

Wednesday, April 7th, 2010

You are problably here because will changing Permalinks settings in WordPress, your blog started responding with Page Cannot Be Found to any page other than your blog home page.  I experienced this same issue but on my server I had two wordpress blogs.  One was working and one was not.  So I know the issue should not be difficult to solve. 

I say not difficult, in my case it did take awhile, which is why I am adding this blog post.

In the end I needed to upgrade the version of php for the site that was not working from 4.4.6 to 5.1.6.

I hope this helps.

Chris

IIS .php .htaccess

Monday, February 16th, 2009

If you are on this page then you probably realize that .htaccess files do not work with IIS.  You may have even experienced this problem with osCommerce.  And you might be trying to turn register_globals on for one particular site you are hosting or changing some other .php value for a specific site.  Well the solution is simple although programatically not eligant. 

Copy the php.ini file you are currently using into the root of the website for which you want to change one of the .php variables.  Change that php.ini file to the setting you want for that website.  In our case we set register_globals = on because we have it set to off for the rest of our .php sites.

There is the possiblity that this worked for us because we are using the hsphere control panel, but I do not beleive that is the case.  I would love to here comments and feedback.