LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't Get php to work? (https://www.linuxquestions.org/questions/linux-software-2/cant-get-php-to-work-387409/)

ahsiii 11-28-2005 07:25 PM

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

reddazz 11-28-2005 08:07 PM

I don't think its problem with php, but your database settings.

number9 11-28-2005 10:17 PM

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.

ahsiii 11-29-2005 06:02 AM

mysql is running, but I will go thru the script to check for user and passwd.

Thanks for your help

alvin


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