Jump to content

problem running a website on a local windows machine


Recommended Posts

All,

 

Please help me. I may be going mad here but I am totally stuck after a couple of days of messing about with a site. I acquired the management of website that I have successfully installed on Linux it is PHP / MYSQL. It all works a treat and everything displays beautifully.

 

What I wanted to then do was deploy a local version of the site that I could develop / enhance on the PC.

 

PC is a Dell with Vista OS.

 

I have Apache / 2.2.15 (Win 32) PHP / 5.2.13

 

With MYSQL 5.1

 

The problem I get is that when I try to run the index.php for the site which sits in the following folder c:\Prorgam Files\Apache Software Foundation\Apache2.2\htdocs\cal

 

It runs the web page php  but doesn't format the site properly.

 

I get all of the website in a brain dump into IE. Some of the graphics if you right click them

have the following detail in them

http://localhost/cal/%3C?=IMAGE_RESOURCE_URL;?>/logo.png

 

Now IMAGE_RESOURCE_URL is a value the code can get from the database / as well as other variables such as SITE_URL

 

The config.php contains information about SITE_URL and should assign variables.

 

I saw other posts that relate to the short_tags_toggle but I think that was a red herring.

 

I'm hoping it simple. The config.php does read the database cos' if I change the password it gives an error message.

 

// Site URL

$SITE_URL = 'http://localhost/cal';

$CMS_FOLDER = 'cms';

 

// Database connection

$DB_DBMS = 'MySQL5';

$DB_HOST = 'localhost';

$DB_PORT = '3306';

$DB_NAME = 'caldevdb';

$DB_USER = 'caluser';

$DB_PASS = '***********';

$TBL_PREFIX = 'cal_';

the relate to 

 

Can someone give me any pointers ? BTW: I'm fairly new to PHP so apologies in advance if this sounds stupid.

 

Thanks in advance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.