I changed Joomla FTP password.... access denied - joomla

So, I changed my FTP password from my hosting panel.
And I've no idea what the old password was.
And now my website displays "Access denied." on every page.
It's a Joomla website.
Thank you for your help !
Edit: When I try to login on the admnistrator page, here is what I get :
Warning: include_once(/home/clients/6a0b43a5add26c536570d4cb7062e046/web/libraries/fof/config/provider.php): failed to open stream: Permission denied in /home/clients/6a0b43a5add26c536570d4cb7062e046/web/libraries/fof/autoloader/fof.php on line 87
Warning: include_once(): Failed opening '/home/clients/6a0b43a5add26c536570d4cb7062e046/web/libraries/fof/config/provider.php' for inclusion (include_path='.:/opt/php5.6/lib/php') in /home/clients/6a0b43a5add26c536570d4cb7062e046/web/libraries/fof/autoloader/fof.php on line 87
Fatal error: Class 'FOFConfigProvider' not found in /home/clients/6a0b43a5add26c536570d4cb7062e046/web/libraries/fof/model/model.php on line 570
Then I cant get back to the administrator page, it keeps saying that error message.
Stefan

It sounds like you may have unintentionally changed the credentials that Joomla uses to connect to its database.
You'll need to know the username and password that your hosting account uses to connect to the Joomla database. If you don't know what these are you'll be able to find the username in your cPanel and you should be able to reset the password.
Then using either an FTP client or your cPanel file manager,
- open the configuration.php file in the root of your site
- locate the lines that start with public $user and public $password
- as precaution first copy and save the vales on these two lines
- then change their values to what you noted above, eg
public $password = "my_database_password";
That should do it.
The name of your Joomla database is set in the same configuration file on the line public $db. I think it's unlikely that you could have unintentionally changed this, though you could double check if updating your username and password doesn't work.
Good luck!

The FTP section you see at the Joomla! admin is for handling FTP jobs between your website and the server and it can't manage the server's FTP account.
In any case, you can bring your site back by disabling FTP like what it was before. Since you have no access to the website, you can do it via FTP or cPanel. Go to root folder of the Joomla! site and open configuration.php file. Then change the value of public $ftp_enable = '1'; to public $ftp_enable = '0';. It'll disable it again and you'll be able to see the website again.

Related

Magento 2 SessionHandler is trying to read data from a directory belonging to a different cpanel account after duplicating account for a staging site

I followed the steps in this tutorial to duplicate a cPanel account containing our live Magento 2 site. I had to do this to retroactively create a staging site, as it would take months to set up a copy of our production site.
Tutorial: https://bobcares.com/blog/cpanel-duplicate-account/
This process involved renaming the cPanel account which changed the database name and usernames, it changed the directory name, and I assume it changed the name in tons of other places as well. However somewhere I believe it forgot to change the username from the old ABC username, to the new ABCSTAGING username, and so it is still trying to access files from within our production account, which of course results in a permission denied error.
The solution would be to find what is causing this, instead of actually giving it permission, as of course we don't want the staging site to do anything with our production site.
Here's the full exception code:
Warning: SessionHandler::read(): open(/home/abc/tmp/sess_n8ii2c5ek61s7icaogcjckl087, O_RDWR) failed: Permission denied (13) in /home/abcstaging/public_html/vendor/magento/framework/Session/SaveHandler/Native.php on line 22
Any advice or help will be greatly appreciated.

magento from linux to windows cannot login - invalid formkey

I transferred my magento installation on ubuntu with files and mysql db dump to my development machine on Windows 10 with XAMPP installed.
I can up the frontend, but I cannot login my admin backend.
I am sure the password and user name are exactly as my installation on ubuntu, why happened? It just stay on the login form and saying all the time invalid formkey, I viewed the source formkey value just generated there.
There mentioned issue with charset, tried no help.
There is no any error logged in var/report and XAMPP apache errorlog, access_log to /index.php/admin is 200, looks good.
will you have any idea? thanks in advance.
Possible causes include
Incorrect permissions on var/session, preventing session files from
being saved
Incorrect configuration of database/redis/other session storage,
preventing saving of session values
A module is instantiating sessions to early, preventing the correct
session names from being set
The cookie domain in System -> Configuration -> Web -> Session Cookie
Management doesn't match the actual site domain.
You're using the localhost as your server domain, and using a version
of webkit that has trouble/bugs setting cookies for localhost in some
situations.
Easier is just to use the IP-address 127.0.0.1 to access Magento.
Open magento database and run below query.
update `core_config_data` set `value`='/' where `path`='web/cookie/cookie_path';
update `core_config_data` set `value`='[magentohost]' where `path`='web/cookie/cookie_domain';
If you have setup multiple store with subdomains, add Cookie Domain: .magentohost.com
Add a dot “.” follwed by Magento URL.
source : CodePetals

The URL "http://localhost/magento/" is not accessible. Unable to read response, or response is empty Magento Installtion Error

The URL "http://localhost/magento/" is not accessible.
Unable to read response, or response is empty
When install new magento in localhost.
As Ankit Parmar said, you can check
Skip Base URL Validation Before
...but you might encounter problems later on. This message appears probably because your domain is not public or not reachable. If you skip Base Url Validation, you will be able to finish the installation but you might get the strange problem of being able to log in but not to access the admin section (get redirected to the login page without any error message even if you see you're logged in by looking at the URL).
Rather than installing Magento under localhost, you should add a fake domain name in your host file and set up a vhost accordingly. you may then re-install Magento by accessing the fake domain name in your browser. You may setup the domain name in the core_config_data table if not done.
More over here: https://magento.stackexchange.com/questions/39752/how-do-i-fix-my-base-urls-so-i-can-access-my-magento-site

Need to change DB password in Joomla

The DB password was recently change for a website I'm working on (for reasons I won't get into). As such, Joomla is no longer able to connect to the DB, prompting the error message: Database connection error (2): Could not connect to MySQL.
Fortunately, I do know that I need to simply update the password in the configuration.php file to use the new password, but all of my attempts at making the change have failed. For security reasons I'm sure, I am completely unable to upload my modified configuration.php file. Normally I'd be happy to hear that the configuration file can't be modified, but in this one instance I need to modify it.
How would I go about modifying the file?
You options would be:
Upload new configuration.php via FTP file with new DB password value, however as you mentioned, you're unable to upload it.
Login to your hosting control panel and upload the configuration.php file via the built-in File Manager
Login to and change the password back to it's original value
Get in contact with your hosting provider and find out as to why you're unable to upload the config file.
One of the above options should work, however if all else fails, your last resort will be to contact the person who changed the DB password and ask them to change it back.
Being unable to upload / modify the configuration file, smells like a permissions issue. Maybe the file has permissions set to 444. Many FTP clients allow manipulation of the file permissions. You can set them to 644 for the config. file and then save it. If you can't do this through the FTP client, then try it within the cPanel.

Magento Access denied for user error

I decided to give a try to Magento. I have used my hosting provider´s service Simple Scripts to install it in a subdomain. After succesfull install a have tried to go to home page but this error has occured:
SQLSTATE[00000] [1045] Access denied for user: 'testing_1303#10.10.29.3' (Using password: YES)
I have searched google but found nothing. I have checked my data in app/etc/local.xml file. host, user, password, dbname everything is OK. I also checked minimal requirements with magento script and a I have passed all requirements.
Do you have any sugestions?
One more clue: I have renamed local.xml file to force Magento to install again, but it does not start the instalation. My browser throw this error: Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
SOLUTION:
And here is the solution with help of my hosting provider:
In the local.xml file put this as a host:
<host><![CDATA[127:0:0:1:/tmp/mysql50.sock]]></host>
This is almost definitely not an issue with Magento.
If you are sure your database credentials are correct then the problem probably lies in the fact that you are trying to connect to a non-local database server and the server does not allow remote connections.
SOLUTION: And here is the solution with help of my hosting provider: In the local.xml file put this as a host:
<host><![CDATA[127:0:0:1:/tmp/mysql50.sock]]></host>
Try emptying the var/ folder. Maybe it's a cache issue.

Resources