Jump to content

[SOLVED] Installation nightmare


Recommended Posts

Can someone please help before I go mad.

I have tried installing this stuff quite a few times with no success.

I am running Windows 2000 SP4 on a Dell Optiplex Gx400 1.5Ghz machine.

I have 500Mb memory.

So much for the hardware.

I have downloaded the following files and installed them.

 

mysql-essential-5.0.83-win32.msi

php-5.2.10-Win32.zip

apache_2.2.11-win32-x86-openssl-0.9.8i.msi

 

I istalled to

C:MYSQL

C:PHP5

C:Apache Software Foundation

 

I installed in that order restarting between each.

They all seem to install and run correctly .

 

If I check the 'localhost/test.php' I get the full page of specs.

 

The mysql runs great, I have created my databases without hitch.

I have created my HTML/PHP files to access the databases and this

is where the problems start.

 

Whenever I look at a page that has PHP code in it,

the PHP part is not working.  If I select view PageSource,

I see the HTML code in normal type and the PHP code is there but

almost as though it is greyed out.

 

I guess that I have a configuration problem and that the PHP

is not parsing.

 

As I am a newbie to php I am not sure where I should put

the PHP or HTML scripts in the directory structure.

 

Any help much appreciated.

Thanks

Link to comment
Share on other sites

Hi there,

Yes I have made the changes to the conf file as suggested.

I can send the php.ini and the apache configuration file if it would help.

Or tell me how to upload them to where you can see them.

I need help here I am getting desperate.

I started this a couple of weeks ago thinking that I would expand my knowledge of languages etc with the PHP thing.  Here I am now very frustrated.

I can write the SQL, the HTML and the PHP, it would be great if they would all play nicely together.

Thanks for the answer

Pete

Link to comment
Share on other sites

If I check the 'localhost/test.php' I get the full page of specs.

By this do you mean you get a page similar to the following. If thats correct then you have Apache and PHP configured correctly.

 

Make sure you save your code in .php files. In most setups by default PHP will not be parsed in .html files. However you can place HTML within .php files. You can configure Apache so PHP is parsed within .html files.

 

You should also be going to http://localhost to run your .php files and make sure you're saving your files in Apaches htdocs folder.

Link to comment
Share on other sites

Hi all

Wildteen, thanks for the comment, I changed the extension to .php from .html and now it starts to work some.  I get errors and I am sure that I will be able to work those out.

What do I have to do to the conf file to be able to parse PHP in the html files?

Is there another parameter that I can change so that I can store my files in another directory, other than the htdocs one?

 

Rhodesa, thanks for your help, I tried the wamp bundled stuff before I got to the separate packages and had no better luck with that.

As always one just carries on trying, sometimes it works out.

Thanks again

Pete

 

 

Link to comment
Share on other sites

  • 2 weeks later...
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.