I want to open a local file in it's default program.
Here's the funny part:
a php page running on my fresh wamp install with thius html:
<A HREF="C:/www/rensa/files/John, Osaka food.avi">
will not open a file.
If I copy/paste all of the source code into a html file on my desktop then the link works.
ie, it has to be apache that blocks it from opening.
What do i need to change in the apache config to allow it to open local files in the default program?
Related
My file watchers are setup and working properly for all my projects with locally downloaded files, but when editing files opened with the 'Browse Remote Hosts' file explorer the file watchers are not being executed.
I have tried all scope settings for the file watcher, but it doesn't seem to be possible to get this working for individual remote files.
remote file watchers are not supported, please follow WEB-9724 for updates
I am creating a provision shell script file and in Laravel I have a public folder and not html like in a default Apache install.
So, I end up deleting html and index.php example file all the time.
Is there any option while installing apache2 on my system to not create html folder and the example file?
I'm not sure if I am using the correct terminology here, but after rendering a file on localhost, on a local machine, I am unable to save the file after editing - the file is locked and noted as being opened by another program. This turns out to be httpd.exe
Is there a directive I can use to force file release or what is occurring here?
Using Apache 2.2
I am trying to use WinSCP to access a remote HTML file, and I do have root permission. However, if I open that HTML, it seems that all the sources and scripts are dysfunctional, e.g no images, buttons etc are loaded, and no js functions work. So how can I open a HTML using WinSCP so that all the sources are loaded and work properly? Thanks a lot.
I assume you "Open" the HTML file from a remote panel of WinSCP.
This makes WinSCP download the file to a temporary local folder and open the file from there.
As all the references to images and java script files are typically relative paths, they won't work from the temporary folder as the referenced files are not there. So it cannot work.
Either you need to download all files (including images and .js) to a local folder and open the HTML there.
Or you actually want to open the file from the server, via HTTP.
For that use the WinSCP extension "Generate HTTP URL".
I got a copy of my project from work, and put it into the www folder of Wamp, in a different PC. However, when loading localhost, I am not able to see the folder in the list.
I attempted to create a few new folders, and they display correctly in localhost. Even if I rename this folder to something else, it still refuses to show up.
This is what my www directory looks like :
And this is what localhost shows me:
Update :
If I copy the files inside mainProject and paste them into either test1 or test2, that folder disappears from localhost as well.
Update 2:
Deleting/Removing the .htaccess file from mainProject makes the folder visible in localhost, but when I try to access it, it gives me file not found error for obvious reasons! Can add snippets from the .htaccess file if needed!
You should not put anything into the \wamp\www folder, this is where the WAMPServer homepage lives in a file called index.php
So it looks from you first sentence that you have overwritten this file with one of your own projects files.
The simple solution is to install WAMPServer onto another PC and restore the \wamp\www folder from there. Alternatively uninstall WAMPServer, delete the \wamp folder and all subfolders, re-install WampServer and then copy your project into a sub folder of the \wamp\www folder. The wamp homepage is not actually required, but it can make life easier.
Also check the wampserver.com/forum/en there is a document there called 'WAMPServer 2.5 The Homepage, Your Projects Menu and the need for Virtual Hosts ' describing how to setup Virtual Hosts which also provides a more buttet proof environment to run a project in.
ADDITIONAL INFO:
Ok now you have undone the damage you did, you now need to learn how to create a Virtual Hosts for each of the projects you want to run/develop.
You can undo the changes you made to Document Root, Directory and Virtual Host in the httpd.conf file, these can all be individually set from within a Virtual host definition.
See this post on the WampServer forum site