Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
from those instructions, it appears it should be in /var/www/html/vtigercrm Read and Write permissions should be enabled for user/group who owns webserver process (like www-data or httpd or apache).
Apache on my CentOS 6.4 host owns /var/www/html/sitename/
Yours is probably the same owner, even on CentOS 5.9
Code:
grep -E "apache|www" /etc/passwd
Let us know where you get stuck with adequate details.
from those instructions, it appears it should be in /var/www/html/vtigercrm Read and Write permissions should be enabled for user/group who owns webserver process (like www-data or httpd or apache).
Apache on my CentOS 6.4 host owns /var/www/html/sitename/
Yours is probably the same owner, even on CentOS 5.9
Code:
grep -E "apache|www" /etc/passwd
Let us know where you get stuck with adequate details.
Wondering if ASTERISK being listed here is a problem?
Code:
[root@vTiger /]# ls -ld /var/jegas/code/git/carsonroselive/crm/
drwxrwxrwx 33 apache asterisk 4096 Jan 8 16:01 /var/jegas/code/git/carsonroselive/crm/
Is there a vtiger user on the system as well?
check with
Code:
grep tiger /etc/passwd
and let me know.
Is there a way to list all users on a server? I thought originally that chown put the owner as Asteriskuser...so I tried to chown -R apache, vtiger, root.. all kinds of things from different posts across the internet... no change. The funny thing is I can change the directory that I go into and access different "versions" of our installation and none of them will let me past the login screen. I am wondering if the commands used to affect mysql are also part of the culprit... (I swear, I will *NEVER* experiment with what I THINK I know on a working server again!!! Lesson learned!!
Here is what Im talking about from the guide. I basically cut-n-paste these commands when I was originally screwing everything up:
A few small modifications to Apache.
Code:
sed -i 's/\(^upload_max_filesize = \).*/\120M/' /etc/php.ini
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf_orig
sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/httpd/conf/httpd.conf
service httpd restart
Configure Asterisk database in MYSQL.
Code:
cd /usr/src/freepbx
export ASTERISK_DB_PW=amp109
mysqladmin -u root create asterisk
mysqladmin -u root create asteriskcdrdb
mysql -u root asterisk < SQL/newinstall.sql
mysql -u root asteriskcdrdb < SQL/cdr_mysql_table.sql
Set permissions on MYSQL database.
Code:
mysql -u root -e "GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY '${ASTERISK_DB_PW}';"
mysql -u root -e "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY '${ASTERISK_DB_PW}';"
mysql -u root -e "flush privileges;"
OK. let's cut to the chase, I believe that the group permissions to be incorrect (apache:asterisk) on the /var/jegas/code/git/carsonroselive/crm/ directory, so let's change that with
and try to login to the crm again. If that fails again, do this:
Code:
ls -ltr /var/jegas/code/git/carsonrosetest/crm/logs
and report the last 2 files at the bottom of the output.
This command lists files in reverse as they are written. One of those logs files should have more information about the
login failure. Hopefully, one of those will be /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log,
if so, you may wish to have a look at the contents of /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log using
this will give you the last 100 lines of that file and should be useful in
the debugging process. This would be moot if the chmod "fixes" the site for you.
crasuppo_crmlive has what I'd guess is the login/password for the crm portal.
OK. let's cut to the chase, I believe that the group permissions to be incorrect (apache:asterisk) on the /var/jegas/code/git/carsonroselive/crm/ directory, so let's change that with
and try to login to the crm again. If that fails again, do this:
Code:
ls -ltr /var/jegas/code/git/carsonrosetest/crm/logs
and report the last 2 files at the bottom of the output.
This command lists files in reverse as they are written. One of those logs files should have more information about the
login failure. Hopefully, one of those will be /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log,
if so, you may wish to have a look at the contents of /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log using
this will give you the last 100 lines of that file and should be useful in
the debugging process. This would be moot if the chmod "fixes" the site for you.
crasuppo_crmlive has what I'd guess is the login/password for the crm portal.
Please let us know...
This is what happened:
Code:
[root@vTiger ~]# chmod apache:apache -R /var/jegas/code/git/carsonroselive/crm/
chmod: invalid mode: `apache:apache'
Try `chmod --help' for more information.
[root@vTiger ~]#
I noticed also that we are using "carsonrosetest" and I think i SHOULD be using "carsonroselive"...however:
Code:
[root@vTiger ~]# tail -100 /var/jegas/code/git/carsonroselive/crm/logs/vtigercrm.log
tail: cannot open `/var/jegas/code/git/carsonroselive/crm/logs/vtigercrm.log' for reading: No such file or directory
[root@vTiger ~]#
Also:
Code:
[root@vTiger ~]# ls -ltr /var/jegas/code/git/carsonroselive/crm/logs
total 112
-rwxrwxrw- 1 apache apache 0 May 18 2012 todel.txt.txt
-rwxrwxrw- 1 apache apache 109578 May 18 2012 migration.log
Last edited by bradshaw79; 01-13-2014 at 07:42 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.