473,396 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can someone take a look at this httpd.conf file section

I just picked up this book "Build your own Database Driven Web site using PHP & MySQL.

On Page 18 section 4. It states all the remaining options in this long and intimidating configuration file should have been set up correctly by the Apache install Program. All you need to do is add the following lines to the very end of the file.

LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/PHP"

I'll now paste the part of the configuration file I'm wondering about. I put this in the conf file at the very end. But I'm wondering if this is supposed to just above the </IfModule>

Expand|Select|Wrap|Line Numbers
  1. # Note: The following must must be present to support
  2. #       starting without SSL on platforms with no /dev/random equivalent
  3. #       but a statically compiled-in mod_ssl.
  4. #
  5. <IfModule ssl_module>
  6. SSLRandomSeed startup builtin
  7. SSLRandomSeed connect builtin
  8. </IfModule>
  9.  
  10. LoadModule php5_module "C:/PHP/php5apache2_2.dll"
  11. AddType application/x-httpd-php .php
  12. PHPIniDir "C:/php"
I ask this because when I restart Apace it starts fine with no errors but according to the book I should be able to Double click the Apache Service Monitor icon to open the Apache Service Monitor window. If PHP is installed correctly, the status bar of this window should indicate the version of PHP you have installed.

I don't see that PHP Version....

Thanks for any help you can offer.

Thanks again
Doug
Dec 4 '10 #1
1 1585
dlite922
1,584 Expert 1GB
if C:/PHP/php5apache2_2.dll file exists and php.ini is in C:/PHP. That's all you need.

If Apache starts try to display a php page. I'm not so sure Apache Monitor displays the php version. If your book says this, it is false information.

create a .php file in your web root and put this in it:
Expand|Select|Wrap|Line Numbers
  1. <?php phpinfo(); ?>
access it via a browser. Do you see the PHP information page?

To get MySQL working, use your book and use this page Look for the MySQL section towards the bottom. If this section is not there, MySQL is not installed correctly.

Cheers,


Dan
Dec 7 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Steve | last post by:
Hi, Does anyone here know of any free/open source Apache conf file parsers written in python ?? I found quite a few of them written in perl, but I am writing my app, in python and don't want to...
0
by: John K | last post by:
I am still pretty new to this environment and don't know much about httpd.conf. I understand that it is the place to configure the server but don't know how to actually use it for what I'm trying...
4
by: Prince of Code | last post by:
Hi all, I would like to know what is the difference between LoadModule & AddModule configuration directives in httpd.conf of Apache server. I guess LoadModule is for loading dynamic modules which...
0
by: Gerard Flanagan | last post by:
Hello, Does anyone know of an existing module to parse httpd.conf files? Thanks.
4
by: coaxfiber | last post by:
Hi guys, my problem is when I installing the Apache v2.2.4 as my local server to run my php, and then run the test configuration, it tells me this error: httpd.exe: Syntax error on line 152 of...
0
by: s2rinivasan | last post by:
I am using Redhat linux EL4 2.6.9-5 . In it I am configuring httpd configuration with out authentication it gives the currect page. But with authenticetion it shows some error that MYSQL ERROR:...
0
by: teenasexy | last post by:
Hi, I am working on Tomcat Server on port 8080. so i have to access the JSP page with URL http://localhost:8080/abc/xyz.jsp where abc is application name and xyz.jsp is the jsp page. Now I want to...
1
by: dsudhakara | last post by:
In my queues.conf file my text message are stored here .I want to retrieve particular campaign modify some words in particular campaign and return to save the same queues.conf file .Plz give me...
1
by: jodleren | last post by:
Hi! It seems like I have a problem with httpd.conf... I have a folder named "icons", and when using <img src="icons/.... then it gets some from some apache icons folder... I found a site...
2
by: K. | last post by:
Hello! I would like to implement such funcionality: https://www.test.pl -I enter into this page without any problems (encrypted connection) when user tries to write: http://www.test.pl...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.