appserver-io-lab / mage-servlet
An appserver.io servlet to execute Magento
Requires
- php: >=5.4.0
Requires (Dev)
- appserver-io-psr/http-message: 0.2.*
- appserver-io-psr/servlet: 0.8.*
- appserver-io/build: 0.2.*
- squizlabs/php_codesniffer: dev-master as 2.1.0
This package is auto-updated.
Last update: 2024-10-27 07:53:51 UTC
README
This is minimalistic servlet implementation to run Magento as servlet in the servlet engine.
Issues
In order to bundle our efforts we would like to collect all issues regarding this package in the main project repository's issue tracker.
Please reference the originating repository as the first element of the issue title e.g.:
[appserver-io/<ORIGINATING_REPO>] A issue I am having
Usage
To activate the servlet create a file called WEB-INF/web.xml in your Magento root directory and copy the following content into this file.
<?xml version="1.0" encoding="UTF-8"?> <web-app version="1.0"> <display-name>Mage Servlet</display-name> <description>Mage Servlet</description> <servlet> <description/> <display-name>MageServlet</display-name> <servlet-name>MageServlet</servlet-name> <servlet-class>AppserverIo\Lab\MageServlet\MageServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>MageServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>MageServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app>
After storing the file and restarting the appserver open your browser enter
the URL http://127.0.0.1:9080/magento/index.do
to run Magento using
the servlet instead of the FastCGI or PHP module.