cazbarbird Posted January 6, 2009 Share Posted January 6, 2009 Hi trying to change my permission code for the configure.php. I type in 444 it reverts back to 644, I type in 400 it reverts back to something else. the error keeps saying i need to change it and i dont know what to do. i have even changed FTP programs and that didn't help. anyone? Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 6, 2009 Share Posted January 6, 2009 If an ftp program like filezilla does not work, which can happen, use your hosting companies control panel. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
cazbarbird Posted January 6, 2009 Author Share Posted January 6, 2009 If an ftp program like filezilla does not work, which can happen, use your hosting companies control panel. I have asked them about that, they said i have to use a FTP as I cant do it in file manager... i have tried 2 ftps now both do the same. i shall try another tried filezilla, same thing happens, i honestly do not know what to do, what will happen if its left, its at 644 but that pink error at the top keeps coming up, why oh why any other ideas? Link to comment Share on other sites More sharing options...
rescuestat Posted January 6, 2009 Share Posted January 6, 2009 I have asked them about that, they said i have to use a FTP as I cant do it in file manager... i have tried 2 ftps now both do the same. i shall try another tried filezilla, same thing happens, i honestly do not know what to do, what will happen if its left, its at 644 but that pink error at the top keeps coming up, why oh why any other ideas? As what Geoffrey told you the best way is using the cpanel, I don't understand why you hosting company would not allow you access to a file manager. But, neither here nor there. The implications of allowing your configure.php unsecure are many, example if someone can get into it they would have access to your database user name/password..and compromise your customer payment info. Here's a work around though. Create a php webpage and simply insert these 4 lines. Save this webpage to your catalog directory(where index.php is) using your FTP program. <?php chmod("includes/configure.php", 0444); echo "Configure.php set to 0444"; ?> Open this webpage in your internet browser, this should change the permissions on configure.php to whatever you set the chmod value to. Make sure after you do this that you delete the webpage using you FTP program. This should work(checked prior to posting by changing/resetting configure.php). Frank Link to comment Share on other sites More sharing options...
cazbarbird Posted January 6, 2009 Author Share Posted January 6, 2009 As what Geoffrey told you the best way is using the cpanel, I don't understand why you hosting company would not allow you access to a file manager. But, neither here nor there. The implications of allowing your configure.php unsecure are many, example if someone can get into it they would have access to your database user name/password..and compromise your customer payment info. Here's a work around though. Create a php webpage and simply insert these 4 lines. Save this webpage to your catalog directory(where index.php is) using your FTP program. <?php chmod("includes/configure.php", 0444); echo "Configure.php set to 0444"; ?> Open this webpage in your internet browser, this should change the permissions on configure.php to whatever you set the chmod value to. Make sure after you do this that you delete the webpage using you FTP program. This should work(checked prior to posting by changing/resetting configure.php). Frank thanks for that Frank, but I have no idea what u just said hehe, yes i'm a newbie. i understand how to make a basic webpage in something like windows publisher or something but i do no know how to make a php one... i might have to ask my server again, they surely know how to do it Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 6, 2009 Share Posted January 6, 2009 To create a php page save a file called config_perm.php containing the 4 lines mentioned above and there you go. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
cazbarbird Posted January 6, 2009 Author Share Posted January 6, 2009 To create a php page save a file called config_perm.php containing the 4 lines mentioned above aand there you go. but where would i create one, using what program. sorry :) Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 6, 2009 Share Posted January 6, 2009 Use a text editor such as notepad. File >> Save ..... Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
cazbarbird Posted January 6, 2009 Author Share Posted January 6, 2009 Use a text editor such as notepad. File >> Save ..... ok, managed to do that... next thing, how do i go to it to open it in my browser.. god i'm doing well hehe Link to comment Share on other sites More sharing options...
germ Posted January 6, 2009 Share Posted January 6, 2009 If it does that just right-click on the file and rename it. ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 6, 2009 Share Posted January 6, 2009 Then rename it. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
rescuestat Posted January 6, 2009 Share Posted January 6, 2009 thats what i have been doing but it saves it as a text. EG blahblah.phd.txt its really frustrating me Insert the 4 lines in notepad, save the file using config_per.php in the filename box, the file type will remain text-file but it will be saved as config_perm.php with the correct .php extension. FTP to your website, open the config_perm.php in your browser and this should change the permissions. After you verify the permissions have changed, delete the config_perm.php file. That should do it for you. Frank Link to comment Share on other sites More sharing options...
cazbarbird Posted January 6, 2009 Author Share Posted January 6, 2009 ok, managed to do that... next thing, how do i go to it to open it in my browser.. god i'm doing well hehe i went to my file manager, opened it up which it opened up in the browser and is that it???? please say thats it hehe Link to comment Share on other sites More sharing options...
rescuestat Posted January 6, 2009 Share Posted January 6, 2009 i went to my file manager, opened it up which it opened up in the browser and is that it???? please say thats it hehe All it will do is change the permissions on configure.php and then display the text "Configure.php is been changed to 0444". If everything worked correctly the pink bar at the top of your website should be gone as the configure.php file permissions has been changed. Frank Link to comment Share on other sites More sharing options...
cazbarbird Posted January 6, 2009 Author Share Posted January 6, 2009 All it will do is change the permissions on configure.php and then display the text "Configure.php is been changed to 0444". If everything worked correctly the pink bar at the top of your website should be gone as the configure.php file permissions has been changed. Frank well yep did all that, went to check if that pink bar had gone but alas the page wont even come up now... http 500- cant understand it... i have deleted the file now incase.... i saved the file in the same directory as index.phd is that correct, not the directory where the config files are... arghhhhhhhhhhhhhhhhhhhhh :) helllp me Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 6, 2009 Share Posted January 6, 2009 What are the permissions on /includes/configure.php now? Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
cazbarbird Posted January 6, 2009 Author Share Posted January 6, 2009 What are the permissions on /includes/configure.php now? sorted it... i deleted everything and started again my god this computer techie stuff is hard... this what a suport person gave me <?php $filename = "file.php"; chmod("/customers/mydomain.dk/mydomain.dk/httpd.www/$filename", 0444); echo "chmod for $filename was changed"; ?> so used that and bobs ur uncle thanks for all your help.. u got me on the right track :) massive kisses alround Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.