News
: October 6, 2008 -
Submit Your Site for the October 2008 Site of the Month!
Home
Help
Search
Calendar
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
October 13, 2008, 09:26:01 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Web Hosting Forum | Lunarpages
>
Lunarpages Web Hosting - Online Help Desk
>
Lunarpages - CPanel Help
>
.htaccess/PHP question
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: .htaccess/PHP question (Read 148 times)
raghus
Spacescooter Operator
Offline
Posts: 48
.htaccess/PHP question
«
on:
July 18, 2008, 09:03:34 PM »
Hi - after the hadar move over this past weekend, my .html files which have embedded php are being server straight up - ie the php is not getting parsed. There seems to be something with my .htaccess. Can someone post their htaccess in which they've specified that .html/.htm files be treated with the php pre-processor? Also do I need to do anything in the cPanel's "Apache Handlers" section?
Thanks!
Raghu
Logged
raghus
Spacescooter Operator
Offline
Posts: 48
Re: .htaccess/PHP question
«
Reply #1 on:
July 18, 2008, 09:15:22 PM »
Also can someone from LP confirm if other upgrades were done on hadar - Apache is at 1.3.4 and PHP is now at Version 5.2.6 - I thought it was 1.2.x and 4.x before....
Logged
raghus
Spacescooter Operator
Offline
Posts: 48
Re: .htaccess/PHP question
«
Reply #2 on:
July 18, 2008, 10:01:49 PM »
I posted a ticket and got this from LP support:
-----------
Hello,
Hadar was recently migrated to new hardware in our new data center in San Diego. This was done to improve overall stability and performance for all customers on the server. At this time, all services and applications on the server were updated too.
The main issue is that with the upgrade, the path to PHP5 has changed, this is likely the reason why your .htaccess entries failed.
I hope this was helpful.
-----------
What do I need to do to reflect the new path to PHP5. Where do I make this change?
Logged
MrPhil
Quantum Encyclopedia Writer
Offline
Posts: 3400
Re: .htaccess/PHP question
«
Reply #3 on:
July 19, 2008, 07:57:55 AM »
Does your cPanel give you a choice to enable PHP 5? You have to explicitly tell the server to parse (server side) your .html and .htm files, otherwise they will be served up "as is". Was your
.htaccess
file changed at all by LP when they did the move, or is it as it was?
If you have a choice between PHP 4 and PHP 5, clicking the "enable PHP 5" button in cPanel should give you an entry something like:
AddHandler application/x-httpd-php5 .php5 .php4 .php3 .php2 .php .phtml
Be sure to back up your old
.htaccess
before doing this, in case cPanel wipes out your old
.htaccess
. Two things: you'll need to add
.html .htm
to that list of file extensions. And you may or may not have "application/" in the line.
If you are not given a choice (it's PHP 5 only), I think you can go into the "Apache Handlers" to specify that .html and .htm are to be treated as PHP (parsed server side).
Logged
Visit My Site
E-mail Me
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Lunarpages Web Hosting - Information & Opportunities
-----------------------------
=> Lunarpages Web Hosting - Announcements
=> Lunarpages Web Hosting - Hosting Plans & Site Information
=> Job Opportunities at Lunarpages Web Hosting
=> Lunarpages Web Hosting - Network Information
=> Lunarpages Web Hosting - Server Information
-----------------------------
Lunarpages Web Hosting - Before Signing Up
-----------------------------
=> Lunarpages Web Hosting Plans - Pre-Sales Questions
-----------------------------
Lunarpages Web Hosting - Online Help Desk
-----------------------------
=> Lunarpages - Webhosting Help
=> Lunarpages - Beginner Assistance
=> Lunarpages - How to's
=> E-mail with your Lunarpages Hosting Plan
=> Lunarpages - CPanel Help
=> Lunarpages - LPCP Beta
=> Lunarpages - Ecommerce Hosting
=> Lunarpages - FrontPage
=> Lunarpages - DreamWeaver
=> Lunarpages - Message Boards-Forums-Fantastico Scripts
===> Lunarpages - Joomla / Mambo
-----------------------------
Lunarpages Web Hosting - Advanced Assistance
-----------------------------
=> Web Management
=> Lunarpages - Webdesign and HTML
=> Lunarpages - Search Engine Optimization
=> Lunarpages - Animation & Flash
=> Lunarpages - Graphics
=> Lunarpages - Web Hosting, Email & PC Security
=> Lunarpages - Dedicated Web Hosting
===> Lunarpages - cPanel & WHM
===> Lunarpages - General
===> Lunarpages - Plesk
===> Lunarpages - Security
===> Lunarpages - Tutorials
===> Lunarpages - Webmin
=> Lunarpages - Reseller Web Hosting
===> Lunarpages - WHM
=> Lunarpages - VPS Hosting
=> Lunarpages - SharePoint Services (Beta)
-----------------------------
Lunarpages Web Hosting - Coding
-----------------------------
=> Lunarpages - ASP
=> Lunarpages - C++ / PERL / CGI
=> Lunarpages - PHP & MySQL
=> Lunarpages - Java Applets & Javascript
=> Lunarpages - JSP & Servlets
=> Lunarpages - Ruby Hosting
=> Lunarpages - Windows Development & Hosting
-----------------------------
Lunarpages Web Hosting - Entertainment
-----------------------------
=> Lunarpages - Chat & Stuff!
=> Lunarpages - Contests
=> Fun at Lunarpages!!
=> Lunarpages - Online Gaming
-----------------------------
Lunarpages Web Hosting - General
-----------------------------
=> Social Networking
=> Lunarpages Free Web Hosting - Education Program
=> Lunarpages - Affiliate Program
=> Introduce Yourself to the Lunarpages Forum Community!
=> Your Websites & Creations at Lunarpages!
=> Lunarpages Website of the Month
=> Lunarpages - Service and Trade
Loading...