Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 21st, 2002, 03:37 AM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
Question setting up apache 1.3.24 under windows 2000

ok i'm having some trouble with the httpd file, so i'm wondering in the httpd file what do i edit so i can get php working?
__________________
Apache Expert

Reply With Quote
  #2  
Old May 21st, 2002, 04:03 AM
sylow sylow is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Alkmaar, Netherlands
Posts: 11 sylow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to sylow
why dont you get the phpdev bundle from www.firepages.com.au? Will save your time and you can have extras (if you want).
good luck

Reply With Quote
  #3  
Old May 21st, 2002, 04:14 AM
Nautilus Nautilus is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Newcastle, UK
Posts: 6 Nautilus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nautilus
i'll assume you have php already installed to C:/php/
Find in the Apache httpd:
Code:
    ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"

    <Directory "C:/Program Files/Apache Group/Apache/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

and add the following below it:
Code:
    ScriptAlias /php/ "C:/php/" 

    #
    # "C:/php/" should be changed to whatever your ScriptAliased
    # PHP directory exists, if you have that configured.
    #
    <Directory "C:/php"> 
        AllowOverride None 
        Options None 
    </Directory> 

    AddType application/x-httpd-php .php .php3
    Action application/x-httpd-php "/php/php.exe" 

As with the CGI directory the scriptAlias has a trailing / but the <Directory> doesn't.

save the changes and restart Apache.

Nautilus

Reply With Quote
  #4  
Old May 22nd, 2002, 07:59 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
hmmm, currently im running the latest version of apache on my boot of xp, and i didnt have any problems with installing it??? you know about the install version of apache dont you??? what version, as in type of apache?? the install or another version?

Reply With Quote
  #5  
Old May 23rd, 2002, 05:44 AM
partyganger partyganger is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Limmen
Posts: 16 partyganger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The above installs PHP as CGI in Apache, which has a much more unreliable SAPI.
Better is to make PHP available through a module, which is done in the following manner:

first, go to your PHP directory and copy all dll's from the dlls directory to your System32 directory under Windows. Then, copy
the php4ts.dll from the PHP root dir, also to the System32 dir.

then, go to your httpd.conf file, and add the following lines:

Code:
### PHP module, adjust the path
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php .phtml .php3 
### only add the line below if you want files named .phps to be visible as source code
AddType application/x-httpd-php-source .phps

Reply With Quote
  #6  
Old May 26th, 2002, 01:00 AM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
Quote:
Originally posted by partyganger
The above installs PHP as CGI in Apache, which has a much more unreliable SAPI.
Better is to make PHP available through a module, which is done in the following manner:

first, go to your PHP directory and copy all dll's from the dlls directory to your System32 directory under Windows. Then, copy
the php4ts.dll from the PHP root dir, also to the System32 dir.

then, go to your httpd.conf file, and add the following lines:

Code:
### PHP module, adjust the path
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php .phtml .php3 
### only add the line below if you want files named .phps to be visible as source code
AddType application/x-httpd-php-source .phps



i tried that there with my configuration and i got some funny error. let me try it again and see what it says. also guys under apache how do i go about making my site where i can access all the folders underneath a particular directory?

Reply With Quote
  #7  
Old May 26th, 2002, 03:36 AM
partyganger partyganger is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Limmen
Posts: 16 partyganger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by asp_man



i tried that there with my configuration and i got some funny error. let me try it again and see what it says. also guys under apache how do i go about making my site where i can access all the folders underneath a particular directory?


Could you post the error, so I can see where it goes wrong?

Reply With Quote
  #8  
Old May 26th, 2002, 06:36 AM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
Thumbs down

ok i got it working but i have a question? how in the world do i get this thing to point to where my folder with all my scripts is? i keep getting 404 errors everytime and i don't know what i'm doing. please help....

Reply With Quote
  #9  
Old May 26th, 2002, 02:32 PM
partyganger partyganger is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Limmen
Posts: 16 partyganger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by asp_man
ok i got it working but i have a question? how in the world do i get this thing to point to where my folder with all my scripts is? i keep getting 404 errors everytime and i don't know what i'm doing. please help....

in your htttpd.conf file, look for :
(below is my path, yours is where you installed Apache)

DocumentRoot " c:\server\apache\htdocs"

change the path above to match the dir where your site is in.

and below that, the first :

<Directory "c:\server\apache\htdocs">

change the path above to match the dir where your site is in.

Reply With Quote
  #10  
Old May 27th, 2002, 01:24 AM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
Talking

partyganger you're a lifesaver man thanks i got it working and pointed to my directory. now how do i setup mysql under apache? sorry for all these questions.....

Reply With Quote
  #11  
Old May 27th, 2002, 01:52 AM
partyganger partyganger is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Limmen
Posts: 16 partyganger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by asp_man
partyganger you're a lifesaver man thanks i got it working and pointed to my directory. now how do i setup mysql under apache? sorry for all these questions.....


No worries

Go to www.mysql.com and download the latest Win32 Binary (it's in a zip file.) Install that, go to the bin directory in the directory in which you installed MySQL and run winmysqladmin.exe. (MySQL is not setup under Apache but under PHP and as of version 4, support for MySQL is built into PHP :-D )

You should see a traffic light icon that should be green. popping up in the system tray (where the clock is in windows :P). If not green, reboot and then it should work fine.
(rebooting, the mother of all debuggers .
Then, double click that icon and it'll ask you for a username and password.
ALWAYS!! use root for username here and any password (don't leave it empty because root gives you full access to MySQL (including the Grant tabls, in wich user rights for MySQL are defined))

If you want to make it really easy for yourself, download phpMyAdmin and add the following lines to your httpd.conf:
Code:
### ajust the path accordingly to where you extracted phpMyAdmin
Alias /phpmyadmin/ "C:/server/phpmyadmin/"

    <Directory "C:/server/phpmyadmin">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>


and in the config.inc.php file in the phpmyadmin dir, find what you see below and edit that to match your path (on the site, not on your harddrive, as seen below)
Code:
$cfgPmaAbsoluteUri = 'http://localhost:8000/phpmyadmin/';

Just below that line, you can enter your username (which is already set to "root" in the config.inc.php and the password for MySQL

Now your al done

any questions?

Last edited by partyganger : May 27th, 2002 at 01:54 AM.

Reply With Quote
  #12  
Old May 27th, 2002, 03:00 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
i know how to install mysql already, i just thought there was some other way to install it under apache. anyways heres my deal i need to completely delete mysql from my computer, because i deleted all the users except my username and since then phpmyadmin has stopped working as well as anything pertaining to the mysql database and i was wondering how do i get these programs working correctly again.

Reply With Quote
  #13  
Old June 6th, 2002, 12:27 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
Angry Help!!!

ok guys my site contains 5 pages and using apache howcome, when i point it to my site name example http://loadsiteplease/all.php i get nothing but a white screen. how do i get it to load all 5 pages under apache?

Reply With Quote
  #14  
Old June 6th, 2002, 03:40 PM
partyganger partyganger is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Limmen
Posts: 16 partyganger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Help!!!

Quote:
Originally posted by asp_man
ok guys my site contains 5 pages and using apache howcome, when i point it to my site name example http://loadsiteplease/all.php i get nothing but a white screen. how do i get it to load all 5 pages under apache?


Could you show me your source code?

Reply With Quote
  #15  
Old June 6th, 2002, 04:47 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 m 10 sec
Reputation Power: 7
Re: Re: Help!!!

Quote:
Originally posted by partyganger


Could you show me your source code?



from my site or from the httpd file or both?

Reply With Quote
  #16  
Old June 6th, 2002, 11:39 PM
partyganger partyganger is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Limmen
Posts: 16 partyganger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
in your httpd.conf, you have to set the Directory index, which is now only index.html to:

Code:
<IfModule mod_dir.c>
    DirectoryIndex index.html index.php index.cgi
</IfModule>

or to whatever page you want your visitor to go to first

In your site: if you want 1 page to include all the other pages, you can use the include() function:

Code:
include("path/page1.php");
include("path/page2.php");
include("path/page3.php");
include("path/page4.php");

enz.

Reply With Quote