Which type of environment needed for installation of Magento2?
- You must have PHP version 7.0.13 to 7.0.x or 7.1.x. , MySQL5.6, 5.7 , Apache 2.2. or 2.4.
- After installing this above software some follwing settings must be done in php.ini files.
- With PHP7, Magento 2 require these PHP extensions on server: bc-math, curl, gd, ImageMagick 6.3.7 (or later) or both, intel, PDO/MySQL , SimpleXML, soap, xml , xsl, openssl etc so magento check all PHP extensions on server. If any one of them is not got at installation process then PHP Extension error generate.
- To solve this error open PHP.ini file and remove semicolon form following extensions.
; extension=php_xsl.dll
; extension=php_intl.dll
I got the error after installation magento2 - Something went wrong while saving this configuration: Area is already set. How to solve this error?
Replace following code in the vendor\magento\module-email\Model\AbstractTemplate.php
public function setForcedArea($templateId) {
if($this->area) {
throw new \LogicException(__('Area is already set'));
}
$this->area = $this->emailConfig->getTemplateArea($templateId);
return $this;
}
Above code must be replaced by follwing code :
public function setForcedArea($templateId) {
if(!isset($this->area)) {
$this->area = $this->emailConfig->getTemplateArea($templateId);
}
return $this;
}
WHAT IS THE DIFFERENCE BETWEEN STATIC AND DYNAMIC WEBSITE?
Static Web pages display the exact same information whenever anyone visits it. Static website is the basic type of website that is easy to create. You don't need the knowledge of web programming and database design to create a static website. Its web pages are coded in HTML. The codes are fixed for each page so the information contained in the page does not change and it looks like a printed page.
Dynamic Web pages are capable of producing different content for different visitors from the same source code file. The website can display different content based on what operating system or browser the visitor is using, whether she is using a PC or a mobile device, or even the source that referred the visitor. A dynamic Web page is not necessarily better than a static Web page. The two simply serve different purposes.
HOW LONG DOES IT TAKE TO MAKE A NEW WEBSITE?
Any web projects will take on minimum of 4 weeks to maximum of 16 weeks, from the time that the project kicks off to the time that the website launches. However, the time is always dependent on several factors, like complexity of the project, number of people that are involved, information or content of the website provided etc. Sometimes bigger projects can take up to 6 months or longer. So the best thing is to have a well organized task list to finish the task in a timeline that is reasonable.
Is there any command to run magento2 without any warning or reduce loading time?
For smooth running of your admin panel of magento2 please apply following commands
Open your shell script from xampp control panel and then by using cd command go to the folder of your project. After go in your project folder run following commands :
- php bin/magento setup:static-content:deploy
- php bin/magento indexer:reindex
- php bin/magento cache:flush
How to solve Database Import / Export error in phpmyadmin for magento2?
Magento2 Database is very large in size so first you don't export directly using phpmyadmin export option.
Instead You use following command for exporting database..so Follow the following steps..
- Open shell prompt from xampp control panel
- Goto the xampp/mysql/bin directory by cd command.
- Write this command for export database.
mysqldump -h hostname -u username -ppassword databasename > path (for downloading database)
e.g : mysqldump -h 127.0.0.1 -u root -p markone > C:\xampp\htdocs\bhagyashri\markone.sql
Note : -p and password contain no space. - Write this command for importing database.
mysql -h hostname -u username -p databasename < path (where your database is downloaded)
e.g : mysql -h 127.0.0.1 -u root -p markone < C:\xampp\htdocs\bhagyashri\markone.sql
Note : Here in this example my hostname is localhost so i provide localhost ip address, root is the username and markone is my database name and C:\xampp\htdocs\bhagyashri\markone.sql this is the path where I want to download or export my database.
About mysqldump command : It dumps one or more MySQL database for backup or transfer to another SQL server. The mysqldump command can also generate output in CSV, other delimited text, or XML format. The best feature aboutmysqldump is that it is easy to use. The main problem with using mysqldump occurs when you need to restore a database.