Jump to content
  • 0

Errors in chmod configuration.php and msql


franz

Question

Installation errors:

 

My configuration.php chmod is 777 but i have error: Configuration File .......... You must set permissions for the configuration.php file so it can be written to (CHMOD 777)

 

I ignore it and i go to setp 3 (/install/install.php?step=3)

 

in step3 i fill all ok and after that i get this error:

"Could not connect to the database - check the database connection details you entered and go back and correct them if necessary"

 

My connection in mysql i OK i checked it by this php file:

 

<?php

mysql_connect("localhost", "user_name", "user_password") or die(mysql_error());

echo "Connected to MySQL<br />";

mysql_select_db("database_name") or die(mysql_error());

echo "Connected to Database";

?>

 

this is result:

Connected to MySQL

Connected to Database

 

Whot is wrong? Any idea?

Edited by franz
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Of course the first thing to check is that you are using the correct password and username and usually localhost as the host name...

 

Need to ensure that your are set as the owner of the config file, can also try 755 as the permissions as depending on your setup 777 may not be allowed...

Link to comment
Share on other sites

  • 0
Of course the first thing to check is that you are using the correct password and username and usually localhost as the host name...

 

Need to ensure that your are set as the owner of the config file, can also try 755 as the permissions as depending on your setup 777 may not be allowed...

 

My configurations file is set to 644 and as far as i know hasn't caused any issues.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated