Where is the entry point in the file system to open a MEAN stack site? - mean-stack

For a LAMP website hosted on your localhost server, you would simply open index.html or index.php of the website in a browser to run the site.
Where is the entry point to open a sample website using the MEAN stack?
I've loaded a copy of this repository https://github.com/linnovate/mean into a www/var/ directory, to see if I could get a MEAN site working. In attempting to access
/mean-master/packages/custom/meanStarter/public/views/system/index.html.
It fails to open "403 Forbidden".
I am using Ubuntu 16-LTS with Eclipse, I believe I have the appropriate dependencies but I still might be approaching this all wrong.
My goal is to get a sample MEAN stack site running on my localhost and explore from there.

You have to run the node server command which will start the node web app contained in the server.js file. Basically server.js is the starting point.
In the readme itself it explains how to start it : https://github.com/linnovate/mean#invoke-node-with-a-task-manager

Related

How do I stop local kentico project from taking up port localhost:8080

I installed Kentico and have been going through the tutorial. But I needed to work on another project and when trying to do so I was unable to as the Kentico project seems to be running on the localhost:8080 port.
I would like to restore localhost:8080 back to the way it was.
This is the error that I get when opening localhost:8080
localhost error screenshot
I have tried to enable directory browsing and trying to stop the process running on localhost:8080 but they did not work.
Any help would be much appreciated if anyone has any suggestions or has had to deal with something like this before.
In IIS you need to stop the site you were working on and start the other site you want to work on.
As per the error snapshot (HTTP Error 403.14- Forbidden), it looks like its a access issue for your respective website virtual directory.
To overcome this problem you need to provide IIS user permission and the current system user permission to the kentico website folder and also make sure the path of your project in IIS pointing to Kentico Website solution until root folder where you have a web.config file.
How to give folder permission you can check on this reference link
IIS7 folder permissions for web application
Thanks and Regards
Nikhila Pocha
You can change the port of the websites in the applicationhost.config file for IIS Express.
Mine is located under '%userprofile%/Documents/IISExpress/Config'.
From there you can search for the 'sites' node. Look for your website and change the port number in the following line:
<binding protocol="http" bindingInformation=":8080:localhost" />

Unable to render HTML. Unable to access URL. COM error 800c0019 in FACILITY_INTERNET. The drive cannot locate a specific area or track on the disk

I am getting the above error message in production when trying to call the AddImageUrl section of ABCPdf (version 10). This started occurring yesterday just after midday my hosting provider assures me nothing has changed I am the only developer on the project as was working on something else entirely.
The URL provided in the stack trace can be accessed in IE on the web server without any error messages (including SSL). There is also a UAT environment on the same web server in which the PDF works, the UAT environment is identical in code and application pool settings, the only difference is the web address and database.
The HTML the PDF is calling can take a little time to come up on first load. Given that data is different I have increased the timeout from 15 seconds to 2 minutes.
I have arranged a reboot to see if that fixes it, but I have run out of things to check.
Edit: I did think of one further check, could I add the image of a page not on the site (https://www.google.co.uk/), doing this resulted in the same error so it appears not to be a blocking issue on the worker process.
—
Edit2: switched to the gecko engine and it is now working.
You can sometimes get this error if the web browser within Abcpdf cant access the URL.
On the webserver add the URLs directly to the local machine hosts file
C:\Windows\System32\drivers\etc\hosts
The entry should look something like this
127.0.0.1 example.com

Installing ColdFusion 11 on Windows Server 2012 / IIS 8.0

I've done this many times in the past, but this is new, and I think CF11 is the problem. Not sure.
Fresh Windows Server 2012.. installed CF11. Selected "Configure All IIS Websites" during install. There's only two sites configured in IIS -- Default, and one other, which has its own name (test.mydomain.com) configured in the hosts file and in DNS. In its webroot is a single index.cfm file, and a subdirectory thereof, is an actual ColdFusion web app.
When I browse to the webroot, I get a standard Microsoft IIS page, rather than the index.cfm file. If I browse to the subdirectory, I get 404.
I've set index.cfm as the default document.
The path specified to the webroot is correct.
If I run the wsproxyconfig.exe file, it shows nothing is configured. I click Add, select IIS. In the drop-down where you configure a specific site, it says None and is not selectable. If I try to add, I get the error, "Unable to configure WebSocket Proxy Enable the required WebSocket Protocol option in IIS." I've looked all over IIS and can't find where this setting might be.
What's interesting is I can get the cfadmin page to load and function just fine (127.0.0.1/cfide/administrator)... there are no port numbers in that URL so it must be passing through IIS. So I'm not really sure what the problem is. Is it the connector? Is it something else? I'm stumped.

What is the mechanism behind rendering web pages locally?

When I visit a web site, my browser sends a request to a an HTTP server, such as Apache or IIS. The HTTP server then forwards the request to the appropriate web server, .NET, PHP, Ruby on Rails, etc. This then returns a response to my browser and the page is rendered.
How does this work on a local web page? Say I create a simply hello world in PHP (hello.php) on my windows desktop. I do not have IIS installed, so what is handling the "request"? That is, what is telling my request to be interpreted by php and how is this getting back to my browser? I have tried several google searches, but I suspect my search terms may be too vague.
The question is a bit ambiguous. A PHP file on a disk simply won't be rendered unless it is present within the Document Root configured for the web server.
For example if your file is present within C:\PHP_Scripts, then C:\PHP_Scripts must be configured as a document root for your web server.
For more information on how to setup document roots within Apache HTTP server refer to the below link :
Apache Web server Document Root creation
Having said this, in your case assuming the file (say test.php) is now present under C:\PHP_Scripts and this has been configured to be part of the Document Root of the web server; the following happens when you request http://localhost/test.php:
The web server refers to the document root and searches for the file named test.php.
Since this is a php file, the PHP interpretor kicks in and processes the script.
The results of the processing are rendered back to the user. In some cases, the processing may be a task like submitting the data to a backend and redirecting the user to another page.
Note that Apache HTTPD server must be configured to work with PHP for all the above to be true.
If you can run PHP on local machine, your machine is probably installed with web server with PHP interpreter (either Apache with PHP, XAMPP, MAMP or similar software installed).

Symfony2 Assetic files and Missing routes in Windows

I have a Linux machine, and a Windows 7 machine, each of which is using the exact same code (they are both using the same git repo). I am running the Symfony2 code on both servers in the dev environment.
The website loads and runs just great on the Linux server. On the Windows 7 server (my local laptop) the server seems to be missing all the routes it needs to render the site correctly. For example:
None of the CSS and JS files are loading on the site. They are throwing a 404 page not found error.
If I attempt to navigate to any other pages from the home or landing page, a 404 error is always thrown: The requested URL was not found on the server.
I've cleared the cache, and run through the app/check.php on the windows box, but to no avail. I'm wondering if the Windows server setup needs to be modified in some way so the routing works as expected? I'm thinking that the problem is the routing on the Windows server, as the requested URLs can't ever be found.
Any ideas on where I can go to find a solution or any tests I can perform to track down the issue?
Thanks,
Derrick
In the httpd.conf file, you must be sure that:
LoadModule rewrite_module modules/mod_rewrite.so
is active. In my windows distribution of apache 2.2, it was commented out. I'll suggest to Symfony2 that they add this module to their check.php file for future developers. I'm guessing they just assume that it will always be enabled in the apache distributions.

Resources