LAMP Stack displays "Sencha Docs" web content that I deleted - stack

So I was thinking getting into "sencha Touch" which is a framework that is built to make mobile apps. I decided not to and deleted all of the files that were in the /var/www folder but now whenever I go to localhost in my web browser it still brings up the Sencha Touch Docs. If you don't understand what I'm saying right now go here:
http://www.sencha.com/products/touch/download/
download the file and extract it into you lamp /var/www and you'll see what I'm talking about, the webpage that pops up won't go away even though I deleted it! :( thanks guys, Michael.

Restart your pc. Restart your server. Restart all the things. Then go check where your web root is at.

Related

WampServer Green But Not Working

I found a quirk in WampServer that cost me several hours to figure out. I thought I'd share in case anyone else was having the same difficulty:
I updated my MS Visual C++ package, installed the correct version of Wampserver, put my files in the "www" folder, etc. The server was green and running, but my PHP code would not execute.
One thing was my mistake. I thought I could use the browser to access the file, but I learned that you have to go through LocalHost to open the file.
Another was a weird quirk. Watching videos on the internet, I saw others simply go to LocalHost and click on their project in "My Projects" and their webpages came up. For me, I kept getting "File not found". Scrutinizing the address bars in the videos, I realized that when people in the video clicked, the address would read "localhost/test/test.php" (adding the name of the folder and file to the address) but for me, the address would just read "test.php" (without the localhost, etc. at the beginning) Adding it in manually, the webpage finally came up in PHP.
Hopefully this helps someone else. I don't know if I'm doing something wrong, but at least I can find my files!
(Windows 10 / x64)
I also faced this type of error every time I had to type url to run php file or project. Finally, I found it in:
WWW folder in wamp which is there in C drive
In that index.php file there was a problem:
one simple problem was on line number 335 or 338 maybe it will be just http://
make http:// to http://localhost/
Then it worked fine for me.
I had the same issue. My fix was, I disabled my anti virus and then restarted All my wamp services this

django admin not showing project

Hi I'm sure i am doing something dumb! Fairly new to django and pycharm. I am learning by writing two projects: the tango with django one and another to test ideas and learning (about old girlfriends!).
I am working on the rango project. I've scheme-migrated, syncdb, migrate, debugged and no errors. But when i run server, the admin page shows the other project only. I have not worked on it today.
As far as I can tell I have all the right code including registering the models and admin.autodiscover plus i have cleared the cache.
SO the question is: which projects does it show on the admin page - all? How does it know?
Final odd point the windows circle on the site admin tab is still going round as though its looking for something else.
Many thanks for help. I haven't pasted any code as not sure what would be helpful.
I eventually realized that the admin server was still running. As laptops don't have a ctrl break key (and i couldn't find my Samsung mapping) i killed the server using task manager and all was fine.

Where do I put the files I want to be displayed on my webpage on my webhost?

So I just finished the railstutorial.org twitter clone example and I want to put it online with my web hosting provider bluehost. Right now all I have is a file called sample_app with all of the rails stuff in it. And it works fine when I visit it on localhost:3000.
So I go to my bluehost file manager and there are 9 different folders, like public_html, public_ftp, rails_apps, www, tmp, access_logs, ect. Ive uploaded sample_app into this overall directory and into the public_html directory itself. But when I visit my website it just displays the html in a default.html file in the public_html directory.
What exactly is telling my hosting service to use public_html/default.html of any of the hundereds of different files and folders that are in other places on my server space? How do I find this thing and tell it to instead use sample_app or public_html/sample_app and then process everything in that to display my rails application?
Ive tried using bluehost support and they emailed me and said this would be accomplished by creating a symlink which links ~/rails_apps/NinetyNine/public to ~/public_html. I have no idea how to do this and the guides I find online all tell me to enter a series of commands. I dont know whether to do this in a terminal on my ubuntu system or some command prompt that bluehost provides. If it is at a terminal on my system which directory should I be in? any attempts I have made on my system have resulted in a no such file or directory error. When I asked bluehost to explain this they said that this was outside of the scope of their support and had to do with web development not hosting. It struck me as odd that they were unwilling to explain their own response to my problem but whatever.
If anyone of you could help me or point me in the right direction I would very much appreciate it. Thank you
What is telling my hosting service to use public_html/default.html ?
That would be a setting the web server configuration, probably Apache.
In Apache's case, the public_html directory is usually enabled with the
UserDir directive.
The default.html, is also an Apache configuration, DirectoryIndex.
Answering these because you asked: but typically, the global Apache configuration
is maintained by your provider (though you usually have some means to customize
parts of it).
Create the symlink from public_html to
They like gave you a command like (maybe not exactly)
$ ln -s ~/rails_apps/NinetyNine/public public_html
That is something that is intended to be run on your webhost, from a command prompt,
at the top of your home directory.
Look for docs on bluehost for finding out how to get SSH shell access.
That's where you'll enter the command.
More generally, however, you want to make sure you read the docs on how your
provider wants you to upload applications. Bluehost seems to have very nice
docs here:
https://my.bluehost.com/cgi/help/rails
Why your hosting provided said it was out of scope.
You're a beginner, and that's officially OK. Welcome!
But if you asked them a question like "Do I enter these commands on my computer
or yours", they are definitely going to politely respond that this out of scope;
meaning -- "We can't hand-hold you through this". If you ran a gas station and
someone asked you how to use the pump, you'd tell them. But if they then asked
"OK but do I put the gas in my car or yours?" you'd be reluctant to answer, because
there's some fundamental missing.
So how do I get more pointers, directions on this stuff?
Lots of approaches. By the far the best is to do as much stuff as you can on
your own computer. In your case, you could easily set up your own Apache
(Macs and Linux frequently ship with it - readily installable on Windows), and
that would clear up a lot of the conceptual issues.
Good luck!

Utidev webserver's windows service not running

im trying to host my website developed in ASP.net4.0 in Ultidev's casini webserver 2.0.
bt when i try to host the same or click on http::/localhost:port, im getting following error.
Utidev webserver's windows service not running.
I dont hav clue on the windows service it's expecting.
Do i need to install any other dependencies ?
Please look at the error pic.
Please help me in this regard.
Thanks.
The host process for that application, DefaultSharedHostProcess, is having trouble starting. Look in the Windows Event Log, as well as "UWS.Installer.log.txt", "RegRepairTrace.txt" and "AppRegTrace.txt" files in the "%ProgramFiles%\UltiDev\Web Server" folder.
As there are a variety of circumstances which can lead to this error, you will need to edit your question and add in the relevant error details you discover from the logs, or go start a thread on UltiDev's support forum. For instance, I encountered this error because of a permissions issue to machine.config in a .NET 4 folder.
Ran into this today, and found if I recycle the host process, I was up and running.
In the UltiDev Web Server Explorer window on the left side, click on the Default Shared Host Process.
On the right side, you'll see a button named "Recycle Host Process". Click it, and answer Yes.
After this, the Windows Service started up, and I was able to communicate with my web app.

Umbraco losing admin nodes

After a publish up to a remote server the Umbraco admin section on the remote server is not showing any nodes. The pages and images and everything serve correctly, but in the Umbraco admin section there is nothing below the top level nodes in each section and I can't right click and choose 'republish entire site'.
I've connected my localhost version to the same database and there I can see the node structures (but republishing made no difference) and I could see the node structures on the remote server before the latest push which did not include any .config changes.
Does anyone have a script that will re-create the node structure?
EDIT
I've seen a number of links on the Umbraco site like Unable to publish content into umbraco.config but none of it helped - including some permissions advice like #Niks.
I do have a workaround which is to stop and restart the server - which re-populated the nodes without any side-effects - but obviously this is inappropriate in a live environment.
I've seen this before manifesting as a caching problem. Firstly you should make Umbraco refresh its node cache. To do this hit the URL -
http://example.com/umbraco/dialogs/republish.aspx?xml=true
replacing example.com with your own host. Next, recycle the App Pool on the Umbraco server. Finally, clear your browsers local cache and restart it.
You may also be able to avoid this happening in the first place by completely stopping the Umbraco site you are deploying in IIS, copying up your files and then restarting.
Sounds like you may have permission issues. If you're on IIS6/7 make sure to add NETWORK SERVICE read/write/modify on the necessary folders:
/App_Data
/config
/css
/scripts
/masterpages
/data
/umbraco
/umbraco_client
If on a lower version of IIS make sure to add ASP.NET with the same permissions. Hope this helps.

Resources