Kategorije:


04.06.2008.

PHP - Amazon S3 - file integration
Lokacija: PHP :: Hosting   |   Autor: cacan @ 14:57   |  

Nedavno sam se nasao u situaciji da sam zbog ogromne navale (unmetered, ali ogranicen bw) morao naci hitno rjesenje, ili trpiti bujicu prigovora korisnika, ostrice tomahawka i voodoo kletve. ;-) Uglavnom, sadrzajno se radilo o fotkama, ali kad je pipa uska, a potraznaj velika -> sve steka. Srecom, trazeni materijal se mogao tocno odrediti i to je uvelike olaksalo rjesavanje problema.

Dakle, trebalo je neko brzo i handy rjesenje, bez previse kodiranja i drkanja -> i tu se sjetih S3!

U vrlo, vrlo kratkom vremenu (kojih 15tak minuta efektivno), uz malu pomoc kolege Kukija (rewrite rule), moze se:
- regati S3 account
- prilagoditi posluzivanje na serveru (redirect na S3 za trazenim sadrzajima pomocu .htaccesa) - ovo je jednostavan file requst rule za sve fileove u odredjenom direktoriju

RewriteEngine on
RewriteCond ^/%{REQUEST_FILENAME} !-f
RewriteRule ^(.+) http://bucket.s3.amazonaws.com/dir/$1

- pronaci optimalno rjesenje za upload sadrzaja na S3 i uploadati fileove na S3 (pomocu odlicnog S3fox plugina za Firefox, vrijeme uploada nije uracunato u onih 45 minuta ;-)) et voila - trazeni materijal se posluzuje po relativno jeftinim tarifama.

30tak GB, koliko je taj peak pojeo - nesto sitno iznad 5$. Very nice! ;-)

Kako je peak trajao svega dan-dva i promet se vratio u normalu, ali S3 ostaje kao jocker u rukavu za sve prometno zahtjevne situacije. Ovaj put ga imam u vidu i pri planiranju i razvoju, a ne samo kao vatrogasnu mjeru.

Evo par handy sitnica za PHP za streamanje (korisno kod velikih datoteka) na S3 server.
http://www.ogleearth.com/2007/07/kmls_region_ama.html
http://neurofuzzy.net/index.php?s=s3 + http://www.neurofuzzy.net/2006/08/26/amazon-s3-php-class-update/
http://www.missiondata.com/blog/linux/49/s3-streaming-with-php/
http://cesarodas.com/2007/09/php-amazon-s3-stream-wrapper.html
http://www.phpclasses.org/browse/package/4144.html

http://www.theregister.co.uk/2008/07/14/mulesource_cloud_amazon/page2.html

PHP 5 Class



Vezani blogovi:
  • Amazon S3 - Service Unavailable
  • nLite - Windows Installation Customizer
  • Free file upload sites (upload - download)
  • File upload sites (upload-download dump)
  • The Annals of Improbable Research (AIR) - zanimljivo, njam, njam
  • Wikifortio - file hosting - upload-download
  • Free Content, Free Software, Free Hosting






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    13.05.2008.

    .htaccess - firewall example
    Lokacija: Zanimljivi linkovi :: Hosting   |   Autor: cacan @ 10:45   |  

    Odlican primjer .htaccess-a koji bi trebao odbiti dobar dio napada se moze naci ovdje: My Webapplication Firewall Tutorial. Najbolja preporuka za ovaj vid zastite lezi u cinjenici da je pravila sastavila osoba kojoj je domena securitya web aplikacija dobro poznata. ;-)

    ovakav ili slican .htaccess + ModSecurity + dobro definirana pravila na HW/SW firewallu (block all, allow only necessary na ogranicenim IP rangeovima) i server bi mogao biti poprilicno siguran…



    Vezani blogovi:
  • pcfg_openfile, Too many open files error in Apache, Perimission denied
  • Online Armor Firewall - best freeware firewall
  • Remove the Windows security icon from the tray!
  • Apache Logging - advanced access_log
  • Apache Web Server Speed Configuration Hacks (optimization, optimizing)
  • Why IT Sucks






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    14.04.2008.

    pcfg_openfile, Too many open files error in Apache, Perimission denied
    Lokacija: Hosting   |   Autor: cacan @ 12:26   |  

    Eh, eh… tako je to kad se idu instalirati zadnje verzije APC-a ;-)

    Configuration: Apache2, PHP4.x + APC 3.0.18

    Simptomi: Korisnik dobije Error403, u Apache error logu
    “(24)Too many open files: /home/site/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable”

    Bug reported: http://pecl.php.net/bugs/bug.php?id=13529

    Solution: Revert to earlier versions of APC (3.0.15)



    Vezani blogovi:
  • Apache - config - virtual hosting
  • Appserv Open Project - one click install Apache PHP MySQL Zend phpMyAdmin
  • Apache Logging - advanced access_log
  • WAMP5 - Win32 ApacheMySQL & PHP5 instalacija
  • Apache Web Server Speed Configuration Hacks (optimization, optimizing)
  • MultiEX commander - game editor
  • Wampserver - WAMP5 + WAMP4 - Win32 Apache MySQL PHP






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    13.04.2008.

    Modsecurity audit_log analysis
    Lokacija: WebDev :: Hosting   |   Autor: cacan @ 17:10   |  

    Par korisnih Mod Security grepova za cupanje iz audit_loga…

    egrep ‘Host:’ audit_log | sort | uniq -c | sort -rn | sed “s/mod_security-message\: Access denied with code 412\. //g” >

    egrep ‘mod_security-message’ audit_log | sort | uniq -c | sort -rn | mod_security-message-sort.txt

    egrep “^HTTP/” audit_log | sed “s/HTTP\/[01].[019] //g” | sort | uniq > HTTPcodes-audit.txt

    i za access log…

    cat httpd-access.log | awk ‘{print $7}’ | sort | uniq -c | sort -rn | less

    P.S. Jos samo da ne moram procitati 17 zilijardi manuala u kojima cu pronaci upute kako iskljuciti zapisivanje 404 u audit log. Ugh…



    Vezani blogovi:
  • .htaccess - firewall example
  • Captology - i ja zelim prati mozgove…
  • PHP Bayesian Filter i par sitnih PHP utila
  • PHPcap - Pcap and Network extension for php - packet sniffing
  • Online Armor Firewall - best freeware firewall
  • Trynt.com - Free web API’s
  • Free english dictionary - thesaurus - besplatni engleski rjecnik






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    01.04.2008.

    Apache Logging - advanced access_log
    Lokacija: Hosting   |   Autor: cacan @ 14:00   |  

    Odlican clanak o raznim tehnikama za bolje logiranje apache logova…
    Advanced Logging Techniques With Apache

    i jos malo : HowToForge - How To Tell Apache To Not Log Certain Requests In Its Access Log

    i jos…

    * http://forums.digitalpoint.com/showthread.php?p=488716
    * http://www.keithjbrown.co.uk/vworks/unix/logs.php
    * http://www.htaccesselite.com/htaccess/setenvif-examples-vt141.html



    Vezani blogovi:
  • Apache Web Server Speed Configuration Hacks (optimization, optimizing)
  • Photoshop Tutorials (advanced)
  • Wampserver - WAMP5 + WAMP4 - Win32 Apache MySQL PHP
  • WOS - WebServer on Stick - Apache, MySQL, PHP - USB stick
  • PHP, Apache, MySQL - direktno s CD-a
  • Apache - config - virtual hosting
  • Appserv Open Project - one click install Apache PHP MySQL Zend phpMyAdmin






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    05.07.2007.

    Apache Web Server Speed Configuration Hacks (optimization, optimizing)
    Lokacija: WebDev :: PHP :: Razno :: Hosting   |   Autor: cacan @ 10:56   |  

    Odlican clanak o ubrzanju i optimiziranju postavki Apache-a….Apache hacks + jos jedan : 14 rules for fast web pages + Steve Souders’es PPT



    Vezani blogovi:
  • Optimizacija PHP-a
  • Optimizing Page Load Time - odlican clanak
  • Appserv Open Project - one click install Apache PHP MySQL Zend phpMyAdmin
  • Apache - config - virtual hosting
  • UniformServer - WAMP server s plugin arhitekturom
  • Install: AMP (Apache, MySQL, PHP + Zend)
  • pcfg_openfile, Too many open files error in Apache, Perimission denied






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    01.05.2007.

    File upload sites #2 (upload-download)
    Lokacija: Hosting   |   Autor: cacan @ 22:40   |  

    Buduci da je RapidShare notorno smece, evo par alternativa….

    mihd.net: up to 200MB, no hourly limitations, files are deleted 45 days after the last download.

    DivShare up to 200 MB, permanent upload

    MediaFire up to 100 MB



    Vezani blogovi:
  • Free file upload - download hosting list
  • File upload sites (upload-download dump)
  • Free file upload sites (upload - download)
  • Wikifortio - file hosting - upload-download
  • Picasa & Coppermine Photo Gallery
  • How-To: Increase your upload/download/ratio in torrent trackers
  • Avatars - Invision PowerBoard - download






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    06.04.2007.

    dncCoop.com - How much is your site worth?
    Lokacija: Hosting :: SEO Tools   |   Autor: cacan @ 8:57   |  

    How much is your site worth?

    Dakle, svasta… ovi moji linkovi i informacije sto si ih skupljam nekom drugom bi vrijedili $900… yeah, right… ;-) Meni vrijeme bar $10K ;-)

    Kako god, lijepo da se netko sjetio uzeti vise parametara i prema njima raditi procjenu vrijednosti pojedine (pod)domene… kao i za Alexu, i ovaj tool je dobar samo za odokativnu relativnu usporedbu vise domena, nikako za realnu procjenu vrijednosti neke domene… ocito da autori dolaze iz sredine gdje se sve mjeri iskljucivo u $$$, a i marketinski bolje zvuci kad nesto vrijedi $xxxxx, nego xxxxx kikirikija… ;-)



    Vezani blogovi:
  • Will Life Be Worth Living in 2000 A.D.?
  • DIY Diffuser for Hot-Shoe Flash (Canon 430EX speedlite)
  • Cheap Web Hosting
  • Cisco testovi vjezbanje - free cisco ccna tests
  • La musica ideas portara…
  • Jere web - lik nad likovima…
  • nationmaster.com - usporedba statistickih podataka za drzave






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    01.02.2007.

    PsychicWhois.com - zanimljiv domain whois searcher
    Lokacija: Hosting   |   Autor: cacan @ 10:59   |  

    Jedan zanimljiv whois se nalazi na PsychicWhois.com, koji se fino nadopunjuje na Whois.domaintools.com



    Vezani blogovi:
  • NetTool: web hosting reverse lookup
  • Public Domain photos - free - library
  • LAN Tool - Lan Spy - Lan Info
  • OpenClipart.org - free clip art library
  • Google ex-employee blog
  • Javascript HTML include - HInclude, purple-include
  • Why Good Programmers Are Lazy and Dumb






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    27.01.2007.

    Free Content, Free Software, Free Hosting
    Lokacija: WebDev :: Hosting   |   Autor: cacan @ 0:19   |  

    Free Content, Free Software, Free Hosting

    eWeek reports that Wikipedia founder Jimmy Wales wants to facilitate the dissemination of free content by offering free software, free storage and free bandwidth.

    Free usually means ad supported - but not in this case. Wales says his customers will be able to keep any advertising revenue their content generates. The new service will be called OpenServing.

    Wikia, the commercial counterpart of the non-profit Wikipedia, recently received an undisclosed amount of funding from Amazon.com. When asked whether Amazon will supply web services for Wikia or OpenServing, Wales said potentially - but hosting wasn’t a part of the investment deal.

    MediaWiki will be the first free app available from OpenServing. WordPress and Drupal may follow, along with “hundreds of other software packages". Users will even have a single sign-on across all services.

    Many hosting providers dismiss Google Apps for Domains and Microsoft’s Office Live as proprietary platforms with limited functionality. Their customers want the flexibility to install whatever open source software they choose. In which case, might OpenServing’s mission of creating a free software clearinghouse atop a free hosting platform represent a threat to traditional web hosting?



    Vezani blogovi:
  • Best Free Web Hosting
  • Free file upload sites (upload - download)
  • CameraTown.com Guides - Free Photography How-To Guides and Tutorials
  • Pixelfont ikone
  • MorgueFile.com - free photos, images, manuals, tutorials, digital photography
  • Download free books online
  • Free flash image gallery viewer - odlicno!






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    23.01.2007.

    Cheap Web Hosting
    Lokacija: WebDev :: Hosting   |   Autor: cacan @ 0:19   |  

    Kako pronaci jeftin i kvalitetan hosting? hmmm…

    Finding a needle in a host stack

    How can you avoid the lurch and successfully land the right low-cost host your first time out? First, figure out exactly what you want your site to be, both now and in the future. Today, you may just want a simple site for your blog. In a year or two, as people flock to your site to read your brilliant observations, you might need to handle a lot more traffic. Or you might decide to sell T-shirts with your likeness on them, and you’ll need some e-commerce tools. In any case, you need to think it through.

    When you have a good idea of what you need from a host, it’s time to hit the Web and start doing your homework. While you’re at it, be sure to follow these simple rules: continue->



    Vezani blogovi:
  • Little Known Ways to Brand on the Cheap: 99 Tips for Poor Web Startups
  • Best Free Web Hosting
  • Wikifortio - file hosting - upload-download
  • Free Content, Free Software, Free Hosting
  • Best Web Hosting
  • Apache - config - virtual hosting
  • Free file upload - download hosting list






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!
    Best Free Web Hosting
    Lokacija: Zanimljivi linkovi :: Hosting   |   Autor: cacan @ 0:15   |  

    Clanak o tome kako izabrati dobar free web hosting… hm, zar nije to izumrlo? ;-)

    Free Web Page Hosts with No Banner Ads?

    Looking for free web site hosting with no annoying pop-ups, pop-unders, buttons, banners, headers or footers? And as well as this, you’d like 99.8 percent up-time, fast servers, access to the cgi-bin for scripts, FP extensions, PHP and MySQL databases and FTP access?

    We went out searching for the best “no ads” totally free site hosting space deals around. The results: disappointing, they are very few and far between. Many have come and gone, or as in the case of Bizland, quite suddenly withdrawn their free service and demanded that all their customers begin paying. We took a look at the promotional information for over 300 free web hosting companies, but then also looked at customer reviews. There was usually a major difference in opinions.

    There is still a plethora of free web hosts around, but most require that you carry their advertising or offer you a limited time for the free service, usually a year. On the up side of this, many of these companies do supply quality hosting with many services in exchange for having their banners served up on your pages. We did find that many of the non-banner supported free options were hosted on very slow servers. In a number of cases, the server failed to respond at all! continue ->



    Vezani blogovi:
  • Free Content, Free Software, Free Hosting
  • Wikifortio - file hosting - upload-download
  • Free file upload - download hosting list
  • Best Web Hosting
  • Free file upload sites (upload - download)
  • Apache - config - virtual hosting
  • Cheap Web Hosting






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    22.01.2007.

    Best Web Hosting
    Lokacija: WebDev :: Hosting   |   Autor: cacan @ 23:59   |  

    Who has The Best web hosting in the world?

    http://www.thewhir.com/blogs/Isabel-Wang/index.cfm/2007/1/22/Hosting-Tomorrows-MySpace

    Robert Cringely says Google is on its way to become the biggest CDN ever. It controls more network fiber than any other company in the world - and it’s building two huge data centers in South Carolina alone. Google’s enormous capacity, coupled with end users’ increasingly voracious appetite for all things web-based, will lead to a future in which Google will act as a giant proxy server for the Internet. It will be “our phone company, our cable company, our stereo system and our digital video recorder"…

    Greg Linden disagrees. He thinks that instead of cornering the market on bandwidth, Google is trying to build a world of infinite storage and CPU power. Well, *and* bandwidth.

    No web hosting provider will have access to Google’s economy of scale. Or out-of-this-world local government incentives. (Unless you’re a state-licensed operator in China, but that’s a different story.) Sorry, there isn’t and won’t be any way around this. BUT one resource that Google won’t be dishing out in buckets is… knowledge. continue… ->



    Vezani blogovi:
  • Best Free Web Hosting
  • Wikifortio - file hosting - upload-download
  • Free Content, Free Software, Free Hosting
  • Apache - config - virtual hosting
  • Cheap Web Hosting
  • Free file upload - download hosting list
  • Wordpress - Theme creator - Bloggia






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    10.11.2006.

    Optimizing Page Load Time - odlican clanak
    Lokacija: WebDev :: Hosting   |   Autor: cacan @ 10:16   |  

    U danasnjem svijetu popularizacije Neta, Ajax-a, web2.0 i znatno povecanom broju requesta koji je web server mora handleati.

    Par savjeta za optimiziranje web servera: Optimizing Page Load Time



    Vezani blogovi:
  • Optimizacija PHP-a
  • Apache Web Server Speed Configuration Hacks (optimization, optimizing)
  • Google Pagerank - objasnjenje kako radi Google
  • SEO Analyzer - A Web Standards & SEO Page Analyzer
  • Ajax - PHP - Asynchronous JavaScript And XML - intro, tutorials, manuals, examples
  • Clanak: Security Aspects of a PHP-MySQL-based Login System for Web Sites
  • Best Free Web Hosting






  • Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!

    14.11.2005.

    Free file upload sites (upload - download)
    Lokacija: WebDev :: Zanimljivi linkovi :: Hosting   |   Autor: cacan @ 16:57   |  

    Mozda nekom pomogne ili zatreba negdje ostaviti pokoji file… evo par mjesta gdje i kako to napraviti :)

    http://fileupyours.com
    Everything unlimited

    http://datapickup.com
    Max File Size: 1.5GB
    File deleted after 7 days

    http://freespace.filefront.com
    Max File Size: 1GB (Files cannot be larger than 1GB or take more than 10 hours to upload)
    Everything else is unlimited.

    http://www.yousendit.com
    Max File Size: 1GB
    File deleted after 7 days

    http://www.transferbigfiles.com
    Max File Size: 1GB
    File deleted after 5 days/20 downloads

    http://ftpz.us
    Max File Size: (was 498MB now 880MB)
    Everything else is unlimited

    http://www.zupload.com/
    Max File Size: 500MB

    http://www.sexuploader.com/
    Max File Size: 500MB
    Looks and acts like MegaUpload

    http://www.spread-it.com
    Max File Size: 500MB
    File deleted if not downloaded for 30 days

    http://www.thefilehut.com
    Max File Size: 250MB
    Free registration required

    http://www.megaupload.com
    Max File Size: 250MB (used to be 500MB)
    File deleted if not downloaded for 30 days

    http://www.updownloadserver.com
    Max File Size: 250MB (Uploads will be checked by an admin before publishing)

    http://www.sharebigfile.com
    Max File Size: 250MB
    File deleted after 7 days

    http://www.filecache.de
    Max File Size: 125MB
    File deleted if not downloaded for 30 days

    http://www.fdrop.com
    Max File Size: 100MB
    Free registration required

    http://www.pushfile.net
    Max File Size: 100MB
    File deleted if not downloaded for 7 days

    http://www.dropload.com
    Max File Size: 100MB
    File deleted after 7 days or after the first download (yep.. it’s true)

    http://www.turboupload.com
    Max File Size: 70MB

    http://www.filehd.com/index.php
    Max File Size: 60MB

    http://www.picapic.net
    Max File Size: 60MB

    http://www.nexmicrosystems.com
    Max File Size: 60MB
    File deleted after 30 days

    http://www.savefile.com
    Max File Size: 60MB
    File deleted if not downloaded for 14 or 30 days. FAQ says 14, upload page says 30…

    http://www.psychohost.com
    Max File Size: 50MB
    Everything else unlimited.

    http://www.freeuploader.com
    Max File Size: 50MB

    http://www.ushareit.com
    Max File Size: 50MB

    http://sharefiles.ru
    Max File Size: 50MB
    File deleted after 30 days

    http://www.wirefiles.com
    Max File Size: 50MB

    http://www.xshare.us
    Max File Size: 50MB

    http://app02.bonpoo.com/file.htm
    Max File Size: 50MB

    http://rapidshare.de
    Max File size: 50MB
    Download Limit: 50MB/hour
    File deleted if not downloaded for 30 days

    http://qfile.de
    Max File size: 50MB
    Download Limit: 50MB/hour
    File deleted if not downloaded for 30 days

    http://www.uploadhut.com
    Max File Size: 50MB

    http://www.gigashare.com
    Max File Size: 50MB (multiple files upload option)

    http://www.uploadsend.com/
    Max File Si