LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-02-2007, 03:47 PM   #1
stevest
Member
 
Registered: Apr 2006
Location: UK
Distribution: Linux Suse 1
Posts: 35

Rep: Reputation: 15
auto-detect PHP filename extensions


Problem History
I am interested in using zen cart. It is a free open source shopping cart for web based shops. The docs say to upload the all of the files to your server to install the zen cart, and create your shop. However I wish to create the shop locally

Problem
To start the installer you direct your web bowser to the file containing you zen cart files.
In my case /home/steve/public_html/Zencart1
When i do this locally I am presented with a list of files and not a web type page. This is because in need to enable my pc to auto-detect PHP filename extensions.
I use Suse 10.2 and have used YAST to try and locate the correct
program to do this, but there are loads of PHP type programs and i dont know which one to go for.
Any help would be appreciated.
 
Old 08-02-2007, 04:45 PM   #2
frank_endres
LQ Newbie
 
Registered: Mar 2005
Location: France
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
First, look in your httpd.conf (somewhere in /etc, or /etc/apache, or /etc/httpd, ...) if there is a line like
Code:
Include ...php...
or
Code:
LoadModule php...
AddType application/...php .php
It tells Apache to load the php module.

Then, in the same file, seek the directive "DirectoryIndex". It should be somewhat like this :
Code:
DirectoryIndex index.html index.php
It tells to open the file index.html, then index.php (if the first one is not found) in the folder if you omit the file name (eg: if your URL is "http://localhost/www" and not "http://localhost/www/index.php"

If the php extension is php3, just add the extension at the line "AddType".

These explanations are for Apache 1, but it should be quite the same for Apache 2.
 
Old 08-03-2007, 01:55 PM   #3
stevest
Member
 
Registered: Apr 2006
Location: UK
Distribution: Linux Suse 1
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks for your reply. I haven't had the time to follow your advice just yet but will do in the next few day. I will let you know how i get on.
Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
phpBB installation test doesn't detect MySQL; need help with PHP extensions jim0112 Ubuntu 2 04-22-2007 08:09 AM
Apache rending php when filename is x.php.html mastahnke Linux - Server 6 01-22-2007 08:39 AM
php-devel & PHP extensions EHCanadian Mandriva 0 06-23-2005 06:06 PM
Clarifying Linux & filename extensions Gag Halfrunt Linux - Newbie 1 11-28-2004 06:44 AM
php AND extensions kaiozero Linux - Software 1 05-30-2002 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration