Ubuntu Türkiye

Sanat ve Üretim => Web Tasarım => Konuyu başlatan: minolta35 - 10 Nisan 2014 - 20:19:12

Başlık: wordpress'i yükleyemedim.
Gönderen: minolta35 - 10 Nisan 2014 - 20:19:12
Sudonun 14.sayısında ve wikideki bilgilerle wordpress kurmaya çalıştım ancak başarılı olamadım.bir yerde bir hata yaptım sanırım ama çözemedim.zannediyorum
''create user 'wordpress'@'localhost' identified by
'parola_giriniz'''
adımını beceremedim.

''mysql -u root -p

komutunu veriyoruz. Bizden kurulum sırasında vermiş olduğumuz Mysql root parolasını isteyecektir. Parolamızı girip Mysql konsoluna ulaşıyoruz.

Öncelikle create database wordpress; komutu ile Wordpress kurulumumuz için bir veritabanı oluşturuyoruz. Sonraki adımda Wordpress için bir kullanıcı oluşturuyoruz: create user 'wordpress'@'localhost' identified by 'parola_giriniz'; Ve ardından bu kullanıcıya "wordpress" veritabana yetkileri veriyoruz: grant all privileges on wordpress.* to 'wordpress'@'localhost' with grant option; Kullanıcımızı oluşturduktan ve yetkileri verdikten sonra "quit" diyerek Mysql konsolundan çıkıyoruz. Kontrol için mysql -u wordpress -p wordpress ile yeni kullanıcımıza girmeyi deneyebiliriz. ''

bu kısmı biri daha açık anlatabilir mi?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 10 Nisan 2014 - 21:27:55
Tam olarak hangi kısmı anlamadın? Esasında açık bir anlatım. Öncelikle sen:

mysql -u root -p
ile parolanı girip mysql'e girebiliyor musun? Şöyle bir satır karşılamalı seni:

..
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: minolta35 - 10 Nisan 2014 - 21:35:40
zafer@zafer-System-Product-Name ~ $ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 36
Server version: 5.5.35-0ubuntu0.12.04.2 (Ubuntu)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>


burada verilen '' create user '' komutunun kalanını nasıl yazacağım?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 10 Nisan 2014 - 22:40:07
create database wordpress;
şeklinde. Sonda ; var ona göre. Diğer komutlar da benzer şekilde uygulanacak. Anlatım çok karışık değil, yavaş yavaş uygularsan sorun olmaz.
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: minolta35 - 10 Nisan 2014 - 23:26:43
onu dememiştim,

create user 'wordpress'@'localhost' identified by 'parola_giriniz';

bu şekilde yazarak parola giriniz yazılı yere mysql parolasını mı yazmam gerekiyor? ve her komut sonrası ; işareti var mı?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 11 Nisan 2014 - 14:47:08
Öncelikle, mysql tarafında her komutun sonrasında ; var. Oradaki parola_giriniz dediği yere yeni bir parola girebilirsin. Bu gireceğin parola wordpress kullanıcısı için tanımlanmış olacak. Kısacası o komutla wordpress isminde bir kullanıcı oluşturup, parolasını ayarlıyorsun. Wordpress kurulumundaki yapılandırma dosyasına da bu kullanıcı ve parolasını giriyorsun.

Ancak, bu şekilde kullanıcı oluşturmak da şart değil. root kullanıcısı ve ona ait parola kullanılabilir. Kısacası sadece bir adet veritabanı bile yetebilir. Kendi adına bu gibi işlerde root kullanıcısı ve ona ait veritabanı parolasını kullanmak istemiyorsan yeni bir kullanıcı oluşturabilirsin dergide anlatıldığı üzere.
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: minolta35 - 11 Nisan 2014 - 20:06:07
o zaman root olarak ''wordpress'' yerine başka bir kullanıcı adı da yazabilirim yani...
peki wordpress ve localhost yazılarındaki '-----' den den işaretleri kalacak mı?
eğer root olarak varsayılan bir yönetici varsa ileride site güvenliği açısından bir sakıncası olmaz mı?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: mrtAkdeniz - 11 Nisan 2014 - 20:32:15
Şöyle bir kolaylık sağlayayım sana, zaten mySql'de uzman olmayan kişilerin mysql komut satırını kullanmasını pek önermiyoruz.

sudo apt-get install phpmyadmin
komutuyla phpmyadmin kurulumu yapıp, localhost/phpmyadmin ile giriş yaparsın. Oradan görsel olarak veritabanı oluşturur, bu veritabanı bilgilerini wordpress konfigrasyon dosyana yazarsın. :)
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 14 Nisan 2014 - 16:26:53
Alıntı yapılan: minolta35 - 11 Nisan 2014 - 20:06:07
o zaman root olarak ''wordpress'' yerine başka bir kullanıcı adı da yazabilirim yani...
peki wordpress ve localhost yazılarındaki '-----' den den işaretleri kalacak mı?
eğer root olarak varsayılan bir yönetici varsa ileride site güvenliği açısından bir sakıncası olmaz mı?

Evet, o karakterler olacak mysql satırında. wordpress yerine varsa başka bir kullanıcıyı da kullanabilirsin elbette, ancak o kullanıcının Wordpress için oluşturulan veritabanında izinlerinin olması lazım. root'un hepsi için bu izinleri olduğu için kendisini kullanabilirsin.

Güvenlik açığı olur mu? root kullanıcısının bu şekilde kullanılması doğrudan güvenlik açığına sıkıntısı olmaz. Fakat güvenlik dediğimiz çok geniş bir kavram, çok fazla farklı bileşeni var. Eğer biri sunucuya sızmışsa ve yapılandırma dosyasını okuyabiliyorsa, root kullanıcısının veritabanı parolası sistem parolası ile aynıysa ortaya vahim durumlar çıkabilir. Ancak bunun öncesinde elbette sunucuya sızılmış olması daha büyük bir olaydır. Zaten root ile sızılmışsa bu dosyaya bakmasının anlamı olmayacaktır. WP'nin veya X bir bileşenin açığından dolayı bu dosya okunabilir olursa (ki bu çok büyük bir açık olacaktır, kaçta kaç ihtimal vardır bilemem) yine ortaya iyi sonuçlar çıkmayabilir.

Kısacası, sırf bu nedenden ötürü (yani root kullanıcısının kullanılması) güvenlik açığı yaşanacağını sanmam, anlatmak istediğim başka bir güvenlik açığı yaşandığında olabilecekler. Bunları düşünerek kendin karar vermelisin neyi kullanacağına.

Ayrıca @mrtAkdeniz'in söylediği şekilde Phpmyadmin'e de göz gezdirebilirsin.
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: mozhan - 14 Temmuz 2014 - 01:53:21
arkadaşlar aynı sorun bende de var forumda hatta dıger kaynakları da baya bı taradım bı turlu cozum bulamadım yenı konu acmak ıstemedım buraya yazıyorum wordpress i kurmaya calısıorum wıkıdekı lınk ten kurmaya calısıorum bende ama localhost a girip oradan devam etmem gerekıor anlatıma gore
tarayıcıya local host yazınca
Forbidden

You don't have permission to access /phpmyadmin on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80

bu hatayı alıyorum

yuklemeyı yaptıgım kaynak sudur:
http://wiki.ubuntu-tr.net/index.php?title=Localhost%27a_LAMP_ve_Wordpress_kurulumu (http://wiki.ubuntu-tr.net/index.php?title=Localhost%27a_LAMP_ve_Wordpress_kurulumu)
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 14 Temmuz 2014 - 04:13:19
Nereye kurulu uygulamalar? /var/www mi /var/www/html mi? Ubuntu sürümün 14.04 mü? Eğer öyleyse html dizinini kullanman gerekiyor.

ls -ld /var/www
ls -ld /var/www/html


çıktılarını bir görelim. Ayrıca doğrudan localhost diye bağlandığında Apache geliyor mu karşına? Orada bir sıkıntı var mı yoksa sorun sadece Phpmyadmin'e mi ait?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: mozhan - 15 Temmuz 2014 - 00:08:23
html klasörü de var bahsettiğimiz yerde onun içinde index.html var ubuntu sürümüm 14.04
kod çıktıları sırasıyla

ls -ld /var/www
drwxrwxrwx 7 root root 4096 Tem 14 01:07 /var/www

ls -ld /var/www/html
drw-rw-rw- 2 root root 4096 Tem 13 18:21 /var/www/html

şuan tarayıcıya local host yazdıgım zaman direk yukarıda bahsettiğim hatayı alıyorum
kuruluma ilk başladıgım zaman acılmıstı sadece test yazısı kısmı

phpmyadmin kısmını bılmıorum cunku arkadasımın tavsıyesı uzerıne wordpress kurmaya calıstım  sıfırdan sıte tasarlamanın yerıne daha hızlı ornek sıtelerden duzenleme ıle daha kolay oldugunu soyledı suan da bole bı sıkıntıyla karsı karsıyayım ıste cabuk cözüme ulasırsam ıyı olacak cunku elımde bı ıs var yoksa eskısı gıbı sıfırdan yapmak zorunda kalacagım

Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: burk - 15 Temmuz 2014 - 01:34:46
İlginç bir şekilde html için x iznini vermemiş,
chmod -R +X /var/www/html
komutundan sonra tekrar dene, bu arada phpmyadmin mysql için kullanıcı arayüzü sağlar, veritabanı yönetimi konusunda komut bilgin yeterliyse kurmana gerek yok.
Başlık: Ynt: wordpress\'i yükleyemedim.
Gönderen: mozhan - 15 Temmuz 2014 - 03:42:30
verdiğiniz komutu su alarak yaptım işe yaramış gözüküyor kurulumun kalan kısmına devam ediyorum eger bi sorun cıkarsa yine yeniden yazarım
cok tesekurler..


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 15 Temmuz 2014 - 05:00:28

arkadaslar worpress kurulum ekranına ulaştım bu sefer de orada sıkıntı yasıyorum denemedıgım varyasyon kalmadı

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?

If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.


bu hatayı alıyorum localhosta girip database name , user name , pasword , database host ve  table prefix i girdikten sonra bıyerlerde yanlıslık var

yuklemeye calıstıgım kaynakta 'wordpress'@'localhost' kısmını mustafa@ozhan yapmıstım herseyı denedım burayla alakalı dıye dusunuyorum  fakat bulamadım
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: Taifuru - 15 Temmuz 2014 - 05:45:14
wp-config.php de bulunan kullanici adi ve sifre sifre yanlis olabilir ya da veritabani calismiyor diyor. Veritabaninin calistigindan eminmisin?
Başlık: Ynt: wordpress\'i yükleyemedim.
Gönderen: mozhan - 15 Temmuz 2014 - 13:55:07
wp-config.php dosyasına baktım orada tek tırnak işaretleri arasında 'database name here'  'pasword is here'  hepsinde böyle yazıyor ne yapmam gerekiyor ?


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 15 Temmuz 2014 - 16:18:01

@Taifuru haklıymıssın kardesım verı tabanında sorun varmıs ınceledım oldu suan yenı b ı verı tabanı actım mustafa@local host dıye bunu bu sekılde yapmamın  sebebı ıse
mysql -u wordpress -p wordpress
                  1.numara           2.numara

byrada 1. wordpress yerıne mustafa yazınca karsıma mustafa@localhost cıkıyor 2. de bı degısıklık cıkmadı
ben mustafa@ozhan dıye kurmustum o yuzden bu kullanıcıya ulasamıyordum
yanı @ den sonra localhost olması gerektı benım kurulumumda

Tesekurler hersey ıcın sorunum cözuldu arkadaslar
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: Taifuru - 05 Eylül 2014 - 00:21:14
İletinin sonunu görmemişim :) Sorun çözülmüş zaten
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: umutgs - 17 Ekim 2014 - 14:14:11
İyi Günler
bende  wordpress yükleyemedim. LAMP server İ yükledim sorunsuz. Localhost, phpmyadmin yazınca sayfa açılıyor.

wordpress dosyasını sitesinden indirerek var/www/html dosya yoluna kopyaladım. kurulum için hata veriyor.(not found hatası) ubuntu da farklı şekilde mi yapmam gerekiyor.


edit: sorun çözüldü.
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: burk - 29 Ekim 2014 - 00:19:24
@umutgs sorunu nasıl çözdün? İzin meselesi miydi?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: plazma - 23 Mayıs 2015 - 00:33:12
Denemek için yeni xubuntu 14.04 64 bit kurdum makinama ardında " [Nasıl] 14.04 üzerine Apache,MySQL,PHP5,PhpMyAdmin kurulumu - LAMPP"  Lampp kurdum sorun yaşamadan.

Wordpress 4.2.2 indirip /var/www/html/ nin içine kopyaladım : /var/www/html/wordpress/

phpmyadminden veritabanı oluşturdum sonra WP kurulumunda "Üzgünüm, wp-config.php dosyasına yazılamıyor." kalıyor izinlere baktım

[plazma@atilgan] /var/www/html 
❯ ls -ld /var/www
drwxr-xr-x 3 root root 4096 May 23 00:07 /var/www

[plazma@atilgan] /var/www/html 
❯ ls -ld /var/www/html
drwxr-xr-x 3 root root 4096 May 23 00:22 /var/www/html

[plazma@atilgan] /var/www/html 
❯ ls -ld /var/www/html/wordpress
drwxr-xr-x 5 root root 4096 May 23 00:22 /var/www/html/wordpress


sadece wp klasorun chmod +x uyguladım ama genede kuramadı bir bilgisayarı yeniden başlatıp deneyeceğiö şimdi galiba bu kısımda takılıyorlar kullancılar.


[plazma@atilgan] /var/www/html 
❯ sudo chmod 777 wordpress

[plazma@atilgan] /var/www/html 
❯ ls -l                   
toplam 20
-rw-r--r-- 1 root root 11510 May 23 00:07 index.html
-rw-r--r-- 1 root root    20 May 23 00:15 info.php
drwxrwxrwx 5 root root  4096 May 23 00:22 wordpress


755 denedim olmuyor aynı hata, 777 durumunda çalışıyor ama buda hiç sağlıklı değil.

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-12-04

bağalntısan göre lele oluşturup config dosyasını sonra kopyalıyor birde kullancı ekleme olayı var sanırsam izinler için :

Step Four—Copy the Files

We are almost done uploading Wordpress to the virtual private server. The final move that remains is to transfer the unzipped WordPress files to the website's root directory.

sudo rsync -avP ~/wordpress/ /var/www/

Finally we need to set the permissions on the installation. First, switch in to the web directory:

cd /var/www/

Give ownership of the directory to the apache user.

sudo chown username:www-data /var/www -R
sudo chmod g+w /var/www -R


bu şekilde oluyor yapınca :

[plazma@atilgan] /var/www/html 
❯ sudo chown root:www-data /var/www/html/wordpress -R

[plazma@atilgan] /var/www/html 
❯ sudo chmod g+w /var/www/html/wordpress -R         

[plazma@atilgan] /var/www/html 
❯ ls -l                                             
toplam 24
-rw-rw-r-- 1 root www-data 11510 May 23 00:07 index.html
-rw-rw-r-- 1 root www-data    20 May 23 00:15 info.php
drwxrwxr-x 5 root www-data  4096 May 23 01:02 test
drw-rw---- 5 root www-data  4096 May 23 00:52 wordpress

Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 25 Mayıs 2015 - 04:06:58
Buradaki işin püf noktası dosyaların sahipliğini web sunucusunu çalıştıran kullanıcıya geçirip, yazma izni vermek. O da burada www-data kullanıcısı oluyor. Haliyle sahiplik root'tayken 775 vermek yetmez :) Olması gereken o dizinin root'a değil, www-data kullanıcısına ait olması bence. DO tarafındaki anlatımı yapan kişi öyle tercih etmiş ancak grup değil de sahipliği vermek daha makul bir yaklaşım bana göre.
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: plazma - 26 Mayıs 2015 - 03:43:03
Bu şekilde mi oluyor

sudo usermod -a -G www-data www-data
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 27 Mayıs 2015 - 00:29:49
www-data kullanıcısı ve grubu zaten sistemde tanımlıdır, o konuda bir şey yapmaya gerek yok. Dizinlerin sahipliğinden bahsediyordum ben. Örneğin:

chown -R www-data:www-data /var/www/falanca

Bu şekilde hem sahiplik hem de grup izinleri www-data kullanıcısına geçmiş olur. Her zamanki gibi, chmod ile olduğu gibi chown ile çalışırken de dikkatli olmak lazım :)
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: plazma - 05 Haziran 2015 - 02:16:12
Alıntı Yap[plazma@atilgan] /var/www/html 
❯ sudo chown -R www-data:www-data /var/www/html/wordpress                                         ⏎
[sudo] password for plazma:

[plazma@atilgan] /var/www/html 
❯ ls
index.html  info.php  wordpress

[plazma@atilgan] /var/www/html 
❯ ls -l
toplam 20
-rw-rw-r-- 1 root     www-data 11510 May 23 00:07 index.html
-rw-rw-r-- 1 root     www-data    20 May 23 00:15 info.php
drw-rw---- 5 www-data www-data  4096 May 23 00:52 wordpress

verince tarayıcdan http://localhost/wordpress/ girince bu sefer

Forbidden

You don't have permission to access /wordpress/ on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80


geliyor, bir yeri atlıyorum galiba gene.
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 07 Haziran 2015 - 00:35:57
drw-rw---- 5 www-data www-data  4096 May 23 00:52 wordpress

İzinler 660 görünüyor buradan. 755 olabilir en azından bence.

sudo chmod -R 755 /var/www/html/wordpress
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: plazma - 09 Haziran 2015 - 19:54:01
[plazma@atilgan] /var/www/html 
❯ sudo chmod -R 755 /var/www/html/wordpress                                                       ⏎
[sudo] password for plazma:

[plazma@atilgan] /var/www/html 
❯ ls -l
toplam 20
-rw-rw-r-- 1 root     www-data 11510 May 23 00:07 index.html
-rw-rw-r-- 1 root     www-data    20 May 23 00:15 info.php
drwxr-xr-x 5 www-data www-data  4096 May 23 00:52 wordpress


her dizin için ozaman elle ayarlarsak sorun kalmaz.
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: if - 21 Haziran 2015 - 17:50:51
@plazma, Wordpress için oluşturduğun Apache ayar dosyasında "DocumentRoot" nereyi gösteriyor?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: plazma - 27 Haziran 2015 - 20:58:40
apache.conf :

# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
# /etc/apache2/
# |-- apache2.conf
# | `--  ports.conf
# |-- mods-enabled
# | |-- *.load
# | `-- *.conf
# |-- conf-enabled
# | `-- *.conf
# `-- sites-enabled
# `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


Bu dosya değil mi sorduğunuz ?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: if - 27 Haziran 2015 - 21:24:11
O değil @plazma, /etc/apache2/sites-available/ dizini altında siteniz için bir ayar dosyası oluşturmanız gerekiyor. Bu ayar dosyası içerisinde siteye ait dosyaların bulunduğu dizinin neresi olduğunu gösteren "DocumentRoot" değişkeninden bahsediyorum.
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: heartsmagic - 28 Haziran 2015 - 13:01:48
Şu an sorun var mı bu konu için?
Başlık: Ynt: wordpress'i yükleyemedim.
Gönderen: plazma - 28 Haziran 2015 - 15:22:03
000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


default-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/html

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf

#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on

#   A self-signed (snakeoil) certificate can be created by installing
#   the ssl-cert package. See
#   /usr/share/doc/apache2/README.Debian.gz for more info.
#   If both key and certificate are stored in the same file, only the
#   SSLCertificateFile directive is needed.
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

#   Server Certificate Chain:
#   Point SSLCertificateChainFile at a file containing the
#   concatenation of PEM encoded CA certificates which form the
#   certificate chain for the server certificate. Alternatively
#   the referenced file can be the same as SSLCertificateFile
#   when the CA certificates are directly appended to the server
#   certificate for convinience.
#SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt

#   Certificate Authority (CA):
#   Set the CA certificate verification path where to find CA
#   certificates for client authentication or alternatively one
#   huge file containing all of them (file must be PEM encoded)
#   Note: Inside SSLCACertificatePath you need hash symlinks
# to point to the certificate files. Use the provided
# Makefile to update the hash symlinks after changes.
#SSLCACertificatePath /etc/ssl/certs/
#SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt

#   Certificate Revocation Lists (CRL):
#   Set the CA revocation path where to find CA CRLs for client
#   authentication or alternatively one huge file containing all
#   of them (file must be PEM encoded)
#   Note: Inside SSLCARevocationPath you need hash symlinks
# to point to the certificate files. Use the provided
# Makefile to update the hash symlinks after changes.
#SSLCARevocationPath /etc/apache2/ssl.crl/
#SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl

#   Client Authentication (Type):
#   Client certificate verification type and depth.  Types are
#   none, optional, require and optional_no_ca.  Depth is a
#   number which specifies how deeply to verify the certificate
#   issuer chain before deciding the certificate is not valid.
#SSLVerifyClient require
#SSLVerifyDepth  10

#   SSL Engine Options:
#   Set various options for the SSL engine.
#   o FakeBasicAuth:
# Translate the client X.509 into a Basic Authorisation.  This means that
# the standard Auth/DBMAuth methods can be used for access control.  The
# user name is the `one line' version of the client's X.509 certificate.
# Note that no password is obtained from the user. Every entry in the user
# file needs this password: `xxj31ZMTZzkVA'.
#   o ExportCertData:
# This exports two additional environment variables: SSL_CLIENT_CERT and
# SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
# server (always existing) and the client (only existing when client
# authentication is used). This can be used to import the certificates
# into CGI scripts.
#   o StdEnvVars:
# This exports the standard SSL/TLS related `SSL_*' environment variables.
# Per default this exportation is switched off for performance reasons,
# because the extraction step is an expensive operation and is usually
# useless for serving static content. So one usually enables the
# exportation for CGI and SSI requests only.
#   o OptRenegotiate:
# This enables optimized SSL connection renegotiation handling when SSL
# directives are used in per-directory context.
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>

#   SSL Protocol Adjustments:
#   The safe and default but still SSL/TLS standard compliant shutdown
#   approach is that mod_ssl sends the close notify alert but doesn't wait for
#   the close notify alert from client. When you need a different shutdown
#   approach you can use one of the following variables:
#   o ssl-unclean-shutdown:
# This forces an unclean shutdown when the connection is closed, i.e. no
# SSL close notify alert is send or allowed to received.  This violates
# the SSL/TLS standard but is needed for some brain-dead browsers. Use
# this when you receive I/O errors because of the standard approach where
# mod_ssl sends the close notify alert.
#   o ssl-accurate-shutdown:
# This forces an accurate shutdown when the connection is closed, i.e. a
# SSL close notify alert is send and mod_ssl waits for the close notify
# alert of the client. This is 100% SSL/TLS standard compliant, but in
# practice often causes hanging connections with brain-dead browsers. Use
# this only for browsers where you know that their SSL implementation
# works correctly.
#   Notice: Most problems of broken clients are also related to the HTTP
#   keep-alive facility, so you usually additionally want to disable
#   keep-alive for those clients, too. Use variable "nokeepalive" for this.
#   Similarly, one has to force some clients to use HTTP/1.0 to workaround
#   their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
#   "force-response-1.0" for this.
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


Yok benim için ama çıktıları paylaşayım dedim if 'in istediği kapanmadan önce :) bu sefer doğru herhalde