Current location: Hot Scripts Forums » Programming Languages » PHP » newbie ?


newbie ?

Reply
  #1 (permalink)  
Old 07-11-03, 03:10 PM
Queenpin Queenpin is offline
New Member
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
newbie ?

I am on XP Prof and have just installed apache 2.0, php4 and mysql. I have read every hint I can find about the installing and config files. When I do the test .php file it will not show up, the server does start up and I can get to //localhost just not to the test.php. Also according to most ppl you are suppose to put a line in the cong file that says "AddType application/x-httpd-php .html" when I put this in then the server will not load. If I try to start using the start server link from the programs directory it gives me a dos window that flashes so I can not read the error code. I can not seem to get this window to stop so it can be read. I do not know if the php is working with the server or not since it will not load the test.php doc. I doubled checked the install instructions and can not seem to figure out why it will not load. Anyone have a suggestion for me??

Thanks qp
Reply With Quote
  #2 (permalink)  
Old 07-11-03, 03:21 PM
BdSBB BdSBB is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Georgetown, TX
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
You'll need to read the install.txt file in the PHP directory to understand what all you will be doing to install PHP correctly.

First grab php.ini-recommended and rename it to php.ini, now move this file to your windows directory either WINNT\ or Windows\.

Second move the dlls that are in the PHP\dlls directory to a system folder either WINNT\system or Windows\system. Also, copy and paste php4ts.dll in this directory.

Add these lines to httpd.conf file

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

Your apache main root should be in your Apache directory the root is called htdocs\. This is where you'll be placing test.php. Now in your browser call http://localhost/test.php and see what comes up.

DON'T FORGET TO RESTART THE SERVER!
__________________
-- BdSBB
Reply With Quote
  #3 (permalink)  
Old 07-11-03, 05:01 PM
ChristGuy ChristGuy is offline
Operations Support Develo
 
Join Date: Jun 2003
Location: Rivonia, South Africa
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Greetingz...

The following is what I have (Tested on Win98se, Win2K pro/as, WinXP pro)

extract/install PHP to D:/Program Files/PHP <-- Or where ever

httpd.conf
Code:
# Dynamic Shared Object (DSO)
LoadModule php4_module "D:/Program Files/PHP/php4apache2.dll"

.
.
.

AddOutputFilter INCLUDES .shtml .htm .html

#
# PHP scripting language
#
AddType application/x-httpd-php .php .php3 .phtml
copy php.ini-recomended to c:/windows/php.ini

Check the PHP dir copy ./sapi/php4apache2.dll to the PHP dir
Copy any extensions you want from ./extensions and enable them in php.ini

Check php.ini and change any options you need.

Restart your server

That should work...
__________________
Till We Meet Again...
Clifford W. Hansen
Aspivia (Pty) Ltd

"We Have Seen Strange Things Today!" Luke 5:26
Reply With Quote
  #4 (permalink)  
Old 07-12-03, 12:48 PM
Queenpin Queenpin is offline
New Member
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks For the help. After 3 days of messing with it I dl it from another source. Then it worked fine. I did have all the dlls in the right place and all the scripts in where they belonged so figured it had to be something wrong with the installs if it wasnt working. I ended up using the apachetri install from here. Installed everything at once and all you have to do is modify some info. Much easier and less hassles to it. Thanks again for all the help

qp
Reply With Quote
Reply

Bookmarks


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

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How about implementation a newbie forum? kambodja Hot Scripts Forum Questions, Suggestions and Feedback 6 09-03-03 08:03 PM
Hey Experts... guide a newbie :) Salvage PHP 7 08-18-03 06:27 PM
Newbie need a URL display script aespinal Script Requests 1 07-29-03 04:34 AM
Newbie: Looking for a image voting script... MNis PHP 5 07-06-03 01:01 PM
Newbie needs galleryscript zoecw Script Requests 6 07-04-03 01:16 PM


All times are GMT -5. The time now is 10:26 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.