LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-28-2005, 08:25 PM   #1
ahsiii
LQ Newbie
 
Registered: Nov 2005
Location: nc
Distribution: Gentoo
Posts: 19

Rep: Reputation: 0
Question Can't Get php to work?


I have tried to get a php application to work? I have installed php, apache, and mysql. I have set the permisions up as :chmod 777 xxx, but when I access the said files, I get this error message:

Warning: mysql_connect(): Access denied for user 'user'@'localhost' (using password: YES) in /home/alvin/public_html/catalog/include/class/class.DBI_mysql.inc on line 45
Unable to connect to database

My first experience with php, I have been doing html for years.

Thanks in advance


ahsiii
 
Old 11-28-2005, 09:07 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
I don't think its problem with php, but your database settings.
 
Old 11-28-2005, 11:17 PM   #3
number9
Member
 
Registered: Dec 2003
Location: Fresno
Distribution: Gentoo Ricer
Posts: 85

Rep: Reputation: 15
Is mysql on?
Code:
ps ax | grep mysql
If not:
Code:
/etc/init.d/mysql start
See that there is a password set for your mysql user and that you are using the same combination in your scripts.
 
Old 11-29-2005, 07:02 AM   #4
ahsiii
LQ Newbie
 
Registered: Nov 2005
Location: nc
Distribution: Gentoo
Posts: 19

Original Poster
Rep: Reputation: 0
mysql is running, but I will go thru the script to check for user and passwd.

Thanks for your help

alvin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Getting PHP to work..... wacki Programming 4 08-24-2005 06:38 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 12:05 PM
getting PHP to work...please help! rudini Linux - Software 12 03-24-2005 06:44 AM
php doesn't work drenal Linux - Newbie 3 01-21-2004 08:14 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM


All times are GMT -5. The time now is 06:02 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration