[Apache Problems (1.3)] -



Apache Problems (1.3)

Discuss Apache Problems (1.3)



Posted by: DeMonTeC

Hey, I belive I could be some use here for technical help. I have my A+ Cert, my Secur+ Cert, and Soon to go and take the Microsoft Cert.
Although, I am not an expert in every field. I may know about internet and sever security, but I am a 100% "nooblar" at configuring servers.
I have decided to run my own server, and on it I have DL'ed and installed Apache 1.3 (Because it was said to be more stable with PHP support) - I DL'ed the PHP "whatever-its-called" but **ARGH** I think I am a COMPLETE IDOT!!! No matter what I do, I follow the directions exactly, but I cannot install php support for my server.
Once again I am running an Apache 1.3
Any Help/Suggestions?



Posted by:

PHP...ahhhh - Shan or Ecniv can maybe help you out there when they next pop in.



Posted by: DeMonTeC

It's very annoying... I do everything the ReadMe file says to do. But it still won't recognize what to do with the ext .php.



Posted by:

I'm sure you'll have an answer in the next 24 hours. I haven't got a clu about PHP. But i know a man who does... ;)



Posted by: DeMonTeC

Come on people, someone on this whole board has to know what I am talking about...I thought this was Tech Forums.



Posted by:

Patience...:D



Posted by: þÄ®âÐÖx

I'm in the same boat as you... I've installed Apache, but i'm certainly no expert on it... I did get php to work, but I don't remember doing anything special.. it just kind of.. worked...



Posted by: shan

Are you guys installing the servers to Windows or Linux machines?



Posted by:

^
||
||
||
\=Expert :D



Posted by: Martin

The readme included with the entire PHP .zip package (I don't prefer downloading the .exe installer, as it only contains the CGI executable), will show you what lines / variables you will need to enter into the Apache configuration file, to either set up PHP as a CGI executable (more common setup), or Apache server module (safer, higher script function guarantee), and check your Apache configuration file to make sure the server will recognize the 'default' PHP files (e.g. index.php, index.php3, etc.).

hope this was help to a degree :)



Posted by: DeMonTeC

Windows XP - Corporate Edition. (Really just Professional with small changes). **Off topic: DeMonTeC thinks "God, I love this clear type"** So, any suggestions?



Posted by: DeMonTeC

Well, ****. If I am just too **** ignorant to realize what I didn't do (Yes I followed ALL instructions listed) I will just try out MS's .NET 2003 Server (RC2 stage)



Posted by:

Temper, temper... :D



Posted by: shan

Do you have an SQL Server installed?



Posted by: Kevin

I have a solution for you :)
goto google and search for 'PhpTriad'

This program is apache, mysql, and php all bundled together...All you have to do is click setup once downloaded and it installs them all 3 for you and saves tons of hassle ;)



Posted by: Myth Pharoah

Here is something from the PHP Install file that comes with the source download:[quote]
Installing PHP on Windows with Apache 1.3.x

There are two ways to set up PHP to work with Apache 1.3.x
on Windows. One is to use the CGI binary (php.exe),
the other is to use the Apache module dll. In either case
you need to stop the Apache server, and edit your
srm.conf or httpd.conf to configure Apache to work with PHP.

Although there can be a few variations of configuring PHP
under Apache, these are simple enough to be used by the
newcomer. Please consult the Apache Docs for further
configuration directives.

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 windows/system (for Windows 9x/Me)
or winnt/system32 (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

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"[/quote]

I'd recommend the module based installation, as its a bit faster and the SERVER variables setup will be similar to your hosts. (Most hosts configure PHP as a module)

A step by step procesure:
1) Move the php4ts.dll to the your winnt/system directory.
2) Add
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
to the httpd.conf file in the conf folder of apache.
3) Restart your server.

Remember to change the [i]c:/php/sapi/php4apache.dll[/i] in the 2nd step to something that corresponds your php4apache.dll filepath, ok?

I think this should do it. Think!