Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 17th, 2004, 04:01 PM
Registered User
 
Join Date: Dec 2004
Location: Louisville, Kentucky, .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help on installing php

I am in need desperate help. I am trying to install php on to apache on window 2k, however when I type code in and up load it, it only displays my code in internet explorer. The code that I wrote in it is correct and works at my job.
I went to this website:

(http://www.webmasterstop.com/tutoria...llation2.shtml)

and it told me to write this some code in httpd.conf file, however it does not work could someone please help me with this problem

Reply With Quote
  #2 (permalink)  
Old December 17th, 2004, 04:39 PM
Authorized User
 
Join Date: Dec 2004
Location: Tunkhannock, PA, USA.
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to peg110
Default

Presumably, the "code" you had to write in the httpd.conf file is something like:

    LoadModule php4_module modules/libphp4.so

    AddType application/x-httpd-php .php .php4 .php3 .phtml
    # PHP Syntax Coloring (recommended):
    AddType application/x-httpd-php-source phps


after you made the appropriate adjustments to the httpd.conf, did you RESTART apache? (In windows, you probably need to reboot).

Check you error log to see if there are any errors that might be helpful in resolving the issue.

I find the easiest way to test a PHP install is to create a small test


<?
   phpinfo();
?>

and call it phpinfo.php If you can call this and see ALOT of PHP information, your PHP is working.

Hope this helps.



Paul Gardner
------------------
PHP-LIVE help
Via Web @ http://www.mnetweb.co.uk/irc
Via IRC Client pgardner.net:6667
room #PHP
Reply With Quote
  #3 (permalink)  
Old December 17th, 2004, 06:40 PM
Registered User
 
Join Date: Dec 2004
Location: Louisville, Kentucky, .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it says that apache cannot load modules/libphp4.so
I tried saying ...libphp5... since that's what I'm using, but it didn't work.

Reply With Quote
  #4 (permalink)  
Old December 17th, 2004, 08:04 PM
Authorized User
 
Join Date: Dec 2004
Location: Tunkhannock, PA, USA.
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to peg110
Default

because you are using windows, you may have to point to the file a bit differently. Do a search fot the libphp4.so (or libphp5.so) and then change the line from modules/libphp4.so to whatever the actual path to the file is such as c:\program files\php\modules\libphp4.so (please note that the path I presented is completely ficticious and I do not know where the file is actaully stored).

Also note that if there is a space in the path name then you might need to QUOTE the entire string.



Paul Gardner
------------------
PHP-LIVE help
Via Web @ http://www.mnetweb.co.uk/irc
Via IRC Client pgardner.net:6667
room #PHP
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installing php derekms3636 Beginning PHP 1 June 9th, 2007 07:02 PM
Installing php 4 mega Beginning PHP 1 March 3rd, 2007 11:11 PM
Installing on Linux PHP Kevin Tough BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 December 5th, 2006 07:01 PM
I need help installing php apache mysql cardme42 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 5 September 13th, 2004 01:10 PM
installing php problem P.Y.sum Beginning PHP 5 January 19th, 2004 02:53 PM



All times are GMT -4. The time now is 01:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.