is ithis correct

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
delhiris
Forum Commoner
Posts: 33
Joined: Sun Sep 06, 2009 3:57 pm

is ithis correct

Post 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?
Attachments
start.GIF
start.GIF (10.24 KiB) Viewed 1458 times
php.GIF
php.GIF (95.3 KiB) Viewed 1458 times
httpdconf.GIF
httpdconf.GIF (48.66 KiB) Viewed 1458 times
User avatar
iankent
Forum Contributor
Posts: 333
Joined: Mon Nov 16, 2009 4:23 pm
Location: Wales, United Kingdom

Re: is ithis correct

Post 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
delhiris
Forum Commoner
Posts: 33
Joined: Sun Sep 06, 2009 3:57 pm

Re: is ithis correct

Post 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
User avatar
iankent
Forum Contributor
Posts: 333
Joined: Mon Nov 16, 2009 4:23 pm
Location: Wales, United Kingdom

Re: is ithis correct

Post 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!
Post Reply