Click to See Complete Forum and Search --> : PHP (people help please :-)


bjoerndalen
08-03-2003, 02:43 PM
HI guys...

Firstly I'm new to all this php, MySQL and Apache stuff so be gentle.

I recently installed some software that came on a book. Apache server v 1.3.23; MySQL Servers and clients v3.23.49 and php v4.1.1.

With a lot of messing and reading I've finally got the Apache successful installation page showing in my browser. The MySQL software seems to be working as I have the traffic light icon displayed.

My problem appears to be with the php software. I am running it as a training tool on my own pc. I have written a test page called test.php and placed it in my htdocs folder. When I type localhost/test.php in my browser I get a file download window pop up asking me if I want to open or save to disk. When I click on open I get a window with the following . Access to the specified device,path or file is denied.

Any idea where I have gone wrong.


Thanx Dave

Khalid Ali
08-03-2003, 03:59 PM
you need to configure the apache to process fiels with .php extension and this usually is done in the
conf/httpd.conf

pyro
08-03-2003, 04:08 PM
Also, instead of using PHP 4.1.1, you might want to get PHP 4.3.2 (the latest stable version) from http://www.php.net/downloads.php

bjoerndalen
08-03-2003, 04:27 PM
Cheers guys...

I have altered the httpd.conf file.

I have added the following

ScriptAlias /php/ "c:/php/"
Action application/x-httpd-php /php/php.exe
AddType application/x-httpd-php .php

I now get a Open with window..Click the program you want to use to open this file...

Somethings amiss I think..

If i put it up here could you check it to make sure its ok....

From things I've read today its quite critical to clear out anything from a previous php installation.If this is so do you know what files and the location of these that will be needed to be removed??????



Thanx again Dave:rolleyes:

Khalid Ali
08-04-2003, 12:40 AM
Make sure you follow these steps..( for windows)

1. Open php.ini and change the following:

include_path = ".;c:\php\includes"
session.save_path = C:\Temp
session.cookie_path = \

2. Add the following lines to httpd.conf:

LoadModule php4_module c:\php\sapi\php4apache2.dll
AddType application/x-httpd-php .php .php3 .phtml


one you have taken care of this..then try to test the php file from apache

bjoerndalen
08-10-2003, 03:13 PM
Ok guys...

Thanx for the comments..

I tried your solution Khalid Ali but i'm afraid it didnt work. However I have since uninstalled and then reinstalled and touch wood it appears to be working this time.

I dont know what I did differently but it was probably something really stupid as is normally the case. I have no doubt i'll be back on here again shortly for more advice.

Thanks Dave:D

brendandonhue
08-12-2003, 10:09 AM
Maybe you forgot to set the file association for .php files with php.exe. Thats the problem I had when I installed apache/php.

bjoerndalen
08-12-2003, 04:42 PM
I am not aware of anything that I did differently when I did the re-install.

I only added the same three lines into the httpd.conf file.

However something must have altered...

Now to try and get my head around the programming.. As soon as I can get time to start playing that is. Keep a look out for me because I'm sure " I'll be back".

:D Dave