I am new in html programing and actually I am self-taught.
Recently I found a piece of software that let me pre-render videos to 60 fps.
I thought why not share the results with the world. So i read about how to code in html5. So I created a very simple looking site and everything worked perfectly when I start the html5 file (Videos are playing). So I read that Wamp Server will give me opportunity to share this with the rest of the World.
But everytime I start Wamp and try to view the page neither the videos or tumbnails of the videos load. Everything else like margins placement of the players text works but Wamp somehow blocks every content which is loaded in the html5 file like this:
"D:/Downloads/Pixar Short Film Collection........ ".
I repeat html5 works perfect if I start the index file from any browser but loaded through Wamp it can't load anything.
In IE10 under the videos is showing that is being blocked but in Chrome just blank.
It works when I make the html5 file to load the video from the directory "www", but this is a problem for me because it is going to be a video library site. My "C:" drive will be filled so if someone knows how to fix that it will be awesome.
PS(One week ago I had no such problem but it suddenly appeared. Since then I've been installing and uninstalling Wamp, but no luck)
And another thing, no matter what I did, following every tutorial for installing Wamp configuring my router/modem for 80 port and IP forwarding nothing seems to work even in my local network (typed IP in Chrome) I can't open the web page. Yet everything works, Wamp is green, and from the PC where Wamp is installed I can open the page, but in no other PC.
(I have prefect connection between the two PC's because from the one I can play games on the other without noticeable lag, but Wamp server is like a WALL)
PS
If you are going to instruct me to unblock port 80 in my FireWall I have already done this on both PC's I am running Win8 in both machines!
Thanks in advance!
This is nothing to do with HTML5 it is an Apache configuration issue.
From what you say I assume you have been double clicking on the index file from explorer (filemanager) while you develop and test your site. BAD IDEA.
Now you are using the browser to server the file via Apache ( it does not do this when you doubleclick on filenames in explorer ) you need to tell Apache that it has access to your video library which you placed on the D:\ drive.
To do this you need to configure Apache ( https.conf ) to know about your video library and be allowed to access it. To do this you need an Alias.
Now I have no idea what your setup is but lets assume you have created your site in the wamp folder structure C:\wamp\www\ or C:\wamp\www\sitename
You will need to amend your https.conf file adding something like this to identify the video library and assign access privilages to it.
This can go at the bottom of the httpd.conf file after the Include "c:/wamp/alias/*" line
Alias /videolibrary "D:/Downloads/Pixar Short Film Collection........ "
<Directory "D:/Downloads/Pixar Short Film Collection........ ">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
You can then address the individual videos in the library from your html as
/videolibrary/video1.xxx
using the alias videolibrary setup above and not
"D:/Downloads/Pixar Short Film Collection........ ".
you can access localhost files using wamp via C:/wamp/www/webitefolder/
Related
I have a godaddy website hosted through cPanel, but the html file, named test.html, will not appear when searching "website_name"/test.html. This is the contents of the file:
<!DOCTYPE html><head></head><body>TEST</body></html>
There is no .htaccess, although permissions are set to 644. The server displays the 500 error regardless of whether a valid address was entered. Additionally, the DNS domain and the actual ip address show different things: The DNS shows an index page I can't find in my public_html, whereas the ip shows the godaddy "Future home of something quite cool." message.
Background: I inherited this project as part of a new job. I can set up an apache server with php and mySQL support (in fact I went from using an xampp install to just running everything from command line for practice), but my employer has two godaddy domains: one made using a website building, and one using cPanel for which I am to write my own HTML, CSS, php, js, etc. I have searched extensively across godaddy, google and stack exchange, and have found nothing so far that has worked. The cPanel File Manager has a couple files in it, but nothing will open as a url (I can edit the files though). I checked the godaddy documentation and follow the tutorials and nothing has helped. Any help is appreciated. As an aside, I’m wondering if it would just be easier to completely restart the whole process? The html/css/php files are kind of a hodgepodge and would require rewrites anyway, and bootstrap is used as a source file in every one but never actually implemented. The environment is very relaxed so long as I’m working on something productive.
*I hav made a small demo web app(using html5, and jquery mobile)
*I have installed and set up Xampp
*set passwords for local server
* I am confused as in what to do next, where do i store my .html files and other resources
*I need to test my app on a network
*I want to set up a database using xampp ,(i have no idea how to)
*edit: since its a mobile web app, i want to test it from my mobile, is it possible by hosting it on my pc ? If yes, then how?
If you have the apache server running on xampp, you have to put the files in the /htdocs map. This is usually located in something like C:/xampp/htdocs. Then you go to your localhost in your browsers, so localhost and then /example.html.
This would be for example localhost/example.html, this would redirect to the example.html file in the htdocs folder.
Then if you want to set up an mySQL database you should take a look around at localhost/phpmyadmin
quick question to day. I've done a little digging around on the net and i can't really find a very definitive answer.
Basically, I run my own server on a redundant dual core, 4gb ram 2Tb pc (server1)
And on here, i would like to make an FTP partition. Reason being, i would very much like to be able to transfer files back and forth work, uni and home as i please.
I also run a website from my server which allows me to stream media from my hard drive to any laptop, tablet, desktop, iphone, android.. you name it!
I would LIKE to be able to add a section on my website where by I can log in and access my files as a sort of HTMF5 Front end.
I am aware and know how to create a login with a database which has md5 hash and store cookies to stop un-authorised people accessing my ftp.
Any help or a shove in the right direction would be much appreciated! Thanks in advance :D
Yes it's possible. but that won't be HTML5 ftp server etc that you mentioned.
You can achieve this by installing a web server on your machine like apache and then make directories public - run Apache on some port and you will be able to access the directory. if your server is running on port 8080, URL will be like: domain.com:8080 - You can style directory using this simple script & make this password protected as well using .htaccess .
osFileManager
The other option is to use some php script. Many commercial scripts are available and as well as open source. i recommend you trying osFileManager - it has a lot of features like:
Browse the directory structure
Create files
Upload files
Rename files
Move files
Delete files
Edit files
Change permissions
Change password
Create users
Here is it's installation instructions: http://www.osfilemanager.com/osfilemanager-docs.html
or a paid HTML5 & AJAX based script can be bought for 14$ from here:
http://codecanyon.net/item/file-manager-and-backup-system/5177206
I have a very simple MAMP setup, with my index.php and related files in my htdocs folder. I was rolling along fine last night, being able to access the files by typing in things like localhost/index.php. Now, all of the sudden, I get 404s (file not found on this server) when I try to connect to any of the pages that are in my localhost folder or subdirectories of it.
What's more, when I just type in localhost, it shows me some of the directories but DOES NOT show any of my .php files, even though they show up when I perform a ls in the command line.
My MAMP app shows that I am connected to my Apache/MySQL servers. I can still access the localhost/MAMP homepage. But for some obscene reason, all of the sudden my php files are inaccessible. I have changed nothing inside of them! What's going on?
Edit: Turns out I needed to change the permissions of my php files -- they were set to read and write only for sudo and read only for everyone else. I ran chmod 777 on the applicable files and things were back to normal, but this begs several questions:
Why was it working earlier then changed without me ever modifying the file permissions?
Why should I have to make it writeable for other users to be able to access it on my local host as the admin user?
If I were to deploy this code in the wild (I know MAMP isn't used that often in the wild, but still), what would I do? Wouldn't creating these kinds of permissions result in serious security holes?
EDIT 2: Aaaaaand now it's not working again. Again, no changes made to file preferences, etc., just a few tweaks to the actual php files themselves. I don't have any sharing enabled under my sharing settings in System Preferences... this behavior is really starting to become frustrating.
Open Activity Monitor and make sure all instances of Apache and MySQL are closed. Sometimes MAMP has a tendency to not actually quit those processes and the next time you start it up they're still running and it generally messes with things (how's that for a technical explanation?).
Make sure there isn't any other process that's trying to use localhost for any reason. I came across this problem with POW installed. The POW process had stopped responding and it ended up interfering with MAMP's Apache.
Make sure that MAMP's settings haven't somehow been changes. I've seen MAMP revert custom document roots for seemingly no reason which can cause this.
I'd say even before any of this open your system preferences and make sure your Mac's own built-in Apache is off. You'll be able to see this in the Sharing section (it looks like its been moved in Mavericks however).
Make sure you're not routing traffic through a VPN or SSH using Sidestep. I had this problem after going back to an old project I built with MAMP while working from a coffee shop.
i want to upload my first website (it is a simple html file) and when i write on the browser www.examplesite.com it just don't open the site, it opens a raw directory listing where i have to click the "index.html" (which is my site) to get redirected to the real site. How can i fix this? Thanks :)
Do you control the webserver? If so you need to tell the server (ie, Apache, IIS) to use index.html as the "Directory Index". If not ask your ISP to enable it.
Webservers can be configured to server different things as the "default" webpage if browsing to a folder - normally, your local, friendly, server administrator should be able to tell you what name(s) to use - index.html is common, but you could try "default.htm" if it's hosted on a Windows server.