LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-11-2014, 01:06 PM   #16
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Habitual View Post
https://wiki.vtiger.com/index.php/In...le_Permissions

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.
I forgot to post this information earlier:

Code:
[root@vTiger ~]# grep -E "apache|www" /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin
webalizer:x:67:67:Webalizer:/var/www/usage:/sbin/nologin
 
Old 01-11-2014, 01:09 PM   #17
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
https://wiki.vtiger.com/index.php/In...le_Permissions

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/
 
Old 01-11-2014, 03:47 PM   #18
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by bradshaw79 View Post
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/
It may very well be the problem.

Is there a vtiger user on the system as well?
check with
Code:
grep tiger /etc/passwd
and let me know.
 
Old 01-11-2014, 03:50 PM   #19
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
That didnt output anything...

[root@vTiger /]# grep tiger /etc/passwd
[root@vTiger /]#
 
Old 01-11-2014, 03:56 PM   #20
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
It may very well be the problem.

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;"
 
Old 01-12-2014, 08:39 AM   #21
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by bradshaw79 View Post
That didnt output anything...

[root@vTiger /]# grep tiger /etc/passwd
[root@vTiger /]#
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
Code:
cp -pr /var/jegas/code/git/carsonroselive/crm/ /var/jegas/code/git/carsonroselive/crm.save
chmod apache:apache -R /var/jegas/code/git/carsonroselive/crm/
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
Code:
tail -100 /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log
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...

Last edited by Habitual; 01-12-2014 at 08:46 AM.
 
Old 01-12-2014, 08:48 AM   #22
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
So is this the one you cloned? Please close your other thread, they are the same case.
 
Old 01-12-2014, 11:27 AM   #23
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ericson007 View Post
So is this the one you cloned? Please close your other thread, they are the same case.
NO... this is the one I WANT to clone, after this is fixed. Its two different issues.
 
Old 01-12-2014, 11:31 AM   #24
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
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
Code:
cp -pr /var/jegas/code/git/carsonroselive/crm/ /var/jegas/code/git/carsonroselive/crm.save
chmod apache:apache -R /var/jegas/code/git/carsonroselive/crm/
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
Code:
tail -100 /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log
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 ~]#
 
Old 01-12-2014, 03:37 PM   #25
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
My bad, that should be
Code:
chown apache:apache -R /var/jegas/code/git/carsonroselive/crm/
Sorry, (good thing we made a copy.save)
 
Old 01-13-2014, 07:27 AM   #26
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by Habitual View Post
My bad, that should be
Code:
chown apache:apache -R /var/jegas/code/git/carsonroselive/crm/
Sorry, (good thing we made a copy.save)
Still nothing
 
Old 01-13-2014, 07:37 AM   #27
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bradshaw79 View Post
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 ~]#
Code:
[root@vTiger ~]# ls -ltr /var/jegas/code/git/carsonrosetest/crm/logs
total 120
-rwxrwxrw- 1 root   asterisk      0 Nov 15  2010 todel.txt.txt
-rwxrwxrw- 1 root   asterisk 109578 Feb 25  2011 migration.log
-rw-rw-rw- 1 apache asterisk      0 Mar 17  2011 vtigercrm.log
[root@vTiger ~]# vi /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log <--- shows an empty file.



When i try to look at the log:
Code:
[root@vTiger ~]# tail -100 /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log
[root@vTiger ~]# tail -100 /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log
[root@vTiger ~]# tail -100 /var/jegas/code/git/carsonrosetest/crm/logs/vtigercrm.log
[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.
 
Old 01-13-2014, 07:47 AM   #28
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
Is there somewhere I can put a "bounty" on this? I really have to get this working today...

I cant believe I screwed this up so bad!!
 
Old 01-13-2014, 08:03 AM   #29
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...8/#post5068976
 
Old 01-13-2014, 08:28 AM   #30
bradshaw79
LQ Newbie
 
Registered: Jan 2014
Location: Plano, TX
Distribution: Centos
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Jeez... thats expensive just to post it...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID1: Urgent.. Two disks out of sync... how to get them back in sync? tkalfaoglu Linux - Server 1 10-18-2013 03:42 AM
Urgent Help for bounce back tracking : Postfix/Amavisd-new/Mysql with Vitual domains jyotirtest Linux - Server 1 03-03-2011 04:57 AM
LXer: Open source CRM meets SaaS CRM LXer Syndicated Linux News 0 10-05-2006 10:54 AM
Back up tape drive urgent spilotro47 Linux - Hardware 17 06-06-2005 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration