Forumlar > Pardus > Pardus İleri (PAMP - Pardus'ta Apache MySQL PHP Kurulumu)
resilence kullanıcısının resmi

resilence

Kayıt: 02/10/2005

PAMP - Pardus'ta Apache MySQL PHP Kurulumu

Pardus üzerinde Apache/MySQL/PHP kullanmak için yapılması gerekenler.

$ sudo pisi update-repo
$ sudo pisi it apache mysql-server mod_php

Şimdi sırasıyla apache ve mysql'i başlatacağız:

$ su
# mysql_install_db
# service mysql-server on
# service apache on

Buraya kadar geldiyseniz http://localhost/ ile sunucunuza erişebiliyor olmalısınız.

Top
MuST kullanıcısının resmi

MuST

Kayıt: 18/11/2005

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

Eline sağlık. Sabitledim.

Top
y1g1t kullanıcısının resmi

y1g1t

Kayıt: 22/01/2006

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

yazılanların hepsini yaptım.

yalnız sorunlar yaşadım sırasıyla;
sudo kwrite /etc/conf.d/apache2 komutundaki dosyada

APACHE2_OPTS="-D DEFAULT_VHOST" sadece bu satır mevcut.
-D USERDIR" bu ifade dosya bulunmuyor.

bende onu
APACHE2_OPTS="-D DEFAULT_VHOST" "-D PHP5" bu hale getirdim.

sonra

yigit@pardus ~ $ $ sudo mysql_install_db
bash: $: command not found

bu komutta hata aldım.oysaki üste yazmış olduğunuz tüm paketleri yükledi.

yigit@pardus ~ $ sudo /etc/init.d/mysql start
* Servis bağımlılıkları hesaplanıyor
/etc/conf.d/apache2: line 24: -D PHP5: command not found [ tamam ]
/etc/init.d/mysql: line 20: my_print_defaults: command not found
/etc/init.d/mysql: line 20: my_print_defaults: command not found
* Your mysql doesn't have any datadir setting, default or specific
* Please check your my.cnf : /etc/mysql/my.cnf

mysql başlatılmasındada bu hata ile karşılaştım.

apache yi başlatırkende yine bir hata oluştu

igit@pardus ~ $ sudo /etc/init.d/apache2 start
/etc/conf.d/apache2: line 24: -D PHP5: command not found
* Apache2 başlatılıyor
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Jan 30 19:27:49 2006] [warn] NameVirtualHost *:80 has no VirtualHosts [ tamam ]

Top
resilence kullanıcısının resmi

resilence

Kayıt: 02/10/2005

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

y1g1t wrote:
yazılanların hepsini yaptım.

Fakat biraz yanlış uygulamışsın Smile

y1g1t wrote:
APACHE2_OPTS="-D DEFAULT_VHOST" sadece bu satır mevcut.
-D USERDIR" bu ifade dosya bulunmuyor.

bende onu
APACHE2_OPTS="-D DEFAULT_VHOST" "-D PHP5" bu hale getirdim.
burada -D USERDIR olmasa da olur, ayrıca -D PHP5 eklerken tırnak işaretlerini yazmayacaksın, son hali APACHE2_OPTS="-D DEFAULT_VHOST -D PHP5" olacak.

y1g1t wrote:
yigit@pardus ~ $ $ sudo mysql_install_db
bash: $: command not found

bu komutta hata aldım.oysaki üste yazmış olduğunuz tüm paketleri yükledi.
$ işaretlerini yazmayacaksın, onlar komut değil, bu komutları kullanıcı hakları ile çalıştıracağını gösteren imler.

y1g1t wrote:
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Mon Jan 30 19:27:49 2006] [warn] NameVirtualHost *:80 has no VirtualHosts [ tamam ]

Bu da bir hata değil, httpd.conf'ta ServerName'in başındaki # işaretini kaldırırsan o uyarıyı da almazsın.

Tekrar dener misin?

Top
LordVoldemort kullanıcısının resmi

LordVoldemort

Kayıt: 29/01/2006

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

ben yaparken bu çıktı
LordVoldemort@pardus ~ $ sudo mysql_install_db
Password:
/usr/bin/mysql_install_db: line 85: my_print_defaults: command not found
Neither host 'pardus' nor 'localhost' could be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option

Top
y1g1t kullanıcısının resmi

y1g1t

Kayıt: 22/01/2006

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

resilence wrote:
y1g1t wrote:
yazılanların hepsini yaptım.

Fakat biraz yanlış uygulamışsın Smile
...
Tekrar dener misin?

yigit@pardus ~ $ sudo mysql_install_db
password:
/usr/bin/mysql_install_db: line 85: my_print_defaults: command not found
Neither host 'pardus' nor 'localhost' could be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option

bu hatayı alıyorum.

mysql i başlatırkende

yigit@pardus ~ $ sudo /etc/init.d/mysql start
/etc/init.d/mysql: line 20: my_print_defaults: command not found
/etc/init.d/mysql: line 20: my_print_defaults: command not found
 * Your mysql doesn't have any datadir setting, default or specific
 * Please check your my.cnf : /etc/mysql/my.cnf

bu hatayı alıyorum.

not: belki sırası değil ama /var/www/localhost/htdocs burdan açılan kök dosyamdaki indexte türkçe karakterler gözükmüyor. index.html dosyasının charset ini iso-8859-9 yaptım. sonra httpd.conf dosyasındaki default characteri iso-8859-9 yaptım . apache yi restart ettim fkt sorun düzelmedi.

Php yi denedim çalışıyor Smile

Top
LordVoldemort kullanıcısının resmi

LordVoldemort

Kayıt: 29/01/2006

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

arkadaşım mysql_install_db de aynı hatayı aldım öbürünü denemedim ilki olmayınca

Top
y1g1t kullanıcısının resmi

y1g1t

Kayıt: 22/01/2006

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

ok karakter sorununu çözdüm utf-8 yapınca herikisini sorun çözüldü.

mysql i kuramadım bi türlü, bu konuda da yardımcı olabilirseniz çok sevinirim. simdiden tesekkurler Wink

Top
MuST kullanıcısının resmi

MuST

Kayıt: 18/11/2005

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

$ sudo mysql_install_db --force

komutunu deneyin. Olumlu sonuç çıkarsa devam edin.

$ sudo /etc/init.d/mysql start
$ sudo /etc/init.d/apache2 start

Top
y1g1t kullanıcısının resmi

y1g1t

Kayıt: 22/01/2006

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

malesef yine çalışmadı.

/var/run/mysqld bu adreste sock uzantılı dosya olması lazım fkt bende bu klasor bomboş.

komutların konsol çıktıları;

pardus yigit # sudo mysql_install_db --force
/usr/bin/mysql_install_db: line 85: my_print_defaults: command not found
Installing all prepared tables
/usr/bin/mysql_install_db: line 216: /usr/bin/mysql_create_system_tables: Böyle bir dosya ya da dizin yok
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h pardus password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com



pardus yigit # sudo /etc/init.d/mysql start
/etc/init.d/mysql: line 20: my_print_defaults: command not found
/etc/init.d/mysql: line 20: my_print_defaults: command not found
 * Your mysql doesn't have any datadir setting, default or specific
 * Please check your my.cnf : /etc/mysql/my.cnf
Top
MuST kullanıcısının resmi

MuST

Kayıt: 18/11/2005

Re: PAMP - Pardus'ta Apache MySQL PHP Kurulumu

Komutlarınızı kontrol ederek uygulayın

Ben size bu komutu verdim. Yani kullanıcı olarak, sudo kullanıp geçici olarak bu komut için root haklarına sahip oluyorum.
$ işareti konsolda kullanıcı olduğunuzu gösterir.

$ sudo mysql_install_db --force

Bu işaret de # konsolda root olduğunuzu gösterir.
Hem root'sunuz hemde komut çalıştırmak için sudo komutu kullnmışsınız. sudo komutunu sadece kullanıcı olarak kullanın yada sudo kullanmayın sadece root olun.

pardus yigit # sudo mysql_install_db --force

Top