I am trying to install Magento 2 and run it on XAMPP server.
I have installed XAMPP and Apache and I've downloaded Magento 2 and extracted the file in htdocs.
But when I type http://localhost/magento in the browser I get this:
I think I should have the Magento setup page not this page.
And when I click on it the Magento folder I get this error:
Vendor autoload is not found. Please run 'composer install' under application root directory."
So what is the problem here? Can anybody help me?
For starting your magento, you need move files form magento2-2.3.5-pl to MAGENTO directory. (1 level UP)
Then you need install composer (https://getcomposer.org/).
And run terminal from magento directory and use command "composer install". This command will install additional libraries that are needed to run the engine
seems you have not downloaded magento with official website
there are 2 ways to install magento 2
1) downloading from magento website which i have discribed here http://this-adarsh.epizy.com/installation-of-magento-2/
2) via composer steps are given below
stap 1 : install composer
stap 2 : create database for magento installation
step 3 : get magento 2 marketplace key
step 4 : Create a new Composer project using
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition (if community edition)
or
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition ( if enterprise edition)
step 5: after successful creation of project run
bin/magento setup:install \
--base-url=http://localhost/magento2ee \
--db-host=localhost \
--db-name=magento \
--db-user=magento \
--db-password=magento \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin#admin.com \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1
(change your parameter like database name etc.)
you can find more at https://devdocs.magento.com/guides/v2.3/install-gde/composer.html
Let me know if you need anything else
Have a good day!
Related
I have created a new project and I want to integrate a css sheet within my website
to add the css files I have done it as follows
line code image
and first of all I used the following commands
composer require symfony/webpack-encore-bundle
tells me to use one of the following commands
npm install
or
yarn install
but I have the following errors
npm install error 1 image
yarn install error 2 image
You should install node and yarn in your laptop
https://linuxize.com/post/how-to-install-node-js-on-ubuntu-18.04/
I am trying to run behat on my vendor folder. I have installed composer globally, have installed the behat package, but every time I run bin/behat I keep getting this message from composer
You must set up the project dependencies, run the following commands:
curl -s http://getcomposer.org/installer | php
php composer.phar install
I am not sure how to fix this. I see the files are in the vendor folder, and when I type "composer" on the terminal, I see the manual.
If anyone can help me resolve this I would really appreciate it. Thanks!
There are several possible problems leading to this situation:
Make sure that composer is installed in your $PATH. That is, running composer at a command prompt should work, and you shouldn't need to run an explicit path like ~/Downloads/composer.phar
Execute the composer install instruction as the error message suggests. A common error is the message
Mcrypt PHP extension required
in which case you need to install the specified extension. For example, brew install php56-mcrypt on a Mac or sudo apt-get install php5-mcrypt on Ubuntu.
I am trying to just install composer, I am on mac osx. I have done it before using the terminal lines from their site and it worked just fine. I got a clean install on my mac now, and it won't install properly.
I tried to:
cd ~
curl -sS https://getcomposer.org/installer | php
and and:
cd /Applciations/MAMP/htdocs
curl -sS https://getcomposer.org/installer | php
and neither works. (I saw a post saying I should cd to a directory before trying to install it. But no matter what, I keep hitting this error:
Composer could not find a composer.json file in /Applications/MAMP/htdocs
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
when trying to install composer.
I think your question arises from a slight misunderstanding. Composer installs itself when you run the script provided on their Web site. No additional work to install Composer is necessary.
$ php composer.phar install is used to install packages with Composer, which are almost always listed in a JSON file named composer.json. Without this file, Composer doesn't know which packages to install and fails.
See "Declaring Dependencies" in Composer's Getting Started guide for how to generate a composer.json for your project.
In my case, I had a deprecated error being output from PHP. Apparently that causes composer to fail detecting the composer.json file.
I am trying to create a google plus sign in for my webpage and i'm trying to create this php quickstart app to start with.
https://developers.google.com/+/quickstart/php
However I don't know how to execute steps 5 and 6. I'm uploading the files directly to my domain so I don't really understand where do I need to install composer and the dependencies. I tried signing in but I get a 401 error. Is it because I skipped these steps? or something else?
These are the steps:
Install Composer:
Install composer curl -s https://getcomposer.org/installer | php
Execute composer to install the quick-start dependencies:
Execute composer to install the quick-start dependencies: php composer.phar install
I am having my current website running on Magento 1.6. I am looking to upgrade it to 1.9 but don't know how to start. I went through the below articles but was not able to move ahead.
http://www.customerparadigm.com/magento-development/upgrade/how-to-upgrade-magento/
http://www.crucialwebhost.com/kb/installing-magento-via-ssh/
Can anyone please help me from ground level. I need to know it from scratch. I wanted to replace the below code but was not able to locate the file in my database. I am currently using filezilla to access my server file. My database is maintained by a different company called nexcess.
wget http://www.magentocommerce.com/index.php/getmagento/1.9.1.0/magento-1.9.1.0.tar.gz
wget http://www.magentocommerce.com/downloads/assets/1.9.0.0/magento-sample-data-1.9.0.0.tar.gz
tar xvf magento-1.9.1.0.tar.gz
tar xvf magento-sample-data-1.9.0.0.tar.gz
mv magento-sample-data-1.9.0.0/media/* magento/media/
mv magento-sample-data-1.9.0.0/magento_sample_data_for_1.9.0.0.sql magento/data.sql
mv magento/* magento/.htaccess .
mysql -h DBHOST -u DBUSER -pDBPASS DBNAME < data.sql
rm -rf *.sample magento/ magento-sample-data-1.9.0.0/
rm -rf magento-1.9.1.0.tar.gz magento-sample-data-1.9.0.0.tar.gz data.sql
Please help me how to go through with it
Upgrade Roadmap for CE 1.9.0.1 from 1.6
1) take a backup of current database and current 1.6 code.
2) download latest magento from the http://www.magentocommerce.com/download
3) remove all folders and files from your 1.6 code (but you should have backup somewhere) and place all folders and files from the 1.9.
4) now from your 1.6 merge your following folders into the 1.9
- Community app/code/community
- Local app/code/local
- Media
- your theme or package (app/design/frontend/default/<ur theme> or app/design/frontend/<your package>)
- custom folders from Skin (both for adminhtml and frontend).
- copy your custom xml files from app/etc/modules/ to current app/etc/modules/
- any custom admin theme folder from adminhtml/default/yourtheme.
- copy your custom folders from adminhtml/default/default/ (1.6) to adminhtml/default/default/ (1.9).
- custom js files if any from app/js/.
5) now go to app/etc/local.xml.Edit database details their.put your database username and password and database name.
6) now check the site.it done.`enter code here`
P.S. for more information check my answer on http://magento-online-tutorials.blogspot.in/2015/06/magento-upgrade-from-17-to-19.html
Any template you are using will need to be upgraded to use formkeys, otherwise your add to cart, registration, etc. will fail mightily.
Time to fire up a dev or staging server so you don't break your source of income.
Use The Below terminal commands
chmod 550 mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage sync
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
php shell/indexer.php reindexall
rm -rf downloader/.cache/ var/cache/
Easy you can upgrade with magento Connect.
Choose : Mage_All_Latest then click upgrade. It will automatic upgrade to latest version magento.
Have you tried using Magento Connect (System > Magento Connect > Magento Connect Manager if you've never used it before) to do the upgrade? I just did it from 1.6.2 to 1.9 two weeks ago, and it went just fine for me. Very simple, didn't require any SSH.