3 entry daha
  • laravel, symfony, django vs. kurarken root klasörü direkt ortası değil public_html ya da public gibi klasörler olabiliyor. bunu php gear'ı ile nasıl yapacağım derken blogları imdadıma koştu.

    php, perl, python gearları içinde bunu ayarlayan script varmış.

    örnek php scripti:

    ıf php/ dir exists then documentroot=php/
    else ıf public/ dir exists then documentroot=public/
    else ıf public_html/ dir exists then documentroot=public_html/
    else ıf web/ dir exists then documentroot=web/
    else ıf www/ dir exists then documentroot=www/
    else documentroot=/

    yani root içinde önce php, sonra public, sonra public_html, sonra web, sonbra da www klasörlerine bakıyor, varsa bunları dorument root olarak ayarlıyor, eğer yoksa direkt kök klasörü root olarak tanımlıyor.

    şukela oldu bu.
14 entry daha
hesabın var mı? giriş yap