Answer the question
In order to leave comments, you need to log in
How to correctly configure php and apach for Yii on Debian in LAMP?
Good afternoon, I
installed lamp on a server on Debian , I
used to sit on Windows and everything was well configured in OpenServer right away.
The Yii site itself opens, but displays an error in the place where CMenu is used :
PHP notice
Undefined index: label ,
If you remove the widget, then everything works fine. At home on Windows, the site works well. What could be the problem. I tried to configure like here:
bovs.org/post/50/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0...
But in this place: sudo a2ensite simple.loc
I catch an
error :ERROR: Site simple.loc does not exist!
Maybe this is not entirely related to my topic, but I sin on the server settings.
In .htaccess :
AddDefaultCharset utf-8
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
I also sinned that this file is not activated, I tried to set mod_rewrite like this: xmodulo.com/how-to-enable-mod_rewrite-in-apache2-o... But this did not solve my problem, did anyone come across in configuring a server for Yii on nix? Already I do not know what to pick.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question