Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

1
vote
1answer
17 views

How do I use Amazon s3 to host audio files linked from my website?

I wanna make a website to allow users to download audio files . Where can i store those audio file. I read about amazon s3 . What is it and how to use it to store my files ? How to serve those files ...
2
votes
0answers
11 views

Change default index.html page of a subdomain in directadmin

When I create a new subdomain in direct admin panel it gets a default placeholder page saying something between the lines "welcome, the page is under construction" or whatever. I've looked online ...
1
vote
1answer
29 views

what is the proper file permissions needed for certificate files

I am curious about what should be the file permission of the ssl certificate files. Because you really don't want anyone physically copying the server key, so why does the hosts make it readable to ...
1
vote
1answer
187 views

Microsoft Edge browser not correctly filtering PDF files in upload file dialog with Contact Form 7

I am using a Contact Form 7 which allows you to attach a PDF file to the message: https://www.publictalksoftware.co.uk/contact-form/ Chrome correctly shows a filter: Firefox correctly shows a ...
1
vote
1answer
107 views

Do robots.txt and sitemap.xml need to be physical files? [closed]

I have both setup in my routes: Route::get('/robots.txt', function() { // robots.txt contents here }); Route::get('/sitemap.xml', function() { // sitemap.xml contents here }); I can access ...
3
votes
2answers
38 views

How can I name an image so that a) it's still unique b) descriptive

It's a given that a better name for a picture is "cat_eating_mouse.jpg" than "Aou7aIw=2.jpg". On my website I'm going to have thousands of pictures. It's not a big of a problem to name them manually, ...
0
votes
1answer
583 views

SEO impact of hosting static HTML on Amazon S3 vs. webserver

Scenario: Updating a static HTML file hosted on AWS S3 bucket. I read that a file (including static HTML) cannot be updated on AWS S3 bucket. Existing file needs to be deleted, new file with same ...
1
vote
0answers
25 views

Moving files between directories automatically [closed]

I know what I am trying to achieve can be done via cron job, but I know nothing about coding this at all. I have a directory on a website that it updated with new files from an external source daily. ...
0
votes
1answer
18 views

Is it possible to host just a filesystem instead of an HTML site? [closed]

I know how to program in basic java. Before learning java, I studied HTML. Quite frankly, I forgot it, and it seems to me that it is going to be a hassle updating my HTML code every time I write an ...
0
votes
1answer
555 views

What image compressor Google Pagespeed Insights uses? [duplicate]

It's very inefficient to compress all my site's images in Google's preferred compresion by running webpage after webpage in Google GPI, downloading all images and upload one by one to my CMS image ...
0
votes
1answer
260 views

Can files such as PDF and JPEG be stored in MySQL BLOBs to keep them off the webserver?

Situation: Users upload documents through web form and the documents are stored in MySQL (InnoDB) as MEDIUMBLOB. The rationality of this versus to store the original document on the webserver is the ...
0
votes
1answer
50 views

Directory Structure - Sub Directories or Basic Files

So I basically have my site folder structure like this. Images [folder] CSS [folder] JS [folder] Products [folder] --index.php Services [folder] --index.php Testimonials [folder] --...
5
votes
2answers
3k views

What is a recommended maximum number of files in a directory on your webserver?

I have directory that contains 400,000+ files. Potentially the directory could easily contain ~30,000,000 files. Is that a good idea or should I rather chop it up in smaller directories like this: /...
0
votes
1answer
56 views

Separate server for images?

Should I be using a separate server for hosting images that are created on a website? For example, my application creates images and currently stores them on the same server. I have around 200k+ ...
3
votes
0answers
56 views

What is the recommended method to analyse the structure of a HTML page/site? [closed]

Recently, I have had to analyse and upgrade a web application. I need to know the relationships and functions of each file including CSS and JS inside each page, as opposed to the whole website. ...
5
votes
3answers
318 views

File limit on shared hosting - does the issue still apply?

I've heard that shared hosting often imposes a limit on files per directory, though obviously this would be different per host. Generally speaking, is number of files still an issue on modern hosts? ...
1
vote
2answers
302 views

best apache log file permissions on cpanel server

In an effort to protect my site from bad bots including ridiculous hackers that can login to the server, I want to secure access_log and error_log as much as possible without breaking apache or cpanel....
3
votes
1answer
140 views

what does license.txt belong to exactly?

Every now and then my server logs report that an IP is trying to look for license.txt on two domains. the IP belongs to amazonaws according to a whois lookup. Is this file supposed to be a new legal ...
0
votes
1answer
24 views

PDF file sizes when attached to a webpage article and hosted on own server

When you host a PDF on your own website and server, and then link to that PDF in an article, does the size of the PDF file matter? Or is the size only a factor when clicked, because of the time it ...
2
votes
1answer
549 views

how can i display the MD5 or SHA1 of files in a web server directory?

When you don't have an index.html, most web servers will show a list of files in the directory. Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with ...
0
votes
0answers
59 views

How to offer high quality image downloads without making google upset

My website consists of thousands of photos online that people can see. The photographer creates the photos using the highest quality settings possible and then uploads them. Then my php scripts use ...
2
votes
2answers
777 views

When and how do I remove temporary files on server left from abandoned forms?

I have a form on my site to submit posts, it features multiple file upload tool (Mini Ajax File Upload Form) which submits files to server as they are added (before actual post submission) and server ...
1
vote
1answer
45 views

How to stop parallel downloads

In my server logs I noticed random sets of IP's originating from china that are downloading the same file of about 16MB every couple of hours, and every time the computer downloads it, it starts the ...
1
vote
1answer
69 views

Configure files to come from a central location unless that file has been customized for a specific site

I have an user A on a server, this users has a working set of scripts (html+js+css+everything else). I also have users B-[as much as I want]. I want those to use the exact same files, but if they have ...
1
vote
2answers
2k views

How to setup server, file permissions, and python script so that python script can create files and directories

I have a simple form that submits a select box. When the submit button is pressed I run a python script that needs to create a new directory and add files from an repository. Currently I cannot get ...
0
votes
1answer
538 views

Grant Permission to File Folder

I am making a website, and I want the users to be able to access a file folder. I have a link to a folder. When I do this locally, all works fine. But when I upload it to my site, I get: Forbidden ...
1
vote
1answer
843 views

cPanel ssh ftp application to transfer files to another server

I have to transfer ~6GB of data from my server to another which I don't own. On my server I have ssh access, and I have SFTP console client. The thing is, other server only supports plain old FTP and ...
1
vote
1answer
265 views

Files synced via dropbox cannot be served with IIS because of file permissions

I'm running into the problem of using Dropbox and IIS. I am using the Dropbox Folder Sync plugin to sync a folder outside the Dropbox folder. They are synced into my inetpub\root\downloads\ ...
2
votes
8answers
2k views

What should the Unix file system permissions be for PHP files under Apache?

What is the best practice for permissions with PHP files? When should they be writable, or executable? What owner is best? I'm using an Apache server.