LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-27-2005, 09:51 PM   #1
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Rep: Reputation: 15
Do I need to recompile Apache sqL


Okay, I consider myself kinda a guru of sorts, and I don't really know how to fix this problem.. I do not know if I can even explain this right but I'll try.

I have installed apache, cause for sum reason I never thought I would need sql, so then I did an install of sql and needed, (hopefully all) librarys etc that php/sql, and apache needed to work together...now I get everything running.

I have added admin account password to mysql. I do not know if I have to add more users other than the one user 'shop' and my database called shop.

Now when I try and make a call from apache with any phpbackend etc, I get no responce from the sql server.

It' seems to me apache and the sql server are not talking correctly. Do I need to recompile apache?

Hope someone can help, thanx.
 
Old 01-28-2005, 03:40 PM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
no, u dont need to recompile apache. is the mysqld running? check
ps -e | grep mysqld
that should display the process number if running
how did u install mysql. rpm? how did u start it and what error messages do u receive.
u can find info in my.cnf where to find an error-log of mysql. might be in var/lib/mysql/mysqld.log

hope that helps
j.
 
Old 01-29-2005, 02:24 PM   #3
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Just curious, how are you making the mysql "call from apache"? Are you using perl or some other scripting language?

Is it possible to login into mysql without the mysqld daemon running?
 
Old 01-31-2005, 12:37 AM   #4
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
going to ckeck a few things, I did install sql with rpm, and I am trying to use perl, sql, apache.

I have set up a machine to do this before, and I am having troubles now.

I used to beable to type ;/

mysqladmin create testdatabase

and it would make but now I have to login etc. at terminal to use data base functions. hope this explains more while I ponder.
 
Old 01-31-2005, 03:49 PM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
did u install the perl Mysql package? u need that to make the database connection with perl. if not go
http://search.cpan.org
and get it. If u ve installed the module there'll be a documentation available on your box by typing
perldoc Mysql

cheers, j

Last edited by j-ray; 01-31-2005 at 03:52 PM.
 
Old 02-02-2005, 01:46 PM   #6
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
Yes,this must be installed, because I have the perldoc Mysql on the server..

so... what is wrong hehe, this problem has gotten the better of me.
 
Old 02-02-2005, 03:14 PM   #7
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
did u place the perl script in the cgi-bin of the server? did u
chmod 0755 file.cgi
or chmod 0777 file.cgi ?
What does the server say? Any error messages?
 
Old 02-06-2005, 03:05 AM   #8
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
I beleive perl isn't working cause I try .pl files in web browser and apache reports only an error...

this could be the root of my problem.
 
Old 02-06-2005, 10:24 AM   #9
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
u have to configure the server to execute cgi scripts. if u have apache installed on your box there maybe a manual at
http://localhost/manual

to execute scripts ending with .pl
u should add a line in httpd.conf like this
AddHandler cgi-script .cgi .pl
 
Old 02-06-2005, 10:45 PM   #10
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
well what I would like to happen is apache2 and mysql work together.

there must be something I am over looking, when any user on the machine can not just type:

mysqladmin create thedatabasename

and it creates for you... so mysql is working though I know this much, but apache isn't ? .pl I have done that.. anything else, cgi I have working have had for awhile now.
 
Old 02-07-2005, 12:02 AM   #11
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
I can not seem to connect to data base the usuall way, and this is why I am confused..

perl -MCPAN -e "install DBD::MySql"

I can not install because it can not connect properly to the data base..

there must be something I am over looking, dejavu...
 
Old 02-07-2005, 01:41 AM   #12
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
well i got perl-dbd-mysql installed, and now i get a little more from apache2 to mysql, but still things are not working correctly.

There is again 'something I am missing'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 04:45 AM
recompile distro installed apache dmcanally Linux - Software 1 09-21-2004 04:25 PM
Recompile Apache in RH9/FC1 lumux Red Hat 0 01-21-2004 09:30 AM
APACHE - I need to recompile the httpd.h. Can i do it like this? ForumKid Linux - Software 4 01-15-2002 03:15 PM
chili!soft/apache:recompile with -DEAPI? katana Linux - General 0 09-04-2001 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration