Page 1 of 1

is ithis correct

Posted: Wed Nov 18, 2009 5:36 am
by delhiris
Hi
I download
apache_2.2.4-win32-x86-no_ssl.msi and
php-5.2.1-Win32.zip
I install
apache_2.2.4-win32-x86-no_ssl.msi
Also I extract php-5.2.1-Win32.zip in c:/ and change the name in php.
and in httpd .conf in conf directory where is installed Apache I write some code and she look like httpdconf.GIF.Added text is in the red rectangle..
I copy the php.ini-recomended and rename to php.ini(both files are in c:/php). I open the php
and change "extension_dir=c/." to "extension_dir="c:/php/ext/"
and uncomment(it is not in comment tags) "extension=php_mysql.dll".Ilustration for this is php.gif
When I like started Apache appear picture like in attachment start.gif

What is wrong here?

Re: is ithis correct

Posted: Wed Nov 18, 2009 5:40 am
by iankent
It needs a space, i.e.

AddType application/x-httpd-php .php

notice the space between the mime type (application/x-httpd-php) and the file extension (.php)

hth

Re: is ithis correct

Posted: Fri Nov 20, 2009 5:33 am
by delhiris
Thank this working.
My question is what should I change if I like my server to work and with Https not only with Http

Re: is ithis correct

Posted: Fri Nov 20, 2009 11:08 am
by iankent
That's quite a complex area. Apache is generally configured to accept HTTPS except the line to enable port 443 is probably commented out. Have a look at the top of your config file for something mentioning a number 80 near a number 443 (I can't remember what its called sorry!). The line with 443 in it probably has a # at the start. If so, delete the #, save the file, restart Apache and try using https://

(update: I think its called Listen, so the lines you're looking for are
Listen 80
#Listen 443
or something like that)

As I say, its a very complicated topic and there's a lot of other configuration that might need doing. Have a look at the Apache documentation and also see these articles:
http://httpd.apache.org/docs/2.0/ssl/ssl_howto.html
http://www.informit.com/articles/articl ... 5&seqNum=5
http://www.securityfocus.com/infocus/1818

If you're considering using HTTPS you should spend a lot of time learning about both Apache and HTTPS beforehand. Although once its configured its generally not too difficult to work with, actually getting it to a point where it works from a basic Apache install can be quite a nightmare!