home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 3101
Discussions: 188,376, Posts: 2,243,444, Members: 232,604
Old August 12th, 2002, 09:35 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Aug 2002
Location: CA
Posts: 15
Unhappy
PHP Help

Im having trouble with the PHP4.2.2 installer..... it says,

"Sorry the software to automatically configure the Apache httpd.conf...."

Im using Windows 2000, Apache 1.3.26

My server is located in:

D:\Apache
D:\usr\bin\perl

I tried reading the install txt, but i dont understand what it wants me to do.


"Now that version 4.1 introduces a safer sapi module, we recommend
that you configure PHP as a module in Apache.

To do this, you should move php4ts.dll to the (for Windows NT/2000/XP) directory, overwriting any older file. Then you should add the following three lines to your Apache conf file:
(swap c:/php/ for your PHP install path)

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php"

where is this at in the httpd.conf file?(the swap part)

and in

"If you wish to install PHP as a CGI binary, (the sapi is much better)
you need to enable the apache security fix in your php.ini by
setting cgi.force_redirect = 1. Then, insert these lines to your conf file:

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

Where do i write this?.... after ScriptAlias /cgi-bin/ in the Apache config file?


Im new at all this.... cant u tell?
HeLp Me PlZ.....

TaStiEzs is offline   Reply With Quote
Old August 12th, 2002, 11:17 PM     #2 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
Quote:
"Sorry the software to automatically configure the Apache httpd.conf...."
Is not big deal, SHOULD install php, just won't config Apache auto-like.

[edit]

PHP couldn't config IIS on my install, I just added later though IIS, had choice between API and .dll?? Me forget, no help.

wait, have you ever config-ed apache?


Last edited by qball : August 12th, 2002 at 11:21 PM.
qball is offline   Reply With Quote
Old August 14th, 2002, 04:37 AM     #3 (permalink)
Junior Member
 
Join Date: Aug 2002
Location: CA
Posts: 15
yeah i have configured apache b4..... the
"Sorry the software to automatically configure the Apache httpd.conf...." meant it didnt configure my apache httpd.conf. I think you knew what i was tryinna say b4....hehe.... ive config Apache b4 but just simple tweakin like to relocating my cgi-bin in htdocs to make my Yabb forum work.... The problem is, i have nothin to check if I installed my PHP correctlly.

TaStiEzs is offline   Reply With Quote
Old August 14th, 2002, 11:33 PM     #4 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
Quote:
I think you knew what i was tryinna say b4
what? maybe, I don't? nuffin personal, I just don't like assuming unless my assumption is correct.

Quote:
The problem is, i have nothin to check if I installed my PHP correctlly.
Sure you do.

Is it part of any uninstaller? (not always perfect) 2k has add/remove progs. PHP shows up in my XP add/remove.

Where did you choose to install? check there?

Does:

c:/php/sapi/php4apache.dll, exist? pretty good sign, installed?

Better yet, search everywhere for:

php.exe
php4apache.dll

Iffin you find, php most likely installed.

Quote:
...had choice between API and .dll...
Had choice between:

php.exe
php4ts.dll

I should probably update....
qball is offline   Reply With Quote
Old August 15th, 2002, 12:07 AM     #5 (permalink)
Junior Member
 
Join Date: Aug 2002
Location: CA
Posts: 15
k k... im bad at explainin things!... sorry

ok this is what the whole message states after the setup of "php-4.2.2-installer" on to my D:\ drive.

"Sorry the software to automatically configure the Apache httpd.conf file has not yet been written. You will have to configure Apache manually. See the install txt file for more details"

These are the files it installed for me in my D:\ drive
D:\PHP\BACKUP
\sessiondata
\uploadtemp
\IISConfig.exe
\install.txt
\License
\php.exe
\php4ts.dll

The three folders BACKUP, sessiondata, uploadtemp are all empty.

I think PHP.exe installer was trying to locate Apache on my C:\ drive.

My Apache server setup is:
D:\ Apache\htdocs\cgi-bin
D:\usr\bin\perl

Ive changed the cgi-bin, which was normally located at
D:\ Apache\cgi-bin

Sorry for makin everything so difficult =( , but thanx for tryinna help me out - qball
TaStiEzs is offline   Reply With Quote
Old August 15th, 2002, 12:08 AM     #6 (permalink)
Junior Member
 
Join Date: Aug 2002
Location: CA
Posts: 15
hmm... doesnt look right

D:\PHP\BACKUP
D:\PHP\sessiondata
D:\PHP\uploadtemp
D:\PHP\IISConfig.exe
D:\PHP\install.txt
D:\PHP\License
D:\PHP\php.exe
D:\PHP\php4ts.dll

ok thats how it is =)
TaStiEzs is offline   Reply With Quote
Old August 15th, 2002, 07:07 AM     #7 (permalink)
Junior Member
 
Join Date: Aug 2002
Location: CA
Posts: 15
Alright i think i got it all down.... but how do i test if it works?....
i used <?php phpinfo();?> and saved it as pp.php like this:

<html>
<head>
<title>
hi
</title>
</head>
<body>
<?php phpinfo();?>
</body>
</html>

Its a blank screen.... something is wrong with my configuration?
This is what i have:

D:\PHP\browscap
D:\PHP\extensions
D:\PHP\pdf-related
D:\PHP\pear
D:\PHP\sapi\ php4apache.dll
D:\PHP\php.exe
D:\PHP\php-cli.exe
D:\PHP\php.gif
D:\PHP\php.ini-dist
D:\PHP\php4ts.lib
D:\PHP\pear.bat

D:\usr\mibs
C:\winnt\php.ini
C:\winnt\system32\dlls
C:\winnt\system32\php4ts.dll

In php.ini:
;
doc_root = d:\apache\htdocs
;
extension_dir = d:\php\extensions
;
cgi.force_redirect = 1
;

In Apache Httpd.conf:
#
LoadModule php4_module d:/php/sapi/php4apache.dll
#
AddModule mod_php4.c
#
AddType application/x-httpd-php .php
#
AddType application/x-httpd-php-source .phps
#

it says (swap c:/php/for your PHP install path) what does that mean?

I placed each item in their place like AddModule mod_php4.c where all the AddModule are located.
TaStiEzs is offline   Reply With Quote
Old August 15th, 2002, 07:10 AM     #8 (permalink)
Junior Member
 
Join Date: Aug 2002
Location: CA
Posts: 15
oh and i deleted "php-4.2.2-installer" and all its folders
I used the php-41.2.2-Win32.zip
TaStiEzs is offline   Reply With Quote
Old August 15th, 2002, 07:44 AM     #9 (permalink)
Ultimate Member
 
ChoaticWhisper's Avatar
 
Join Date: Oct 2001
Location: Alabama
Posts: 1,309
Send a message via AIM to ChoaticWhisper
Well I just installed Apache/PHP/MySQL and I documented it pretty well(At least I think).
So this should be all you have to do

Install Apache
edit the httpd.conf
I think the d:/ should be like that not d:\
======================================
DocumentRoot "d:/apache\htdocs"
Down afew lines you should see something like
Quote:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "PATH_TO_DOCUMENT_ROOT">
Make sure PATH_TO_DOCUMENT_ROOT is d:\apache\htdocs


Then add this, Im not sure where is has to be but mine is after "AddType application/x-tar .tgz"
Quote:
LoadModule php4_module d:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Then in your php.ini edit
extension_dir = "D:\php\extensions\"

Make sure you
copy php.ini to C:\windows
copy php4ts.dll to C:\windows\system
ChoaticWhisper is offline   Reply With Quote
Old August 16th, 2002, 01:07 AM     #10 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
Quote:
The three folders BACKUP, sessiondata, uploadtemp are all empty.
well, you just installed sw!

what do you expect those dirs to contain?

sorry, sorry...

what did the apache subdirs contain, upon install?

sorry, sorry...
qball is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2882)
The United States Debt (20)
Looks like Burris will get his Sena.. (7)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
Folderchat Weekday thread (438)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Titan quest and Immortal Throne, an.. (17)
Recent Discussions
New Build ( Finally ) (0)
MSN Hotmail Down??? (7)
Folderchat Weekday thread (438)
Help with an Ati Radeon HD 4850.. (23)
Laptop waking up itself (0)
CPU wont boot (3)
Best digital camera for under 2.. (13)
Building first computer, will t.. (2)
get this error, "res://C:\.. (73)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 07:51 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28