Install Sample Data in Magento 2 - magento

I have tried a lot for install sample data in Magento 2. I am trying a new method, but still not getting success.
sudo php bin/magento sampledata:deploy
After apply this code i am getting this
./composer.json has been updated
Loading composer repositories with package information
Authentication required (repo.magento.com):
Username:
I dont know which username and password is asking here. I have generate token in my magento account. But what to do next and which user name and password to give there.

You get following message
You are required to authenticate to complete the action. when you try to upgrade or install the sample data in Magento 2 using Composer method using following command.
php <your Magento install dir>/bin/magento sampledata:deploy
This is a new concept in Magento 2 for upgrades. You have to configure your keys in you Magento account under connect tab secure keys section. (As you have to access a repository)
You will find following excerpt from Magento official documentation :
The repo.magento.com repository, where Magento 2 and third-party component Composer packages are stored, requires authentication. To provide secure authentication, we enable you to generate a pair 32-character authentication tokens you can use to access the repository.
Please refer this Enter your authentication keys in the Admin

Related

Fishpig authentication not working on Magento 2

I'm in the process of installing Fishpig to my Magneto 2 installation via the composer. I'm on Magneto v 2.3.3 with Ubuntu 18 and PHP 7.3.14
Im following their installation guideline:
https://fishpig.co.uk/magento/wordpress-integration/root/installation/#composer
My problem is that it require authentication.
I followed the guidelines of Github and created my own personal access token to use as password. But no matter what value I use for the Username I stil get "Invalid credentials"
I have tried my Github username, my email, my magento 2 admin username. What am I missing?
https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
fishpig/magento2-wordpress-integration-root is a premium extension offered by https://fishpig.co.uk/ and is retrieved from the private FishPig repo.
You can generate access details for this at https://fishpig.co.uk/downloads

How can I use aftership tracking facility in my website in codeigniter?

I am trying to add the features of tracking the product that was bought from my site . I want to give the user detail about their product delivery and location of it like done by aftership. How can i implement it in my web site? How can i initiate it?
Please follow following step for aftership tracking integration.
Login to your AfterShip account.
Visit SETTINGS > API
Give your api-key a name and click Generate
integrate PHP sdk for aftership Aftership SDK
You can install SDK by composer require aftership/aftership-php-sdk command.
Please follow git document instruction.

Mastercard Developer

I need to integrate the Master Card API to my application to request payment and send the money to a bank account!
The app is created in Laravel, developer.mastercard has many apis, reading on the page I see that it has many apis and the one that seems to adapt to my needs is moneysend.
Add the dependency as the document says
Composer requires mastercard/moneysend
But I'm confused how to continue!
Thank you very much
Install composer if you already haven't and then on terminal (while in your app folder), just type composer require mastercard/moneysend
This will execute the require command and download/import the dependency in your Laravel application

After installing extension on server it gives 404 error?

Magento 1.9.1.0
I have created an extension that store some information from user. It's working fine on my localhost. When i install this extension on server(192.xxx.xxx.xxx/mysite) its frondend working fine. but listing of information on backend gives 404 error.
This issue is related to the permission of your installed app and admin, login to your Magento admin back-end, take System-> Permissions->Users, it will list out the users in the system. click on the admin, it will open in edit mode and save it, then it will ask current admin password. then check your extension.

cPanel /Host / Access to phpMyAdmin

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

Resources