Digital Point Forums
Money Transfer

Go Back   Digital Point Forums > Products & Tools > Co-op Advertising Network > Setup / Validation Help
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Jan 8th 2005, 5:39 pm
LegalClipper's Avatar
LegalClipper LegalClipper is offline
Champion of the Naaru
 
Join Date: Jan 2005
Posts: 178
LegalClipper will become famous soon enough
.htaccess, AddType application/x-httpd-php .php .htm .html, and maybe a Fix...

Hi, After about 24 Hours of Trial and Error I finally got my site Validated.

I traced it to the .htaccess file. When I was bringing up my site, the ads wouldn't show and the .php wouldn't execute. And sometimes my Browser would try to download the webpage instead of just view it. So I went back and forth on tech support with my ISP LunarPages.

Seems they run something called suPHP and the contents of .htacess must be:

AddType x-httpd-php .php .htm .htm

(notice it doesn't have the 'application/' in it.)

I guess suPHP doesn't like the 'application/' .

I am new at this, but it might work for you if you are having a rough time..



LegalClips.com
Reply With Quote
  #2  
Old Jan 8th 2005, 7:57 pm
sarathy's Avatar
sarathy sarathy is offline
of the Nightfall
 
Join Date: Nov 2004
Location: World wide web
Posts: 1,615
sarathy is a jewel in the roughsarathy is a jewel in the roughsarathy is a jewel in the rough
Thanks, i would try this
Reply With Quote
  #3  
Old Mar 8th 2007, 4:16 pm
aurelian aurelian is offline
Peon
 
Join Date: Mar 2007
Posts: 1
aurelian is on a distinguished road
Smile

Try adding that code lines in apache.httpd.conf

<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .html
AddType application/x-httpd-php-source .phps
</IfModule>
Save it and restart apache with command : apachectl restart
you have more info at http://bugs.php.net/bug.php?id=27580
Reply With Quote
  #4  
Old Mar 8th 2007, 4:34 pm
fryman's Avatar
fryman fryman is offline
Kiss my rep
 
Join Date: Jun 2004
Posts: 9,589
fryman is a name known to allfryman is a name known to allfryman is a name known to allfryman is a name known to allfryman is a name known to allfryman is a name known to all
Anyone with cpanel can add that command there, no need to mess around with the .htaccess since that darn file can make your site not load at all if you don't do it right
__________________
Cpalead Sucks! Try this one instead
Reply With Quote
  #5  
Old Mar 10th 2008, 10:43 am
thundercow's Avatar
thundercow thundercow is offline
Champion of the Naaru
 
Join Date: May 2007
Location: Austin
Posts: 236
thundercow is on a distinguished road
I was having this same problem. This fix did not work for me. bummer, still stuck on this.
Reply With Quote
  #6  
Old Mar 26th 2008, 8:54 pm
vanshake vanshake is online now
Grunt
 
Join Date: Sep 2007
Posts: 91
vanshake is on a distinguished road
here's another option along those lines:

instead of:
addtype application/x-httpd-php .html

try:
<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
Reply With Quote
  #7  
Old Apr 22nd 2008, 12:37 pm
voltolio voltolio is offline
Grunt
 
Join Date: Apr 2008
Posts: 33
voltolio is on a distinguished road
For anyone on Godaddy (or another host) having trouble getting php to parse within html with .htm extension I finally found the problem:

.htaccess is:

AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html

Delete old .htaccess - don't overwrite.

Upload new .htaccess in ascii mode and chmod 777

Done!
Reply With Quote
  #8  
Old May 7th 2008, 12:32 pm
webfelogix's Avatar
webfelogix webfelogix is offline
Grunt
 
Join Date: Oct 2007
Location: Alaska
Posts: 75
webfelogix is an unknown quantity at this point
i need some help here too

i saw on someone site actually the script is php files but using code like this
AddType application/x-httpd-php .jsp

he mask all the .php files to .jsp, i mean just for fun sake i want to try out but i put in on my htaccess didnt work, i got two server, hostgator and lunarpages both are using susphp enviroment, any idea if some knows how to mask?
Reply With Quote
  #9  
Old May 12th 2008, 8:14 pm
steveh2008 steveh2008 is offline
Peon
 
Join Date: May 2008
Posts: 1
steveh2008 is on a distinguished road
Quote:
Originally Posted by fryman View Post
Anyone with cpanel can add that command there, no need to mess around with the .htaccess since that darn file can make your site not load at all if you don't do it right

I have cpanel through hostgator. I have uploaded the php file by creating a txt file and renaming it with the .php extention but I still cannot get the .htaccess to work. I tried doing the same thing using a .txt file but it wont work, it will not display the page unless I delete the .htaccess file.

You said there is a way to do it in cpanel but I cant figure it out. Can you explain how you did it?
Reply With Quote
  #10  
Old May 13th 2008, 2:27 am
hasen's Avatar
hasen hasen is offline
Twilight Vanquisher
 
Join Date: Mar 2007
Posts: 989
hasen will become famous soon enough
Well you won't get any response from Fryman since that post was made in March last year and he's been banned for ages.
__________________
Automatic Myspace Proxy - Auto Bypass - Automatic Myspace Proxy
Reply With Quote
  #11  
Old May 25th 2008, 10:26 am
bsutcliffe bsutcliffe is offline
Peon
 
Join Date: May 2008
Posts: 3
bsutcliffe is on a distinguished road
Help! Re. .htaccess, AddType application ...

I have the following .htaccess file, uploaded to the correct place:

AddType application/x-httpd-php .php .htm .html .wml
AddType text/x-httpd-php .php .htm .html .wml
(after reading a few posts, apparently this should help)
AddHandler x-httpd-php .php .htm .html .wml
(after reading a few posts, apparently this also should help)

However, .php files download and .wml files (when viewed on Wapsilon.com) return a "expected text/vpn.wap.wml not application/x-httpd-php".

Any ideas?

Last edited by bsutcliffe; May 25th 2008 at 10:27 am. Reason: Grammar
Reply With Quote
  #12  
Old Jun 28th 2008, 1:21 pm
pulsart pulsart is offline
Peon
 
Join Date: Oct 2007
Location: Hamburg, Germany
Posts: 1
pulsart is on a distinguished road
try this line in a blank .htaccess

AddType application/x-httpd-php php html
Reply With Quote
  #13  
Old Jul 25th 2008, 9:25 am
medicalsupplies medicalsupplies is offline
Banned
 
Join Date: Mar 2008
Posts: 168
medicalsupplies is on a distinguished road
Quote:
Originally Posted by pulsart View Post
try this line in a blank .htaccess

AddType application/x-httpd-php php html
the codes work great for lunapage host.
Reply With Quote
  #14  
Old Jul 29th 2008, 9:50 am
donatello donatello is offline
Peon
 
Join Date: Apr 2008
Posts: 8
donatello is on a distinguished road
Quote:
Originally Posted by voltolio View Post
For anyone on Godaddy (or another host) having trouble getting php to parse within html with .htm extension I finally found the problem:

.htaccess is:

AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html

Delete old .htaccess - don't overwrite.

Upload new .htaccess in ascii mode and chmod 777

Done!
Wow!
Thanks a lot for that post! It worked for me like magic after about 2 hours of screwing around and even calling support at Backlinks.com.

Then I found your post and BINGO!
Thanks a million. It works like a charm now!
Reply With Quote
  #15  
Old Sep 3rd 2008, 6:44 am
webprone's Avatar
webprone webprone is offline
Champion of the Naaru
 
Join Date: Jun 2008
Posts: 150
webprone is on a distinguished road
hey thanks for the info
i also face the same errors
http://www.honeytechblog.com/images/error.jpg

not fix the server was upgraded and there were incompatible lines in the .htaccess are also fixed.
www.honeytechblog.com works perfectly now.


For all who have hosting on Hostgator,Godaddy and similar cpanel
Please contact your support team, they will easily resolve your issues.

ThankYou
Reply With Quote
  #16  
Old Oct 28th 2008, 3:42 pm
marclindsay marclindsay is offline
Champion of the Naaru
 
Join Date: Nov 2005
Posts: 134
marclindsay is on a distinguished road
VanShake.... Thankyou very much...

After trying everything, yours was the only solution that worked..... Thanks heaps

Marc
Reply With Quote
  #17  
Old Nov 16th 2008, 7:36 pm
notebook murah notebook murah is offline
Peon
 
Join Date: Nov 2008
Posts: 10
notebook murah is on a distinguished road
how about wordpress blog ,can somebody having success install this ads and validate ,give explain simple and easy
Reply With Quote
  #18  
Old Jan 18th 2009, 6:28 pm
yangyang yangyang is offline
Banned
 
Join Date: Feb 2007
Location: KaVoir.com
Posts: 759
yangyang will become famous soon enoughyangyang will become famous soon enough
Quote:
Originally Posted by voltolio View Post
For anyone on Godaddy (or another host) having trouble getting php to parse within html with .htm extension I finally found the problem:

.htaccess is:

AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html

Delete old .htaccess - don't overwrite.

Upload new .htaccess in ascii mode and chmod 777

Done!
If you are using php5, it should be: AddHandler x-httpd-php5 .php .htm .html

And sometimes it's better using php5-script instead of x-httpd-php5.
Reply With Quote
  #19  
Old Apr 16th 2009, 5:06 am
kmofo's Avatar
kmofo kmofo is offline
Hand of A'dal
 
Join Date: Mar 2008
Posts: 400
kmofo will become famous soon enough
Quote:
Originally Posted by yangyang View Post
If you are using php5, it should be: AddHandler x-httpd-php5 .php .htm .html

And sometimes it's better using php5-script instead of x-httpd-php5.
But for php4 is it php4-script or php-script?
Reply With Quote
  #20  
Old Apr 16th 2009, 5:08 am
kmofo's Avatar
kmofo kmofo is offline
Hand of A'dal
 
Join Date: Mar 2008
Posts: 400
kmofo will become famous soon enough
Silly me, I've double posted .... Can a mod delete this? Thanks
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -8. The time now is 1:06 pm.