Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-28-2005, 07:25 PM   #1
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/ on line 45
Unable to connect to database

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

Thanks in advance

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

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

Rep: Reputation: 15
Is mysql on?
ps ax | grep mysql
If not:
/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, 06:02 AM   #4
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



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

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

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