473,385 Members | 2,014 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,385 software developers and data experts.

Apache 2.0, php 5 and mysql + win xp

Hi,

I am trying to run and configure Apache 2.0, php 5 and mysql on win xp
professional - this is the first time I have tried to install and
configure all three. I am having difficulty trying to configure them
on my computer. Can somebody help me - this is what I have done so
far.

Installed Apache 2.0, it worked perfectly ( I checked with my browser -
http://localhost) till the point where I started to point where I
wanted to store my html files. I have named the folder html_files and
have changed the DocumentRoot "C:/html_files" and <Directory
"C:/html_files/htdocs"> on the configuration file. And now it does not
work (http://localhost does not work). I get an error message saying
"You don't have permission to access / on the server". What am I doing
wrong?

Also I have installed and configured php 5, renamed Rename
e:\php\php.ini-dist it to php.ini and enterd the following on the
apache configuration file

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/php"

Obviously it does not work because apache is not working? Can somebody
help me? And how do I install and configure mysql?

Thanks,
Gene

Mar 8 '06 #1
3 3189
> Hi,

I am trying to run and configure Apache 2.0, php 5 and mysql on win xp
professional - this is the first time I have tried to install and
configure all three. I am having difficulty trying to configure them
on my computer. Can somebody help me - this is what I have done so
far.

Installed Apache 2.0, it worked perfectly ( I checked with my browser -
http://localhost) till the point where I started to point where I
wanted to store my html files. I have named the folder html_files and
have changed the DocumentRoot "C:/html_files" and <Directory
"C:/html_files/htdocs"> on the configuration file. And now it does not
work (http://localhost does not work). I get an error message saying
"You don't have permission to access / on the server". What am I doing
wrong?

Also I have installed and configured php 5, renamed Rename
e:\php\php.ini-dist it to php.ini and enterd the following on the
apache configuration file

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/php"

Obviously it does not work because apache is not working? Can somebody
help me? And how do I install and configure mysql?

Thanks,
Gene


Hi Gene,

There are also complete webserver packages, check
http://www.wampserver.com/en/index.php or http://www.devside.net

Good luck!

André

--
73' André, PE1PQX
Mijn site: http://pe1pqx.dyndns.org
Mar 8 '06 #2
ge******@yahoo.com wrote:
I have named the folder html_files and
have changed the DocumentRoot "C:/html_files" and <Directory
"C:/html_files/htdocs">
If you set your DocumentRoot to C:/html_files but the directory section
for the htdocs folder (which permits access via "allow from all") to a
sub directory, this won't work of course.

So either use
DocumentRoot "C:/html_files/htdocs" or change the directory section to
what you have set the DocumentRoot:

<Directory "C:/html_files">
Also I have installed and configured php 5, renamed Rename
e:\php\php.ini-dist it to php.ini
Why e:\? Is this just a typo?
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/php"


That looks correct. Did you check the windows event logging for any
error messages? If you find there an error message like "Cannot load
module...", may be some DLLs are missing. You can use a tool called
FileMon [1] which can show you the dll files apache is looking for.

[1] http://www.sysinternals.com/ntw2k/source/filemon.shtml

--
Robert
Mar 8 '06 #3
ge******@yahoo.com wrote:
Hi,

I am trying to run and configure Apache 2.0, php 5 and mysql on win xp
professional - this is the first time I have tried to install and
configure all three. I am having difficulty trying to configure them
on my computer. Can somebody help me - this is what I have done so
far.

Installed Apache 2.0, it worked perfectly ( I checked with my browser -
http://localhost) till the point where I started to point where I
wanted to store my html files. I have named the folder html_files and
have changed the DocumentRoot "C:/html_files" and <Directory
"C:/html_files/htdocs"on the configuration file. And now it does not
work (http://localhost does not work). I get an error message saying
"You don't have permission to access / on the server". What am I doing
wrong?

Also I have installed and configured php 5, renamed Rename
e:\php\php.ini-dist it to php.ini and enterd the following on the
apache configuration file

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/php"

Obviously it does not work because apache is not working? Can somebody
help me? And how do I install and configure mysql?

Thanks,
Gene
from:
http://www.apachelounge.com/forum/viewtopic.php?t=570

One of the biggest topics here at Apache Lounge is running PHP on
Apache. It is a topic that is constant and for some reason often
confused. Confused namely by varying ways to accomplish the same thing.
The following has been tested numerous times, and seems (at least so
far) to be easy to follow.Mr. Green

ExclamationIF YOU INSTALLED APACHE USING A MSI FILE THENExclamation
(otherwise skip down to CONTINUE section):
I have not tested Apache Software Foundation (ASF) MSI installation
applications lately, but the last time I tested the MSI FAILED to remove
to some things that can cause problems later on during the Un-Install
process. BEFORE you UN-INSTALL the MSI file, open a command prompt and
navigate to the BIN folder of Apache. Now, uninstall the service:

httpd -k uninstall

Now that the service is removed, uninstall Apache and then ALL PHP
entries (files [php5ts.dll and others depending on what each person has
done in the past] that you copied from where ever to where ever -
usually into the Windows\System32 folder).

ArrowCONTINUE:
Install the Microsoft VC++ Redistributable. The reason for this is
because it is NOT included in the latest versions of Windows; and
Steffen's builds are compiled using Microsoft Visual C++ 2005. The
Redistributable can be downloaded at the link below:

http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en

Download httpd-2.2.2-win32-x86-ssl.zip from
http://www.apachelounge.com/download/

Unzip this ZIP file in a new folder called something like C:\Apache2.
Then, read the file named Read Me First !!.txt. It will tell you how to
setup the service for Apache. If you want or need ApacheMonitor you can
create shortcuts however you like. Before installing ANYTHING else,
ensure Apache will start. After you validate that Apache starts, stop it
before proceding.

If you are still with me, now download PHP 5.x from PHP.net you want
this file: php-5.x.xx-Win32.zip (where x relates to the latest stable
version number)

Extract the contents of this file and move the contents to where you
intend to use PHP such as C:\PHP5.

NEXT, overwrite the php5apache2.dll with Steffen's version - READ the
'ReadMe' file for possible changes:

php5apache2.dll-php5.1.x.zip from http://www.apachelounge.com/download/
Navigate to the PHP folder and edit the php.ini-recommended. FIND the
extension_dir directive and change so that it properly locates the EXT
folder:

extension_dir = "C:\php5\ext"

Save the file as php.ini.

Add the folder that you put the PHP files into in the PATH ENVIRONMENT
(System Properties | Advanced | Environment Variables | System variables
| Path).

Example:
Variable name: Path
Variable value: C:\php5;%SystemRoot%\system32;.....

DO NOT WORRY with coping files over to the Windows folders, the reason
for this to begin with is because Windows folder is already in the Path.
Since you have added the PHP folder to the Path you do not need to copy
or move files to the Windows folder. This will make upgrading PHP
simpler as well and allows you to keep PHP all together. To upgrade PHP
in the future, all you need to do is delete the contents of the PHP
folder, and then extract the contents of the new version into the PHP
folder.

Finally, this should be the last step, edit the Apache CONF file with:

LoadModule php5_module "c:/php5/php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php-source .phps
# configure the path to php.ini
PHPIniDir "c:/php5"

This is how I put together WAMP, and I do it often (web application tester).

I hoped this helped.
Jul 27 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Randell D. | last post by:
Folks, I've never implemented a secure server before - and I now have a project for it - It will be an Apache 1.3 environment tuned with PHP and MySQL - and I'd appreciate any...
0
by: admin | last post by:
I have apache 2.0 install and mysql 4.0 installed. What I want is to be able to use phpmyadmin to adminstrate the database. However the problem I am running into is that the version of php that...
8
by: Brett | last post by:
I'm developing with CF 5 and SQL Server 2000. I think they are both great products. The major draw is their cost. I don't develop stand alone products because anyone that wants to purchase them...
0
by: bruce | last post by:
Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user:...
0
by: bruce | last post by:
Hi... Update.... We have the following setup in our httpd.conf file. We've tried to give what's related to the issue. We're trying to set up a virtual host for a test project. The behavior...
3
by: Griff | last post by:
Hi there I'm trying to run some CGI programs under Apache, written in C++, which use the "libmysqlclient" MySQL library. This is all running on Solaris. I build my programs using the...
0
by: Howard | last post by:
I have Apache Web Server 2.0.55 installed locally with MySQL 5.0.18-nt, and of course PHP 5.1.2 I also have installed phpMyAdmin. It is accessible through http://localhost/phpMyAdmin. The pathing...
0
by: zhenya.tkachenko | last post by:
Hi! Have a problem with mod_auth_mysql. Compilation and installation of module done ok: # /usr/local/apache/bin/apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz...
3
by: rabbithutch | last post by:
This is a newbie, first-time post on this forum. I need help getting MySQL installed on my local server so that it will inter-operate with Apache 2.2. I am running WinXP Pro V2002 SP-2, Apache 2.2...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.