merhaba
Ben giga dan bir server 2 ip aldım. O servera sadece oyunları atırak http://89.74.124.1/flashgameismi.swf şeklinde kullanmak istiyorum. Fakat server da sadece centos kurulu. Bunun için apache mi kurmam gerekiyo.
Apache kurma
19
●1.658
- 03-06-2010, 23:44:24Çok sağol hocam. Evet apache kurulldu. Peki ip yi bu şekilde http://89.74.124.1/flashgameismi.swf kullanmak için nasıl bi ayar yapmalıyım. /etc/httpd/conf/httpd.conf bu dosyaya bişey mi yazmam gerek.
- 04-06-2010, 00:53:21aşağıdaki komutları sırayla uygula.
wget --passive-ftp ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3.tar.gz
tar xvfz proftpd*
cd proftpd*
yum remove vsftpd
yum install gcc*
./configure --sysconfdir=/etc
make
make install
cd ..
rm -fr proftpd*
ln -s /usr/local/sbin/proftpd /usr/sbin/proftpd
nano /etc/init.d/proftpd
açılan yere aşağıdakini yapıştırıp ctrl + x , y ve enter tuşla
#!/bin/sh # $Id: proftpd.init,v 1.1 2004/02/26 17:54:30 thias Exp $ # # proftpd This shell script takes care of starting and stopping # proftpd. # # chkconfig: - 80 30 # description: ProFTPD is an enhanced FTP server with a focus towards \ # simplicity, security, and ease of configuration. \ # It features a very Apache-like configuration syntax, \ # and a highly customizable server infrastructure, \ # including support for multiple 'virtual' FTP servers, \ # anonymous FTP, and permission-based directory visibility. # processname: proftpd # config: /etc/proftp.conf # pidfile: /var/run/proftpd.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 [ -x /usr/sbin/proftpd ] || exit 0 RETVAL=0 prog="proftpd" start() { echo -n $"Starting $prog: " daemon proftpd RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/proftpd } stop() { echo -n $"Shutting down $prog: " killproc proftpd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/proftpd } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status proftpd RETVAL=$? ;; restart) stop start ;; condrestart) if [ -f /var/lock/subsys/proftpd ]; then stop start fi ;; reload) echo -n $"Re-reading $prog configuration: " killproc proftpd -HUP RETVAL=$? echo ;; *) echo "Usage: $prog {start|stop|restart|reload|condrestart|status}" exit 1 esac exit $RETVALardından aşağıdaki komutlara devam
chmod 755 /etc/init.d/proftpd
nano /etc/proftpd.conf
açılan ekranda user ve group karşısını aşağıdaki gibi nobody yapıp ctrl + x , y ve enter tuşla
aşağıdaki komut ile ftp hizmetini başlat,Alıntı
/etc/init.d/proftpd start
şimdi ftp bağlanırken kullanacağın user ve pass ayarlamaya geldi
adduser istediginisim
passwd istediginisim
şimdi iki kere şifreni gir (istediğinisim kısmını kendi kullanmak istediğin kullanıcı adı ile değiş)
şimdi /home/istediginisim/ şeklinde ana dizinin oluştu
nano /etc/httpd/conf/httpd.conf
komutu ile httpd.conf açıp sayfanın en altına in aşağıdaki gibi virtualhost girişi göreceksin (yoksa en alt satıra ekleyebilirsin.)
bu kaydı kendine uygun bilgilerle düzelt. son olarakAlıntı
service httpd restart
ile apacheyi restart et. hayırlı uğurlu olsun. - 04-06-2010, 14:02:24Sizlere öncelikle bu bilgiler için çok teşekkür ederim. victories dedikleini yaptım, /home/istediginisim/ böyle bi dosya oluştu ancak bu dosyanın altında public_html ve cgi-bin oluşmadı, bu yüzden apache restart yapamadı. Böyle bi hata verdi:
[root@m5140 /]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 1024 of /etc/httpd/conf/httpd.conf:
Invalid command '/home/poolgames1/public_html/cgi-bin/', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED] - 04-06-2010, 15:42:19aldığın hatayı yazarsan ona göre çözüm üretelim.fusion adlı üyeden alıntı: mesajı görüntüle