Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Apache php OSC


beardeddone

Recommended Posts

Posted

Yep, I guess this is related as they all work together any way I just installed apache_2.0.48-win32-x86 and all seems to work fine until I go into OSC on the webpage and then all I see is the raw phpcode in the browser..

 

Anyone have or know a correction for this?

 

Thanks in advance

Best Regards

Posted

Sounds like you dont have php installed in the apache path.

Posted

Make sure OSC is install in the root directory or below. I used a hot script called phpdev to integrate apache,php, phpmyadmin, and MYSQL. It created a root directory called 'www' and told me that everything must be in or below that directory. If I simply go to that directory in Windows Explorer, and double click on an OSC file, I get the raw code too. You must bring up the browser in apache and access the OSC files from there.

 

Charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Posted

In the manual which came with my version of apache I found the following link on the main page under Other Topics, Sitemap:

 

Mapping URLs to Filesystem Locations

This document explains how Apache uses the URL of a request to determine the filesystem location from which to serve a file.

 

DocumentRoot

Files Outside the DocumentRoot

User Directories

URL Redirection

Rewrite Engine

File Not Found

 

Good luck, Charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Posted
Make sure OSC is install in the root directory or below.  I used  a hot script called phpdev to integrate apache,php, phpmyadmin, and MYSQL.  It created a root directory called 'www' and told me that everything must be in or below that directory.  If I simply go to that directory in Windows Explorer, and double click on an OSC file, I  get the raw code too.  You must bring up the browser in apache and access the OSC files from there.

 

Charles

Well, I thought this too until I read this in the httpd.conf

 

 

# Configuration and logfile names: If the filenames you specify for many

# of the server's control files begin with "/" (or "drive:/" for Win32), the

# server will use that explicit path. If the filenames do *not* begin

# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"

# with ServerRoot set to "C:/Program Files/Apache Group/Apache2" will be interpreted by the

# server as "C:/Program Files/Apache Group/Apache2/logs/foo.log".

#

# NOTE: Where filenames are specified, you must use forward slashes

# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").

# If a drive letter is omitted, the drive on which Apache.exe is located

# will be used by default. It is recommended that you always supply

# an explicit drive letter in absolute paths, however, to avoid

# confusion.

 

I'm wondering if this is more of an error

 

LoadModule php4_module modules/php4apache2.dll<----this is where I move it to

AddType application/x-httpd-php .php

 

the only thing is it creates an error when starting the server. Might be needing a new php4apache2.dll which I can't find.

Best Regards

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...