How do you setup and install magento on a subdomain? - magento

I am trying to install magento on a subdomain of a website. http://example.example.com and I cannot seem to get it done. I can easily install it to the root folder publichtml but since I am using a subdomain I am having issues even getting magento to install. Can anyone help me? I tried to install it to a subfolder on the public html folder but its not even coming up!

Here you have to create your subdomain on server.
And install magento inside your subdomain folder.
Installation of magento on a subdomain is same as that of installation on a domain.
You must give the secure and unsecure url as same as your subdomain path.
You can install magento through Cpanel as well.
If you want to migrate server(eg: localhost to liveserver),have to do more steps.

Related

Integrating laravel project into magento

I'm trying to use mage in magento project.So, i tried to install laravel project under magento root when .I open magento projet i have this error "Internal Server Error"?
Any idea is welcomed, Thanks,
or use Magento over the api like this project, https://github.com/michaelkmartin/laravel-magento-integration
I'm not understand why you want to do this, but you can't install laravel project under magento project.
Magento uses ZendFramefork that have same functionality as laravel.
In case if you want use some laravel libraries you can try install these in lib folder under magento root. But you should understand you cant use laravel resources like db connection and etc.

Rewrite Magento Admin URL /index.php/admin -> /admin

I am using Magento 1.7.0.2
My Store admin URL is for example: http://www.mydomain.com/index.php/admin
I want to Rewrite this URL as : http://www.mydomain.com/admin
I have also tried "Admin Rewrites" Magento Extension, But it couldn't Help.
Currently I can't work directly in live website as it may lead to big trouble, So I am working in LOCALHOST now.
How Can I Achieve this ?
Thanks.
I got my solution from this following Blog Link:
Magento Admin URL Rewrite - Set /index.php/admin to /admin (Javascript required)
Admin Rewrites (Magento Extension)
The just linked blog-post is referencing and explaining the usage of a Magento Extension called Admin Rewrites (Magento Extension).
The extension itself is available on Github and can be installed via Magento Composer Installer and/or Modman:
https://github.com/clockworkgeek/Magento-Admin-Rewrites
Alternatively it is also listed in Magento Conect (Magento Conect 2.0 Key).
Another method of doing this does involve modifying a core Magento file (which is a big no, no for upgrading purposes) but works all the same: http://www.code007.ro/magento-how-to-remove-index-php-from-admin-url/

URL rewrites do not work after moving Magento installation to new server

After duplicating our web store onto a new server, copying the database over and changing the base url/safe base url in the db, all we get from the copied installation is the front page. That is, no custom url redirects work (for products, the admin panel, etc.), they all result in a 404 (and not the magento 404, the server default). Do you have any ideas what I could check out? Could there be an issue with one of the libraries included in magento?
I tried reindexing with /shell/indexer.php - which executed successfully but didn't fix the redirects.
Any ideas? Note I cannot access the admin panel via /admin because of this issue.
Edit: solution was .htaccess file missing in root directory
I added the sample htaccess file from the magento installation (I uploaded a copy in case someone finds it useful: http://sdrv.ms/13mw8Ok), and mod_rewrite was activated the next time I visited the site.
Make sure your vhosts file is setup correctly to allow mod_rewrite
Make sure your .htaccess file is setup correctly
How to enable mod_rewrite for Apache 2.2
You can access your admin through /index.php/admin in the meanwhile.

Magento not using appropriate URL - 404 Page not found

I have a magento site running locally using WAMP and it works great. However I need to create a different site so I created a folder for this new site under htdocs.
In that folder I loaded the Magento files.
Created a new database for newsite with all rights in phpmyadmin.
Went to the localhost:8888/newsite and started Magento installation wizard.
In the configuration section of the wizard I entered all the info required: db name, user, password. For URL Base I used the default (http://localhost:8888/newsite). Selected allow charts and Allow apache rewrites. Finished installing magento.
Now magento is running on newsite. I can see the front and back-end of the site.
Here is the problem: When I create a category and/or subcategory, magento does create the menu link but when I click any category, the browser takes me to a 404 not found. Upon analyzing the URL that took me there i see that the URL is : http://localhost:8888/newsite/category.html BUT by adding "index.php" into the URL (http://localhost:8888/newsite/index.php/category.html , the page does work!
So this means magento IS creating the page for the category but the linking is somewhat wrong.
Now, I've been making sure that rewrite is enabled and after all, the other site I mentioned I have is working properly, so I assume rewrite is properly enabled.
So I need help finding:
Why is one site working and the other isn't?
How can I fix this issue?
Thank you!
Sounds like you haven't copied over the .htaccess file (in your Magento root folder). You need this file for the Apache rewrites to work.

api directory not found in magento

I am new to magento and trying it out.. I have successfully installed magento. Created a user to access magento API’s.
But I face problem when I try to establish the connection through SOAP.
$proxy = new SoapClient(’http://127.0.0.1/magento/api/soap/?wsdl’);
I found that "api" directory is not found in magento folder. After installing magento I have enabled the "soap extension" (extension=php_soap.dll) in php.ini
Should I re-install magento now?
My PHP version 5.3.4
Thanks,
Karthik
You may want to read over this tutorial:
http://www.yireo.com/tutorials/magento/magento-programming/629-connecting-to-magento-with-soap-part-1
Also, the directory ... /api/soap/ is not going to exist as it is apart of the rewrite to index.php.

Resources