why the localhost page isn’t working in lampp (Ubuntu) - linux

I am trying to run my cakephp project in LAMP. My LAMP is already running phpmyadmin and it is also working well for another project. When I search http://localhost/mobishop/ then it works only home page. If I go to my panel with http://localhost/mobishop/mobiadmin it does not work and shows this message: "The localhost page isn’t working."
this is my browser screen short:

Related

Yarn - ARR- URLRewrite - Troubles with web, runnin fine with yarn on localhost:3030 but not on mydomain.com (urlredirect aar to localhost:3030)

Im trying to run a code by KPlaySearch on my IIS Windows webserver 2008 R2 or 2016.
I installed Git, Yarn install and yarn start, now, within my webserver, if I connectto localhost:3030 it runs the web ok and search is done ok.
But if I run externally, the domain web (http://xn--ida.gt/google/play/adsfree/) has configured URLrewrite to redirect to localhost:3030. The same website is shown to me (as if I were on localhost:3030 on webserver) so seems ok, but when I hit on the search box of KPlaySearch (NOT the first one in a iframe, so the bottom one) the search does not work. So something is not working.
What can I do ?
RESOLVED: It was nothing to do with ARR
Issue is that original developer uses ROOT relative paths, and as Im using the code under a webdomain/path1/path2.. it wasn't work. Resolved, changing on index.js the paths "/categories" and "/search" for "categories" and "search"
https://git.kaki87.net/KaKi87/KPlaySearch/issues/19#issuecomment-333

Linking in localhost(LAMP)

I am newly(about 1 month) started using LAMP and Bootstrap.
I developed a web-site that worked perfectly until I reinstalled LAMP.
Here my progress:
0. reinstalled LAMP
1. moved my "backup-ed" file to my "localhost" direction
2. I run "chmod 777 *" to each dir and file
3. When I write "localhost" to my browser(firefox) the "index.html" is running
4. When I click the link(say: index)
The browser responds:
http://localhost/undefined
Not Found
The requested URL /undefined was not found on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
Is there any way to fix this, by the way it's working(linking) perfectly when I write file:///var/www/html/index.html.
The reason why I want to use LAMP is add .php files to handle form.
Thanks
What happens when you do hit http://localhost ?
What exactly do you see?? Tried http://localhost/html
What is exactly your document root as per apache conf?
You might need to check that you are placing your files in the root directoy. It should be in the "htdocs" foler.
/opt/lampp/htdocs/
If all else fails, you can try using xampp which is another free alternative to lamp.
I get this a lot, when your browser looks for a file that is not in htaccess you get a forbidden or unfound error. The way to fix this is to make sure the link you click goes to an accessible URL. Try finding if other links in the page or scripts are overwriting your link.
Finally check if you can access it from another browser, or try to demonstrate the security of your machine. From a public library you can request an Ubuntu CD from canonical, and while you're waiting, you can visually inspect your machine for tampering.

Xampp page is accessible by network from everyone with security enabled

I have installed lampp server on Linux Mint on my desktop and I have run the script to secure the lampp server with success.
Everything is fine and I can access my sites from the home network specifically from my laptop using Windows 7 using http://192.168.1.2/site.
However I can also access the lampp pages http://192.168.1.2/xampp from my laptop although I should't. It should ask me for the login details.
Any ideas?
Thanks in advance.
Finally found what the problem was.
In /opt/lampp/etc/extra/httpd-xampp-conf file I had put Require all granted instead of Allow from all.
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Allow from all
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

Xampp not working on Linux

I recently installed Linux and Xampp server. I had been working on it last night and this morning without any problems. This morning I started working the zend framework. Everything was going well until I had to restart my computer.
After restarting, when I tried to access localhost I was getting this message in my browser:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
I have restarted xampp and apache. In the httpd.conf file I have changed the port from 80 to 8080. I'm running php 5.4.6. I have also reinstalled xampp just to be sure.
As far as I can tell, the only alterations I made outside of the zend project directory were the httpd.conf file. I changed "allowOverride None" to "allowOverride AllowAll". I also installed Composer and phpUnit, though I can't imagine how they would have caused the problem.
Any help you can throw my way would be great. I'm very stuck with this.
This is the default content of index.php or index.html file. Try rename these files.

Mono on Linux plus MVC3: Root directory shows file/folder list on web browser

I'm struggling getting my MVC3 site I developed on Windows to correctly run on Linux (Ubuntu) and Apache using Mono 2.10.5.
When I browse to the site root via my web browser, I see my file/folder structure instead of the home page of the site, which appears to me as though routing is not working. Everything works fine on my development environment on Windows.
When in this view, if I click on Global.asax, for instance, I see the standard ASP.NET "yellow screen of death" (YSOD) with a 500 error stating "Could not load type 'System.ComponentModel.DataAnnotations.KeyAttribute' from assembly 'MyWebSite'.".
On the bottom of the YSOD, I see the following: Version information: Mono Runtime Version: 2.10.5 (Debian 2.10.5-1); ASP.NET Version: 4.0.30319.1
I've followed the instructions for configuring Mono for MVC3 here: http://www.integratedwebsystems.com/2011/06/get-mvc3-razor-running-on-mono/
Does anyone have any clues as to why the file/folder structure is being listed when I visit the site root from my browser?
It turns out that mono was running under port 8080, and I couldn't configure it to run on port 80 due to a conflict with another module. I am able to run things fine on port 8080 now.

Resources