Html Posted February 7, 2018 Share Posted February 7, 2018 Hello, I'm not able to get a php page to display, I get the following error from visiting the page. 644 or 777 should be okay? Quote A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again. Link to comment Share on other sites More sharing options...
iwato Posted February 7, 2018 Share Posted February 7, 2018 What is the code that generated the failed permissions. Your error message should show the source of the error message. Roddy Link to comment Share on other sites More sharing options...
Html Posted February 7, 2018 Author Share Posted February 7, 2018 (edited) I don't know about that, I setup a paid account and moved my page to that. I did everything the same over, so I'm not sure what could of caused that. I then changed the permissions now, and it states couldn't connect to the db. I used the ip address of the mysql server or localhost, it doesn't change the result of not being able to connect to the database, for a connect file and post.php file updates. On the free host I was using 644 permissions. So what would be the difference, change a few values for connecting to the database, should bring problems, could it be a php version problem? Edited February 7, 2018 by Html Tried different connect values for the db Link to comment Share on other sites More sharing options...
dsonesuk Posted February 7, 2018 Share Posted February 7, 2018 Hosting usually have their own predefined database names, so its a matter of populating their database, and change your database connection to the new database and maybe new password. Have you changed permissions for directory AND files? Link to comment Share on other sites More sharing options...
Html Posted February 7, 2018 Author Share Posted February 7, 2018 (edited) The username is created by the system, and uses the database name. As for the directory, public_html has 755, the connect.inc. has 644, index.php the same. Registration.php 644. I changed it back to localhost, and instead of using the database, I used the username and db, which is how it appears to work with this paid host. Edited February 7, 2018 by Html Solved it. Link to comment Share on other sites More sharing options...
iwato Posted February 8, 2018 Share Posted February 8, 2018 Since you have a paid host, and you are trying to access files located on their server, they ought willingly to provide you with the support that you need. Try support@paidhostname.someextension. Roddy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now