Wow Web Designs Forums Home

Search
   
Members

Calendar

Help

Home
Search by username
Not logged in - Login | Register 
Wow Web Designs Forums > Scripting > PHP > Configuring Apache 2.2 and PHP 5.2.3


Configuring Apache 2.2 and PHP 5.2.3
 Moderated by: Aycan  

New Topic

Reply

Print
AuthorPost
southwestgooner
Member
 

Joined: Mon Jun 4th, 2007
Location: Clevedon, United Kingdom
Posts: 2
Status:  Offline
Mana: 
 Posted: Mon Jun 11th, 2007 11:30 am

Quote

Reply
Hi,
I am a complete novice with this but willing and looking to learn fast !
Having only worked with HTML prior to now, I am trying PHP for the first time.

I am trying to get a PHP site from my local PC to my free webspace I have with my ISP Virgin Media Broadband (formerly Telewest/Blueyonder Broadband). The root folder address for the uploaded site is http://www.stevearney.pwp.blueyonder.co.uk/genealogy. The site is locally stored in "C:/Apache2.2/htdocs/genealogy"

I am trying to install and configure Apache 2.2.4 to work with PHP 5.2.3.

Can anyone with knowledge of Apache 2 and PHP 5 confirm what I have done to be correct or if not what is wrong?

Here is what I have done so far:

Installed Apache 2.2.4 to C:/Apache2

Followed configuration instructions for C:/Apache2/conf/httpd.conf, C:/Apache2/conf/extras/httpd-manual.conf and C:/Apache2/conf/extras/httpd-vhosts.conf

Copies of the configured files are available to view via:
http://www.stevearney.pwp.blueyonder.co.uk/httpd.conf
http://www.stevearney.pwp.blueyonder.co.uk/httpd-manual.conf
http://www.stevearney.pwp.blueyonder.co.uk/httpd-vhosts.conf

I have then extracted PHP 5.2.3 to C:/Apache2/php5

Copied and renamed php.ini-recommended to php.ini
The php.ini file is stored in C:/Apache2/php5

Followed configuration instructions for PHP.ini

The configured php.ini file is also available to view via:
http://www.stevearney.pwp.blueyonder.co.uk/php.ini

I have then entered <?php phpinfo(); ?> into Notepad, saved as phpinfo.php and stored in "C:/Apache2.2/htdocs" folder.

The problem is as soon as I remove the comment from
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

I get a 'Page Cannot be Displayed error' for the http://localhost and http://localhost/phpinfo.php pages but the http://localhost/manual is still OK.

How do I correctly configure the httpd-vhosts.conf file so as it all works when I remove the comment mark in the #Include conf/extra/httpd-vhosts.conf line of code.

Also when I get it all working how do I upload the site to the http://www.stevearney.pwp.blueyonder.co.uk/genealogy folder and get it recognised in my browser, can this be done via FTP or does it have to be published from my PHP editting application like Dreamweaver?

Any help which would enable to resolve this would be very much appreciated.

Cheers,
southwestgooner.


 Current time is 07:56 pm




Powered by WowBB 1.7 - Copyright © 2003-2006 Aycan Gulez
Page processed in 0.1210 seconds (11% database + 89% PHP). 16 queries executed.