api directory not found in magento - 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.

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.

How do you setup and install magento on a subdomain?

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.

Magento: can diffrent magento websites installations use same Database?

I intially had an instance of magento installed that was using a databse, then i intalled another intance of Magento Using the same database, but the problem that occured is that now my old website is getting redirected to new website.
I had configured my old Website's url from localhost to somethingElse.
So, is there a method such that both the websites use the same Database. If so then how to configure it to do so?
You don't need to install another Magento in order to create a new Website, Magento already supports multiple websites on the same instance.
Here is a detailed explanation on Magento websites,stores and store views: http://www.magentocommerce.com/knowledge-base/entry/overview-how-multiple-websites-stores-work/

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/

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.

Resources