Search results

  1. E

    Server specs for high speed?

    It's 1gbps port. B = bytes, b = bits. 1 byte = 8 bits. 1gbps / 300 users = 3,4mbps each, 420KB/seg each.
  2. E

    Server specs for high speed?

    If you mean Mb/s (megabits per second): 300 users * 10Mb/sec = 3000Mb/sec. It's almost 3gbps, you would need a 10gbps port, a good connectivity and, a hardware raid array capable of reading at 3Gb/sec and some optimizations on the script to prevent small read requests and prevent the script from...
  3. E

    [ACCEPTED v4.4] Media Converter plugin minor change

    Re: Media Converter plugin minor change Answered via PM. For anyone else reading this topic, the code itself apparently starts 1 conversion at a time and running it in other servers should work. Notice that since the code doesn't use transactions, if 2 servers execute the script at the same...
  4. E

    [ACCEPTED v4.4] Media Converter plugin minor change

    Re: Media Converter plugin minor change I don't have the code here since I don't have this plugin, but I'm pretty sure that you can tweak one query or two to make the script get only 3 jobs per cron execution.
  5. E

    send link activation for register user

    Fake users will keep registering using temporary emails.
  6. E

    [ACCEPTED v4.4] Search engine optimization SEO

    Re: Search engine optimization SEO Most websites block google entirely. They will remove your pages from the index based on any abuse report and send you thousands of emails. Several companies have bots that searched the web for specific keywords in file sharing sites and issue abuse reports...
  7. E

    File Upload issues

    There are a few possible solutions: - Try to implement folder upload, but not all browsers support it. - Implement a function to unzip archives so that the users can zip a folder, upload and unzip on the server. - Create a desktop app that syncs files just like google drive (I was doing one app...
  8. E

    Issue with File Action queue not deleting files

    Regardless of this issue, the script often leaves files in the _tmp and _deleted folder. Even in normal conditions if the php script dies in the middle of the process it can update the database and fail to remove the file on disk. This can also happen during an upload. Since the script doesn't...
  9. E

    recommended nginx file and directory permissions/owner

    Not all files need to be 777, but applying 777 in files and folders are not a security issue, it just means that any user in your server may write to those files. If you use cpanel or any other control panel, other users outside your cpanel account wont be able to access your files regardless of...
  10. E

    recommended nginx file and directory permissions/owner

    chmod 777 is needed to let the php script write and delete files in the folder when the php executes with a different user, usually nobody. If your scripts execute with the same user that owns the files and folders, you don`t need to use chmod 777. I recommend using mod_ruid2 with apache.
  11. E

    copy entire folder

    Yes, copy folders will be useful but it's not trivial to do. To do that a function should copy the folder, every file inside the folder, every subfolder and every file inside the subfolders recursively. It must also check if the user has enough free space to copy everything.
  12. E

    copy entire folder

    You can tweek your remote upload to accept files from your own site and simulate a download using the copy function.
  13. E

    copy entire folder

    The script already has an option to copy files, they don't need to upload the same file again.
  14. E

    Keeping the database small to save disk space

    If it is really 2tb, you are doing something very wrong. (or you have millions os users, making millions in revenue) Old records download_tracker table can be deleted. Deleting actual records may cause errors in the current downloads. The laws of many countries require websites to keep their...
  15. E

    Keeping the database small to save disk space

    2tb? Do you mean 2gb? 2gb is normal, 2tb is huge. The download_tracker data should be deleted or archived on a regular basis. The stats table you can tweek to increase the performance and reduce the disk usage. But again, your server should not go down when you backup large databases.
  16. E

    Keeping the database small to save disk space

    Your server should not get down when you backup large databases. How big is your db?
  17. E

    Bug on moving files between servers

    When moving files between 2 direct servers the transfer may timeout in 60 seconds. Use default_socket_timeout to increase the timeout for the functions fopen and file_put_contents. If the server starts the download and the connection drops in the middle of the transfer the script will proceed...
  18. E

    Add Cache Plugin

    If you are using php to server download it may be a poorly designed code that uses 100% cpu. It happens on direct downloads, but I'm not sure if it also happens if you host files in an ftp server.
  19. E

    Allow access to folder and files only for specific users.

    No. But you can set passwords. Yes, this is the normal behavior.