How to find the Entry Point in the Magento project version 1.9.3.1 - entry-point

I am unable to find the entry point in the project where my index.php is located in the project, please help me on this.

Index.php file always exists in root of your Magento.

In magento 1.9.3.1 or any version of magento index.php is found in your root folder without index.php magento not run you can find publichtml or var/www/projectname/ if your in localhost xampp htdocs/project name or wamp www/your project name.

Related

Zend Project not working in a real server after upload

I just completed the job site using zend framework. This is my first project using Zend framework. The site is almost finished in localhost and i tried to upload it in real server for testing. I put my files under public_html folder of real server. I noticed there is no any file "index.php" inside root folder of project(ie public_html). It actually lies inside public folder inside public_html. I am bewildered. I tried to make index.php inside root folder and put "require_once('public/index.php'), but didn't work. What should i do now?
Thanks.
Assuming a typical project directory structure, your public folder should go inside your server's public_html folder, and all other Zend project folders should go one level up, like this:
/application
// application files
/library
// library and vendor files
/public (aka public_html, htdocs etc)
index.php
.htaccess
/css
/images
/js
If you can, configure a vhost on your server, and make it point to the "public" folder of your application.
You should also enable the rewrite module of apache and ensure that your vhost accepts .htaccess files (directive AllowOverride All in your vhost).
The way I do it, is to have the index.php and .htacess 1 level up from the public directory and alter the paths defined in index.php accordingly.
e.g
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));

Installing Zend Framework with XAMPP

I've Xampp installed on my computer, and I want to install Zend Framework. I noticed there is already a folder called Zend inside the xampp/php/PEAR/Zend
Does it mean the Zend framework is already installed? On phpinfo, the include_path is .;C:\xampp\php\PEAR. Do I need to configure the path? What should be the new path?
Finally how can I know if the Zend framework is installed successfully and ready to use.
Thanks for any help.
Zend framework is intensively developed and i doubt that xampp package include up to date version, so I recommend you to download latest full version from http://framework.zend.com/download/latest and extract the archive somewhere else.
Zend Framework requires no special installation steps. Simply download the framework,
extract it to the folder you would like to keep it in, and add the library directory
to your PHP include_path. To use components in the extras library, add the extras/library
directory to your PHP include_path, as well.
If you would like to use Zend_Tool, simply add bin/zf.bat (for Windows) or
bin/zf.sh (for anything else) to your system executable path.
The important files of Zend framework are located in ZendFramework-1.x.x\library\Zend in the archive and the ZendX (extras) are in ZendFramework-1.x.x\extras\ZendX. You might also need the ZendFramework-1.x.x\bin folder where is the ZendFramework console tool (zf)
I prefer extracting the "ZendFramework-1.x.x\library\Zend" into a folder lib\Zend and add it to the include path in php.ini
Installing zend framework on Windows
Download zend framework.
Include the zend lib path on your php.ini file (If you have zend lib within c:wampp/www/zend/library/ then put the path in php.ini include_path="c:/wampp/www/zend/library").
In the downloaded folder there is bin folder and there is file zf.bat so open that file and put the pull path of php.exe.
Go to command prompt and go to directory where you need your project.
Run this command:
C:\\wampp\www\zend\bin\zf.bat create project project_name

How to get a welcome page from Tomcat root, rather than webapp context?

In Tomcat 7, I want my welcome page (index.html) to load when I access localhost:8080/. Right now, I have to go to the webapp context, localhost:8080/MyWebApp.
Is there a folder in Tomcat to place pages that are not part of a webapp? I'm confused how this works...
EDIT: I notice that the web.xml for the Server in Eclipse has a servlet called "default" which is mapped to "/"... I wonder if I have to change something here?
EDIT2: I found this: http://wiki.apache.org/tomcat/HowTo#How_do_I_override_the_default_home_page_loaded_by_Tomcat.3F
But, I already have an index.html in my ROOT folder, and still getting 404 from the root URL. If I start the server without using Eclipse, it works. What's going on here? What exactly does Eclipse do when you start the server through it? Obviously it's not reproducing the ROOT folder of my installation.
You are missing ROOT folder from 'webapps' - maybe it was deleted during installation of the other app. ROOT folder has config files for 'Welcome' page for tomcat. You can copy it from the other tar file into ../webapps folder and you'll be good.
In Apache Tomcat, all websites are deployed as individual web applications. You can verify this with the Tomcat configuration manager, where you are able to start/stop/reload certain web applications.
I believe you would like to place the welcome page in path tomcat/webapps/index.html - all files located here not in a webapp of subfolders should be viewable as the root of the url.
It's only anything above webapps in tomcat that's protected from web browsing. maybe you can try putting the file in index.html, and setup a link preceded by ../ to indicate "go a directory level above in the tree" to fetch this required file, or try listing the directory of the url root to see in which context you're in actually.
Hope this helps clarify something at least.
Solved!
http://wiki.eclipse.org/WTP_Tomcat_FAQ#If_I_start_my_Tomcat_server_and_try_to_display_Tomcat.27s_default_page.2C_why_do_I_see_a_directory_listing_or_404_error_page.3F

jboss server root folder

how can i find which folder is the jboss root dir?
where can i find the root folder variable mentioned in a war file
IF you are looking for root folder that is right option. It would be
/opt/jboss/jboss-as
But if you want to access anything (xml, file) at root directory say using 'http://ip:port/abc.xml' url you want to open abc.xml or any file, put that file in
/opt/jboss/jboss-as/server/default/deploy/jboss-web.deployer/ROOT.war
The root folder of a JBoss AS installation is generally considered to be the ../jboss-as folder...
For example if your deploy folder would be
/opt/jboss/jboss-as/server/default/deploy
the root folder would be
/opt/jboss/jboss-as
I don't know what you mean by the variable mentioned in a .war file.
Somehow the maven-war-plugin , can solve this issue very easily. If web.xml context-root didn't work the plugin could move the application to the root of deployments on tomcat. Everything that isn't captured by a more specialized service is delegated to the application from web root /* to the web-app, :)
source : https://developers.openshift.com/servers/jbossas/deployment-options.html

Zend framework on mac OSX: can I change the root Directory?

Zend framework on mac OSX: can I change the root Directory ?
how ?
I would like to set a directory in my home folder.
Otherwise I can only access to it by terminal
thanks
Which root directory are you talking about? The location of the ZF libraries, or your application's root?
Either way, you can put things wherever you'd like.
For the ZF library itself, just stick it anywhere, and make sure ZendFramework-x.y.z/library is in PHP's include_path
For your application, it's just a matter of setting the DocumentRoot in your apache configuration to the public/ directory in your project.