Closed Thread Icon

Topic awaiting preservation: Problems installing php... (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=12227" title="Pages that link to Topic awaiting preservation: Problems installing php... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Problems installing php... <span class="small">(Page 1 of 1)</span>\

 
jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 05-23-2002 11:03

Hello,
I've been trying to install php 4.2.1 as a cgi module on my apache server, and I used the tutorial here (thickbook). After I stop the server and start it back up, I type in the url as instructed (http://127.0.0.1/phpinfo.php) and instead of the page it draws up the downloader to download phpinfo.php. Any ideas?



[This message has been edited by jive (edited 02-24-2003).]

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 05-23-2002 11:25

i had that problem once in opera.

i cant see the tute you are linkin.
did you also modify the apache config file?

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 05-23-2002 11:26

Sounds like you didn't add ".php" to the list of extensions Apache should work with.
This can be found in the config-file.
/Dan


-{ a vibration is a movement that doesn't know which way to go }-

jive
Paranoid (IV) Inmate

From: Greenville, SC, USA
Insane since: Jan 2002

posted posted 05-23-2002 19:36

sorry about the dead link. Here is the tutorial I was talking about. I think I followed it pretty completely. I put the dll and ini files in the proper places and added the following code, to these sections:

first change:

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
ScriptAlias /php/ "C:/php-4.2.1-win32/"

Second Change:

#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps


Third Change:

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
# Action application/x-httpd-php /php/php.exe

Third Change:


Then I stop my server, create my .php file. start the server again, and typi in "http://127.0.0.1/phpinfo.php".
Instead of pulling up the document, I get the downloader. Maybe somethings wrong with the way I put it in the lines, but it seems right. Does anyone have an actual httpd.conf document I can view?



[This message has been edited by jive (edited 05-23-2002).]

[This message has been edited by jive (edited 05-23-2002).]

[This message has been edited by jive (edited 05-23-2002).]

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 05-23-2002 20:43

You should have something like "DirectoryIndex index.php" in your httpd.conf file.

And although it's probably pretty much the same as the tutorial you could have a look at the official documentation: http://www.php.net/manual/en/install.apache.php#install.apache.windows

kuckus (cell #282)

[This message has been edited by kuckus (edited 05-23-2002).]

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 05-23-2002 20:47

Well, I installed phpdev4 from firepages to get started locally, like this:

- Go here: http://www.firepages.com.au/phpdev4.htm and choose the appropriate bundle, you get in one download and installation:
Apache PHP Perl MySQL database on a windows machine

- Unzip it to C: (as suggested)

- Go to C:\phpdev\apache\conf\ and open httpd.conf on line 352 change it to look like this: DirectoryIndex index.html index.htm index.php index.php3 index.fire (by adding index.php index.php3 ) this will allow you to use these files as indexfiles. Save...

- Then go to C:\phpdev\ and doubletap phpdev_start.bat That starts the whole shebang... phpdev_stop.bat stops it

- Your webpages goes into folders in C:\phpdev\www\ and you surf to http://localhost/your_foldername/ to test your pages.

- To set up this plus installing one db and adding all pages on a client pc for a demo took me tops 20 minutes and it was up and running...

- On w98/ME/NT/W2000 it works without a hitch, in XP you need to use the NT bundle be aware of this, it assumes that the systemcataloge is WINNT so it creates this and places the .ini file there.

That's the easiest way methinks, havn't set it all up manually myself.
/Dan


-{ a vibration is a movement that doesn't know which way to go }-

viol
Maniac (V) Inmate

From: Charles River
Insane since: May 2002

posted posted 06-08-2002 00:02

DmS, what if my WinXP is installed in D:\ ?? Will phpdev4 work?

(Note: I have Win2k in C:\ but I don't use it anymore, just WinXP)

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 06-08-2002 22:58

I havn't tried it, but I suppose it would work fine as long as you edit the paths in php_dev_start.bat
which starts everything. That's written with default paths in C: based on how it gets unzipped.
/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-

viol
Maniac (V) Inmate

From: Charles River
Insane since: May 2002

posted posted 06-09-2002 01:29

Hi,
I managed to install the Apache Server, PHP and MySQL, one by one, using the latest versions, in my WinXP machine. There are some very good tutorials in Internet and, of course, without them, the task would be impossible (and, without Google, finding them would be impossible). Fortunately, after installing each one of the applications, I had no problem making them start and test and work. Now I can start learning php and mysql without the need to be online and FTPing everything.
Worth mentioning: http://in.geocities.com/samdarshipali/apache-php-mysql.htm http://www.analysisandsolutions.com/code/mybasic.htm
and the page at ThickBook, mentioned by jive. Also, the official pages.
Thank you all. Only after reading this thread I decided finally to do what I thought I'd never do.

« BackwardsOnwards »

Show Forum Drop Down Menu