Newbie Spellweaver
- Joined
- May 8, 2004
- Messages
- 31
- Reaction score
- 0
Installing Apache/PHP
------------------------------
1.) First thing's first is to install Apache. To do this, you need to download and install it to its default directory. You can download Apache here:
2.) Next, you want to download the PHP files and extract them to a folder named php in C. When you extract the PHP files, it makes a subfolder inside of your php folder. You need to cut all the files out of C:\php\php-4.3.7-Win32\ and place them into C:\php. If you've done this correctly, all files should be in C:\php.
You can download the PHP files here:
Now bare with me, this takes a lot of computer knowledge and file moving. Please do the following if you want to have a good running Apache/PHP server.
3.) After installing Apache, you want to open "httpd.conf" under Start > Programs > Apache HTTP Server > Configure Apache Server
Once you have that opened, scroll down until you see the LoadModule section. It should have # signs infront of LoadModule. At the bottom of this list you want to make a space for a line you're about to put in. You want to insert the following line under the LoadModule section without the # sign:
LoadModule php4_module c:/php/sapi/php4apache.dll
There's 2 more lines you need to add into the httpd.conf file. Once that first line is entered in, scroll down until you see AddModule and at the bottom of this list is where you enter this next line without the # sign:
AddModule mod_php4.c
The last line you need to enter is pretty tricky to find. Scroll down about 3/4 the way down till you see AddType. If you can't find it go up to Edit and Find and type in AddType and first AddType you come to is where you need to add this line without the # sign:
AddType application/x-httpd-php .php
Now you've added all the lines into httpd.conf and now can close and save what you just edited.
4.) Next, we need to go make the "php.ini" file and put it into your C:\WINDOWS\ directory. To make php.ini, you need to Cut "php.ini-dist" located in C:\php and place it into your C:\WINDOWS\ directory. Once it's placed there, right click on php.ini-dist and rename it to "php.ini". Now you should be able to open this file in Notepad.
Now we need to do some editing in "php.ini". Open php.ini and scroll down until you see "Paths and Directories" or just Find it under Edit. Under Paths and Directories, you need to edit the following lines:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "\"
To:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php"
Now that you have that line in there, scroll down until you find a bunch of extension files with ; in front of them. In this list of extensions, you need to remove the ; infront of:
;extension=php_mssql.dll
Now you can close out of php.ini and save the editing you just did.
5.) Now we'll start moving files around to make Apache work. First file to move we'll start with "php.ini". If you still have your WINDOWS folder open, copy php.ini and paste it into:
C:\Program Files\Apache Group\Apache\
Next, you'll want to copy "php_mssql.dll" from C:\php\extensions\ and paste it in the following:
C:\php\
C:\WINDOWS\system32\
Now, you'll want to copy "php4ts.dll" from C:\php\sapi and paste them in the following:
C:\php\
C:\Program Files\Apache Group\Apache\
C:\WINDOWS\system32\
-------------------------------------------------------------------------------
Congratulations! If you've gotten this far, you have done everything correctly. Now you can go to Start > Programs > Apache HTTP Server > Start Apache in Console. If you don't get any errors, then you have done everything right. All your php files that you want to execute in Internet Explorer go in C:\Program Files\Apache Group\Apache\htdocs. To run these, for example, you would type in Internet Explorer:
If you come across a problem when giving your external IP to others and it forwards them to
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName localhost
You would change "localhost" to your external IP so it forwards them to that IP when they click on your link.
I hope everything above has helped as much as it did for me writing it. Good luck everyone!
Writen by,
Logan H
With help by,
Kijyata
------------------------------
1.) First thing's first is to install Apache. To do this, you need to download and install it to its default directory. You can download Apache here:
To view the content, you need to sign in or register
2.) Next, you want to download the PHP files and extract them to a folder named php in C. When you extract the PHP files, it makes a subfolder inside of your php folder. You need to cut all the files out of C:\php\php-4.3.7-Win32\ and place them into C:\php. If you've done this correctly, all files should be in C:\php.
You can download the PHP files here:
To view the content, you need to sign in or register
Now bare with me, this takes a lot of computer knowledge and file moving. Please do the following if you want to have a good running Apache/PHP server.
3.) After installing Apache, you want to open "httpd.conf" under Start > Programs > Apache HTTP Server > Configure Apache Server
Once you have that opened, scroll down until you see the LoadModule section. It should have # signs infront of LoadModule. At the bottom of this list you want to make a space for a line you're about to put in. You want to insert the following line under the LoadModule section without the # sign:
LoadModule php4_module c:/php/sapi/php4apache.dll
There's 2 more lines you need to add into the httpd.conf file. Once that first line is entered in, scroll down until you see AddModule and at the bottom of this list is where you enter this next line without the # sign:
AddModule mod_php4.c
The last line you need to enter is pretty tricky to find. Scroll down about 3/4 the way down till you see AddType. If you can't find it go up to Edit and Find and type in AddType and first AddType you come to is where you need to add this line without the # sign:
AddType application/x-httpd-php .php
Now you've added all the lines into httpd.conf and now can close and save what you just edited.
4.) Next, we need to go make the "php.ini" file and put it into your C:\WINDOWS\ directory. To make php.ini, you need to Cut "php.ini-dist" located in C:\php and place it into your C:\WINDOWS\ directory. Once it's placed there, right click on php.ini-dist and rename it to "php.ini". Now you should be able to open this file in Notepad.
Now we need to do some editing in "php.ini". Open php.ini and scroll down until you see "Paths and Directories" or just Find it under Edit. Under Paths and Directories, you need to edit the following lines:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "\"
To:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php"
Now that you have that line in there, scroll down until you find a bunch of extension files with ; in front of them. In this list of extensions, you need to remove the ; infront of:
;extension=php_mssql.dll
Now you can close out of php.ini and save the editing you just did.
5.) Now we'll start moving files around to make Apache work. First file to move we'll start with "php.ini". If you still have your WINDOWS folder open, copy php.ini and paste it into:
C:\Program Files\Apache Group\Apache\
Next, you'll want to copy "php_mssql.dll" from C:\php\extensions\ and paste it in the following:
C:\php\
C:\WINDOWS\system32\
Now, you'll want to copy "php4ts.dll" from C:\php\sapi and paste them in the following:
C:\php\
C:\Program Files\Apache Group\Apache\
C:\WINDOWS\system32\
-------------------------------------------------------------------------------
Congratulations! If you've gotten this far, you have done everything correctly. Now you can go to Start > Programs > Apache HTTP Server > Start Apache in Console. If you don't get any errors, then you have done everything right. All your php files that you want to execute in Internet Explorer go in C:\Program Files\Apache Group\Apache\htdocs. To run these, for example, you would type in Internet Explorer:
To view the content, you need to sign in or register
If you come across a problem when giving your external IP to others and it forwards them to
To view the content, you need to sign in or register
, the easy fix to this is to open your httpd.conf and scroll down to where it says: # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName localhost
You would change "localhost" to your external IP so it forwards them to that IP when they click on your link.
I hope everything above has helped as much as it did for me writing it. Good luck everyone!
Writen by,
Logan H
With help by,
Kijyata
Last edited: