472,370 Members | 2,561 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

[users@httpd] apache/mysql errors....

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 that we're seeing is that we can type:

http://foo.com but the url that gets displayed is

http://12.x.x.x where 12.x.x.x is the address of the external router

(foo.com is the internal IP of the Internal machine. The machine is behind a
linksys router.)

We're not sure why we're getting the 12.x.x.x from the server/app....
We'd like to have the app display the

The following information is from the httpd.conf file:

Listen 80
..
..
..
ServerName 192.168.1.52
..
..
..
UseCanonicalName on
..
..
..
#
# added the namevirtualhost (b douglas)
#
NameVirtualHost 192.168.1.52
#NameVirtualHost 12.x.x.x:80
# Virtual hosts
#
#bdouglas this was commented out...
# uncomment to test..
<VirtualHost 192.168.1.52>
### ServerAdmin fo*@earthlink.net
DocumentRoot "/var/www/gforge-3.0/www"
# ServerName 192.168.1.52
ServerName gforge.mesa.com
<Directory "/var/www/gforge-3.0/www">
Options Indexes FollowSymLinks
#AllowOverride All Order allow,deny
AllowOverride All
Allow from all
ErrorDocument 404 /404.php
Order allow,deny
DirectoryIndex index.php index.html index.htm index.shtml
</Directory>
</VirtualHost>

Any help/assistance/pointers would be greatly appreciated....

Thanks

Bruce
be*******@earthlink.net


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: 'apache@localhost' (Using password: YES) in
/var/www/html/dbid/mysql/database.php on line 17

Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost'
(Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17
Could not connect: Access denied for user: 'apache@localhost' (Using
password: YES)
---------------------------------

I have added the mysql user/password to the php file. I can access mysql
using the user/password from the linux command line.

However, when I check mysql, I don't have an Apache user defined in the user
table. Do I need to have one defined, or should the php app utilize the
user/passwd/dbname that I provide in the db_connect function?

I can access the phpMyAdmin application with no apparent issues/problems...

A check of google indicates that the issue seems to be related to not having
mysql setup for an Apache user....

As an additional question, if I have a web app that has a mysql db, do I
need to allow Apache to have access to each table that the app uses...?????

Any help/assitance/pointers to resolve this would be greatle appreciated...

Regards,

Bruce
be*******@earthlink.net
(925) 866-2790


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: us***************@httpd.apache.org
" from the digest: us**********************@httpd.apache.org
For additional commands, e-mail: us********@httpd.apache.org
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
0 1921

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

Similar topics

3
by: Andrea A | last post by:
Hi, i'm setting up a website with a forecast traffic of 70.000 sessions and 1.000.000 pageviews a day. I'm in trouble about the short budget I have (about 10K $) and the big traffic and so the...
0
by: W i l l | last post by:
I have Apache 2 parsing and serving PHP files just fine on my winXP box, however, when I try to add some mysql database functionality I get a warning that looks like this: Fatal error: Call to...
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...
6
by: JaxDawg | last post by:
OK... Crazy (possibly dumb) question here... I have a site running apache, mysql, php in a Win2K environment. Primary development is that env also. I also am setting up a linux box (old laptop),...
2
by: gavino | last post by:
REHDAT LINUX 4S PHP 4.3.9 LEGACY APP I MOVED NOW EATS MEMORY CAN ANYONE TAE A LOOK ? I FIXED ONE PARTIALLY BY CHANGING TO here are my apache settings: 1 page laoding for a few seconds eat like...
3
by: long eddy | last post by:
Greetings, I'm using an old computer - Win 98. I'd like to install php/apache/mySql on it but there are many versions and some do not recommend installing on Win98. If somebody could point me...
1
by: nitinpatel1117 | last post by:
Hi, I have a linux machine with redhat 8 installed. Does anyone know of a package that i may use to quickly instally apache, mysql and php. i'm looking for the quickest and most...
1
mageswar005
by: mageswar005 | last post by:
Hi Guys, Can any one help me how to install the php5,Apache,Mysql in Linux-Ubundu server. Regards, M.Mageswaran
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.