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

default_layout.php #3

Open
alexkoh1 opened this issue Jun 3, 2016 · 6 comments
Open

default_layout.php #3

alexkoh1 opened this issue Jun 3, 2016 · 6 comments

Comments

@alexkoh1
Copy link

alexkoh1 commented Jun 3, 2016

Hello!

I make all steps to install CRM, but when I try to log in, a only can see this message: default_layout.php

Please, tell me how to fix it.

@luckyshot
Copy link
Owner

Hi @alwxkoh1,

Please provide more details on your setup. Also, make sure to download the latest version (0.3.0)

@alexkoh1
Copy link
Author

alexkoh1 commented Jun 3, 2016

I have just downloaded the latest version. But it is the same error.

I change values for mysql, but I haven't change the form and users arrays. I thinkn, that it cat be default for test.

@luckyshot
Copy link
Owner

What are the details of your server? Are you on Mac/Windows/Linux?
What Apache/PHP/MySQL versions are you using?
Is it installed in a root domain or a subdirectory?

Please give as many details as possible, otherwise I'll just be shooting in the dark with random solutions.

@alexkoh1
Copy link
Author

Sory, for late reply. It installed in a root domain.
PHP info:

root@zabbix:/var/www/CRMx-master# php --version
PHP 5.6.22-1~dotdeb+7.1 (cli) (built: May 26 2016 22:11:02) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
root@zabbix:/var/www/CRMx-master# 

mysql info:

root@zabbix:/var/www/CRMx-master# mysql --version
mysql  Ver 14.14 Distrib 5.5.47, for debian-linux-gnu (x86_64) using readline 6.2
root@zabbix:/var/www/CRMx-master# 

apache info:

root@zabbix:/var/www/CRMx-master# apachectl -V
Server version: Apache/2.2.22 (Debian)
Server built:   Aug 18 2015 09:50:52
Server's Module Magic Number: 20051115:30
Server loaded:  APR 1.4.6, APR-Util 1.4.1
Compiled using: APR 1.4.6, APR-Util 1.4.1
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"
root@zabbix:/var/www/CRMx-master# 

@alexkoh1
Copy link
Author

alexkoh1 commented Jun 22, 2016

apache site config:

<VirtualHost *:80>
        ServerName crmx.com
        DocumentRoot /var/www/CRMx-master
        DirectoryIndex index.php

<Directory /var/www/CRMx-master>
Allowoverride All
</Directory>

        ErrorLog ${APACHE_LOG_DIR}/error_crmx.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access_crmx.log combined
</VirtualHost>

apache modules:

root@zabbix:/var/www/CRMx-master# apache2ctl -M
Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 php5_module (shared)
 reqtimeout_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 status_module (shared)
Syntax OK
root@zabbix:/var/www/CRMx-master# 

In logs i see 404 error:
- [22/Jun/2016:13:07:11 +0500] "GET /Tester/test HTTP/1.1" 404 524 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 YaBrowser/16.6.0.8608 Yowser/2.5 Safari/537.36"

.htaccess file:

root@zabbix:/var/www/CRMx-master# cat .htaccess 

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  Options +Indexes
  RewriteEngine on

  # if your app is in a subfolder
  # RewriteBase /my_app/ 

  # test string is a valid files
  RewriteCond %{SCRIPT_FILENAME} !-f
  # test string is a valid directory
  RewriteCond %{SCRIPT_FILENAME} !-d

  RewriteRule ^(.*)$   index.php?uri=/$1    [NC,L,QSA]
  # with QSA flag (query string append),
  # forces the rewrite engine to append a query string part of the
  # substitution string to the existing string, instead of replacing it.
</IfModule>
root@zabbix:/var/www/CRMx-master# 

@HarshadK15
Copy link

Got the same default_layout.php error, any leads?

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

No branches or pull requests

3 participants