cPanel /Host / Access to phpMyAdmin - hosting

I have a host and cPanel access but only one main user and password to cPanel.
I want to give someone access to phpMyAdmin but don't want to give that person my main user and password for cPanel.
Is there anyway to give someone access to phpMyAdmin but not cPanel?

The phpMyAdmin which comes with cPanel (in the 3rdparty-directory) is apparently secured with the cpanel-authentication, so the answer is "no".
You could install your own phpMyAdmin (maybe it's even available in the script-center/one-click-installer) and set it up to directly authenticate on the MySQL-server with your custom MySQL-user or just let your user enter his credentials which you have supplied.

As I was looking for an answer to this question, I found the following method that did the job for me:
How to access phpMyAdmin directly from my domain?
This worked well for me, although I'm using a different hosting provider then Siteground.
Steps I followed:
Downloaded the phpmyadmin installation package. I found the appropriate version, as hosted on my server at sourceforge.net/projects/phpmyadmin/files/phpMyAdmin
Extracted the package.
Uploaded the files into a suitable folder. I used: public_html/phpmyadmin/
Now, via the direct URL [http://yourdomain.com/phpmyadmin] I can strictly grant access to a specific database, I have created in cPanel (using the specific user name + password).
Please note this extra security measure:
For additional security we would also recommend you to Password Protect the directory in which the tool is installed.

You cannot give direct access to your phpMyAdmin without providing direct cPanel access as well.
This is a security measure from cPanel as phpMyAdmin is known to be one of the most exploited PHP applications of all time. It is only available after you start your session by logging into cPanel.
A nice work-around this is to do the following:
Create a MySQL User for the other person. Assign that MySQL User to your Database. Both of those are done through:
cPanel -> MySQL Databases
After that you need to allow access for the other person by adding his/hers IP address in your Remote MySQL Connection - this is also a tool in cPanel
After that the other person will be able to connect to your Database without direct access to your cPanel nor phpMyAdmin, it can be done using software like MySQL WorkBench

cPanel user account has a privileges to control all created databases under cPanel account, And because phpMyAdmin in cPanel is using cPanel authentication you are automatically redirected to the phpMyAdmin control page without asking for login info.
Your target could be done with changing cPanel password without changing mysql user password.
You can do the following steps :
1 - Create MySQL user and add this user to database with full privs.
2 - Create new cPanel account Login through new account Change new cpanel
3 - user password through "Change Password" And un-check Allow MySQL
password change.
4 - Click phpMyAdmin from the new cpanel account and you
will be asked for login info
5- Type the login info of the created mysql
user in step1.
You can now login to the required database without old account cPanel info.
There is another soln is to copy /usr/local/cpanel/base/3rdparty/phpMyAdmin to /usr/local/apache/htdocs and login through http://ip/phpMyAdmin
Don't forget to change the auth_type in /usr/local/apache/htdocs/phpMyAdmin/config.inc.php to http or cookie

Related

Problem in connecting the database in Cpanel

I am new in upload the laravel project in c Panel, now I have problem in connect the database , I am import migration in the phpMyAdmin in c panel but in registration I have an error :
Access denied for user 'root#localhost' (using password:NO)
this my phpMyAdmin in c panel:
and its my databse :
and this my env in file manger in c panel :
Confirm the database server address. It is usually localhost but it might have a different address.
Usually when you make a database in CPanel you will also create a user with access permission on the new database. Try using that user.

Getting "Invalid User Name or Password" error after moving Magento 1.9 to new server

I moved Magento website from old to the new server using the following steps:
1. Export database and Search & Replace old domain URL in the editor.
2. Zip all Magento root files and upload on the new server using FTP.
3. Change the database name and user information in the app/etc/local.xml file.
Now website frontend working perfectly fine on the new server and I can also access the admin login page but my login credentials are not working.
Login credentials working fine on the old server but getting "Invalid User Name or Password" error on the new server.
I removed cache files from var/cache folder but still no luck.
Am I missing something?
Thanks
Cannot yet comment. Two things I can think of:
The cookie domain not being set to the appropriate value.
Using a different crypt value in local.xml
You can also try to set a new admin password directly in the database (you should backup the old value). Admin users are stored in admin_user. Magento 1.x saves the password as MD5 hashes, so you should be able to set a new password with md5(PASSWORD).
there was no admin_user in the database with my mail adres connected to. So i changed the mail adress in the database from on of the current admin_users through phpmyadmin. and then pressed "forgot my password" and filled in the new mailadres. Then i got a reset password in my mailbox. and it worked.

What are the safety measures that i need to do after giving a freelance developer access to my magento2 backend credential and FTP credential?

I gave a freelance developer the magento2 backend credential and FTP credential to outsource the development of a custom magento2 module. What are the safety measures that i need to do aside from changing the passwords of magento2 backend and FTP to prevent from being hacked in the future?
Ensure that You are giving an admin panel with new user and password for your freelancer's to work. That you can done from magento2 admin panel itself. If you are not done so, if you were gave admin master user name and password you should need to change the password of your admin by using following query.
UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxYourNewPassword', 256), ':xxxxxxx:1') WHERE username = 'admin';
For more to know about reset password go to the link
And definitely you have to change the FTP Credential too from your server back end.
The most taking care you can prohibit the admin login with IP address.
Hope these things are helpful to you.

Magento. Can't login Admin, after domain move

Just had Magento moved from one domain to another, but can't log in the admin, even though I could earlier in the day.
I have full access to the DB via PHPmyAdmin.
Fixed. Changed the password to MD5 within the database and it seems to let me in.

Laravel 4 auth login fails after ftp upload

I have been working on a website on my local pc.
I made an admin area where users have to login.
I uploaded the project to a shared hosting using ftp and copied the database.
Everything should be exactly the same, but login keeps failing.
Database is connected and the website works, I just cant get to the admin area.
In app/config/session.php the domain setting is null.
All others settings (except for DB connection) are exactly the same.
Is there something I missed here?

Resources