Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

İlk Kurulum Sorunları #23

Open
gdemir opened this issue Feb 12, 2019 · 4 comments
Open

İlk Kurulum Sorunları #23

gdemir opened this issue Feb 12, 2019 · 4 comments

Comments

@gdemir
Copy link
Member

gdemir commented Feb 12, 2019

Burada uygulamanın kurulum ve yapılandırma eksiklikleri hakkında talepler açılacaktır.

Örnek taslak :

[Sorun 1: ]
[Çözüm 1: ]
@gdemir
Copy link
Member Author

gdemir commented Feb 12, 2019

Sorun 1 : PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0 Hatası

Bu sorunlar satın alınan sunucularda karşılaşılmıyor, eğer yerelde denemelerde uygulama çalıştığında konsolda aşağıdaki gibi hata alınabilir.

  $ php -S localhost:9090
[Wed Feb 13 00:33:00 2019] 127.0.0.1:48716 [200]: /favicon.ico
[Wed Feb 13 00:33:02 2019] 127.0.0.1:48720 [200]: /
[Wed Feb 13 00:33:02 2019] PHP Warning:  Unknown: Session data file is not created by your uid in Unknown on line 0
[Wed Feb 13 00:33:02 2019] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions) in Unknown on line 0

Çözüm 1:

Dizin iznini 750 verelim:

    $ chmod -R 750 /var/lib/php/sessions

Muhtemelen aynı dosya üzerine yazmaya çalışıyordur, aşağıdaki gibi var olan bir dosyayı silelim:

    $ sudo rm -rf /var/lib/php/sessions/sess_8d7hm9vvm2eulfk8breae2q8f7 

@gdemir
Copy link
Member Author

gdemir commented Mar 4, 2019

Sorun 2: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column 'DATABASE.user.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by → /var/www/html/lib/ApplicationSql.php at line 157 Hatası

Çözüm 2:

Bu sorun (sql_mode=only_full_group_by) aslında MySQL'in 5.6 ve 5.7'de bu bugcuk olduğundan dolayı geçici çözüm:

Bakıyoruz:

mysql> SELECT @@GLOBAL.sql_mode; # check sql_mode

Ayarlıyoruz:

mysql> SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); 

MySQL 5.8'den sonra böyle bir hata yok.

@gdemir
Copy link
Member Author

gdemir commented Mar 17, 2020

Sorun 3: /var/www/html/islamvakti.net/public_html/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://172.104.155.13/home/index

Çözüm 3:

modül aktif etme

sudo a2enmod rewrite

apache restart etme

sudo service apache2 restart

@gdemir
Copy link
Member Author

gdemir commented Mar 17, 2020

Sorun 4: Call to undefined function curl_init()

Çözüm 4:

sudo apt-get install php-curl

apache restart etme

sudo service apache2 restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant