E
E
EVOSandru62015-09-22 13:10:30
Yii
EVOSandru6, 2015-09-22 13:10:30

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

1 answer(s)
P
pantsarny, 2015-09-22
@pantsarny

It does not display an error, but a notification. The php.net/manual/en/function.error-reporting.php
function is responsible for displaying errors sudo a2ensite simple.loc simple.loc - site name, probably you have localhost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question