[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

10/18/2009 at 11:52PM PDT, ID: 24822725 | Points: 500
[x]
Attachment Details

Setting different file types to execute as PHP in Apache/XAMPP isn't working.

Asked by 71M in Apache Web Server, Web Application Hosting, PHP for Windows

Tags: Apache, PHP, XAMPP

I'm setting up a XAMPP installation on my home PC so I can develop pages locally before uploading them... however I've hit a bit of a snag.

The framework I've used for my web site uses different file extensions to .php, instead using both .uni and .unc for differing code types. So that being said, I need to reconfigure Apache to allow different file types to execute as PHP.

I did some research, and I've found that all I should have to do is add this to the default httpd.conf file in Apache:

AddType application/x-httpd-php .unc
AddType application/x-httpd-php .uni

However, when I tried this, it didn't work. The code didn't render as raw text... it rendered like HTML, however the PHP code hadn't been executed.

The strange thing is, I tried this on an installation of XAMPP on my computer at work, and it worked fine. Granted the version of XAMPP at work is probably somewhat older.

I'm running Windows XP Pro SP3 on an Intel Core 2 Quad 2.4ghz

Has anyone seen this happen before? I'm unsure if this is a problem with my Apache config, my XAMPP, or maybe just my PC in general.

Thanks!

[+][-]10/19/09 10:24 AM, ID: 25607115

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/19/09 06:25 PM, ID: 25610382

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/26/09 05:12 AM, ID: 25661420

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/26/09 05:45 AM, ID: 25661653

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625