<p>Bu yazımızda ghost blog platformunu ubuntu sunucumuza kuracağız , şimdi elimizde sıfır durumda üzerinde ssh harici hiç bir şey kurulu olmayan makinamız olduğunu ve ssh ile eriştiğimizi varsayıyorum.<br />
Öncelikle sunucumuzu güncelleyelim. İşlemlerimizi root kullanıcısı ile yapmak daha kolay olacaktır , <strong>su root</strong> ile root kullanıcısına geçebiliriz. root şifresini bilmiyor iseniz <strong>passwd root</strong> ile değiştirebilirsiniz.</p>
<p>root@ubuntu:~#<strong> sudo apt-get update</strong><br />
root@ubuntu:~# <strong>sudo apt-get upgrade</strong><br />
root@ubuntu:~# <strong>sudo aptitude install build-essential zip</strong></p>
<p>Şimdi <a href="http://nodejs.org/dist/latest/">nodejs.org</a> üzerinden son versiyon u indirip kuralım.</p>
<p>root@ubuntu:~# <strong>wget http://nodejs.org/dist/node-latest.tar.gz</strong><br />
root@ubuntu:~# <strong>tar -xzf node-latest.tar.gz</strong><br />
root@ubuntu:~# <strong>cd node-v0.10.25 </strong>(sürüm değiştikçe klasör adı değişecektir)</p>
<p>Şimdi node u muzu kurabiliriz.</p>
<p>root@ubuntu:~/node-v0.10.25# <strong>./configure<br />
</strong>root@ubuntu:~/node-v0.10.25#<strong> <strong>make</strong><br />
</strong>root@ubuntu:~/node-v0.10.25#<strong> make install<br />
</strong></p>
<p>Şimdi Ghost u indirip , kuralım</p>
<p>root@ubuntu:~/node-v0.10.25# <strong>sudo mkdir -p /var/www/</strong><br />
root@ubuntu:~/node-v0.10.25# <strong>cd /var/www</strong><br />
root@ubuntu:/var/www# <strong>wget https://ghost.org/zip/ghost-latest.zip</strong><br />
root@ubuntu:/var/www# <strong>sudo unzip -d ghost ghost-latest.zip</strong><br />
root@ubuntu:/var/www# <strong>cd ghost</strong><br />
root@ubuntu:/var/www/ghost# <strong>sudo npm install &#8211;production</strong></p>
<p>Şimdi Ghost kurulumumuzu konfigure edelim.</p>
<p>root@ubuntu:/var/www/ghost# <strong>cp config.example.js config.js<br />
</strong>root@ubuntu:/var/www/ghost#<strong> nano config.js<br />
</strong></p>
<p>Açılan dosyada Production bölümü altındaki host yazan yerin yanındaki ip adresini sunucu ip adresiniz ile güncelleyiniz , port kısmını ise 80 olarak değiştiriniz , url kısmına site adresiniz yazmalısınız.</p>
<p>// ### Production<br />
// When running Ghost in the wild, use the production environment<br />
// Configure your URL and mail settings here<br />
production: {<br />
url: &#8216;<strong>http://www.ayhanarda.com/blog</strong>&#8216;,<br />
mail: {},<br />
database: {<br />
client: &#8216;sqlite3&#8217;,<br />
connection: {<br />
filename: path.join(__dirname, &#8216;/content/data/ghost.db&#8217;)<br />
},<br />
debug: false<br />
},<br />
server: {<br />
// Host to be passed to node&#8217;s `net.Server#listen()`<br />
host: &#8216;<strong>192.185.189.211</strong>&#8216;,<br />
// Port to be passed to node&#8217;s `net.Server#listen()`, for iisnode set this to `process.env.PORT`<br />
port: &#8216;<strong>80</strong>&#8216;<br />
}<br />
},</p>
<p>Şimdi bu işlemden sonra ghost u çalıştırabiliriz.</p>
<p>root@ubuntu:/var/www/ghost# <strong>sudo npm start &#8211;production</strong></p>
<p>Browserımızı açalım ve ip adresinden çalışıp çalışmadığını test edelim, işte hepsi bu kadar.</p>
<p>Eğer kullanmak ister iseniz <a href="http://www.webhostingsitesi.com" target="_blank">webhosting</a> sitesi ile iletişime geçebilirsiniz.</p>
<p>Saygılarımla</p>
<p>Ayhan ARDA</p>
<p> ;</p>
<p> ;</p>