apache2 .htm extension - apache2

Since I've installed LAMP stack on ubuntu server with apache2, I've been having a weird issue. Whenever I create a file called filename.html, it renders and displays on browser fine. But whenever I create file with extension .htm, it will prompt the browser (firefox) to save the file.
I've already looked into /etc/mime.types and /etc/apache2/mod-enabled/mime.load

And what's in these files for .htm extension?
Can you check what mime-type returned by the Apache? (via browser plugins/sniffer)
After that you will see the issue...

Related

Why is my VS Code breakpoint (php) only working in one folder and not in others?

I am using VS Code to debug a php file. I have installed the PHP Debug extension and configured PHP to debug using XDebug. Server is Apache (using Xampp).
The file I want to debug is in .../htdocs/Nuurd and breakpoints are hit. But when I open another folder and try to debug a file in (for instance) .../htdocs/Test it cannot be debugged, i.e. the program is finished without stopping at any breakpoint (it runs through).
Why does it depend on the folder and what settings are required to make xdebug work on any folder?
The folder .vscode with launch.json was missing.
I copied it from another folder and that solved the problem (hopefully forever).

Uploading Files using AngularJS

I used the AngularJS example provided in http://jsfiddle.net/JeJenny/ZG9re/ to upload a file from the local machine.
It gives no errors and the google chrome console response is shown as follows,
file is {"webkitRelativePath":"","lastModifiedDate":"2008-09-25T10:47:10.000Z","name":"MOVIES.txt","type":"text/plain","size":266}
XHR finished loading: POST "http://localhost:8087/alsystem/profilePics".
successful
But when the profilePics folder is checked, the file I uploaded is not available.
What might be the reason for the file to be not available, though the code returns successful.
Have you checked your rights on your WebServer?
Had the problem on my PHP-Script aswell, after I set the full rights (on test environment) with: chmod -R 777 on the folder to store, it worked.

How to setup the proxy info in yypkg for sherpa.exe when installing Win-builds Project

I am trying to install the latest GCC compiler on windows 7 by using "Win-builds Project". Since the company I am working for has proxy. When I run the command win-install.bat. I got an error:
http://win-builds.org/1.3.0/packages/windows_64/package_list.el:
2014-02-21 11:39:44 ERROR 407: Proxy Authentication Required.
In the batch file, I found code:
yypkg -init
yypkg -config -setpreds host=%_YY_ARCH%-w64-mingw32
yypkg -config -setpreds target=%_YY_ARCH%-w64-mingw32
sherpa -set-mirror http://win-builds.org/1.3.0/packages/windows_%_YY_BITS%
I think the yypkg.exe does the initialization work and configs sherpa and let sherpa.exe to download and install files.
My question is how can config yypkg my username and password? I did google search, but I cannot find any info about yypkg nor how to config sherpa.
[enter code here][1]Proxy set up can be done via command line
How can I set a proxy server for gem?
set http_proxy=http://your_proxy:your_port
set http_proxy=http://username:password#your_proxy:your_port
set https_proxy=https://your_proxy:your_port
set https_proxy=https://username:password#your_proxy:your_port
These command snippets need to be entered on 'cmd.exe', and before running the wget, to download files manually via portable wget as described on page:
http://win-builds.org/doku.php/download_and_installation_from_windows
few IMPORTANT Pointers, after the packages have been downloaded manually, and running the 'yypkg-1.5.0.exe'
At first the Application UI is unresponsive, DO NOT CLOSE IT
After some time, change mirror dialog appears where you would need to type/paste the Local folders location(this is the folder where files were downloaded manually)
Local folder path needs to be similar to the following where 'package_list.el.tar.xz' file resides.
file:///C:/usr/MinGW/1.5.0/packages/windows_64
after that all works fine

Passbook pkpass files are not detected

I have book my itinerary and the travel website delivered the ticket along with the pkpassfiles. Unfortunately neither Safari nor Chrome detects it and show the option to open in passbook application. It shows options like FileApp/CHM reader etc. How to solve this?
I use default Gmail iOS App/Safari for opening opening mails (It's a gmail server)
As Petesh menions, your server is not serving the file a mime type of application/vnd.apple.pkpass.
If using Apache, try adding the following to your .htaccess file or server .conf
AddType application/vnd.apple.pkpass .pkpass
If you are generating the .pkpass files manually, you can set the content header when serving the file. E.g. for PHP you can use:
header('Content-Type: application/vnd.apple.pkpass');

Problem installing Google App Engine from MSI

I downloaded Python and installed it, and when I go download GoogleAppEngine_1.2.0.msi and try to install it and I get this error:
This installation package could not be
opened. Contact the application
vendor to verify that this is a valid
Windows Installer package.
Am I forgetting something? I am assuming this is pretty simple.
I had the same error. The file downloaded by IE was about 190k and would not run. The file ought to be 2.7M. Firefox downloads correctly. Also IE will download correctly if you select RUN instead of SAVE. That is my experience and I now have the SDK installed. I hope this helps you.
Download it again and try to install the newly downloaded file. Maybe the file was damaged during download or not completely downloaded which can both happen sometimes.
If this does not help and the same error message appears you could control the checksum which should be
5ea87b8ed3011a5f55a9135c96abe96b6a6fd48b
for this file.
When you are sure that the downloaded file is ok, check if the version of your operating system is supported.
Maybe installing the Windows installer could help?
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=5a58b56f-60b6-4412-95b9-54d056d6f9f4
If not, try out on another machine or inside a virtual machine.

Resources