51
gruessle
Re: own server == / != phpsuexec 777 / 755
  • 2005/12/3 20:08

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Wait i might have gotten that wrong, it is mostly running as nobody just one time as root, see below
And it a centOS box

root@server [/]# ps aux|grep apache
root     27135  0.0  0.0  2668  908 pts/0    T    00:55   0:00 /usr/bin/perl /scripts/easyapache
root     27154  0.0  0.0  2020  804 pts
/0    T    00:55   0:00 sh buildapache.sea
root     27208  0.0  0.0  2788  988 pts
/0    T    00:55   0:00 /usr/bin/perl ./buildapache
root     24473  0.0  0.0 13148 1268 
?        S    02:31   0:02 /usr/local/apache/bin/httpd -DSSL
nobody    8682  0.2  0.1 20400 5964 
?        S    03:27   1:26 /usr/local/apache/bin/httpd -DSSL
nobody    8683  0.2  0.1 20312 4064 
?        S    03:27   1:40 /usr/local/apache/bin/httpd -DSSL
nobody    8684  0.3  0.1 20280 7176 
?        S    03:27   2:09 /usr/local/apache/bin/httpd -DSSL
nobody    8685  0.2  0.2 20388 8224 
?        S    03:27   1:34 /usr/local/apache/bin/httpd -DSSL
nobody    8686  0.2  0.1 19988 5756 
?        S    03:27   1:46 /usr/local/apache/bin/httpd -DSSL
nobody    9911  0.2  0.1 20464 6260 
?        S    03:32   1:25 /usr/local/apache/bin/httpd -DSSL
nobody    9915  0.2  0.1 20284 8108 
?        S    03:32   1:36 /usr/local/apache/bin/httpd -DSSL
nobody   13152  0.3  0.0 20200 3600 
?        S    03:43   2:05 /usr/local/apache/bin/httpd -DSSL
nobody   13472  0.1  0.1 21200 7388 
?        S    03:44   1:21 /usr/local/apache/bin/httpd -DSSL
nobody    1464  0.4  0.1 20952 7668 
?        S    06:02   2:32 /usr/local/apache/bin/httpd -DSSL
root     22994  0.0  0.0  1408  148 pts
/0    D    15:09   0:00 grep apache
root
@server [/]#
Grüssle
......

http://www.vmclinks.com



52
gruessle
Re: own server == / != phpsuexec 777 / 755
  • 2005/12/3 19:30

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


gediminasbyt wrote:
Quote:
There are couple steps for it. Check as what user apache is running by issuing a command:

ps aux|grep apache

First column on left will show as what user apache is running. Most of the time it will be apache.

Go to your XOOPS install directory and issue:

ls -al

It will show something like:
drwxrwxrwx 13 username1 username2 4096 Nov 1 14:23 directoryname
(P.S. username2 is the owner of those files)

If username1 is not the same as in previous command then go to your XOOPS install directory and issue this command:

chown -R usernameinstep1 *

if you want to change the owner of the files then you do

chown -R usernamestep1:usernamestep1 *

Gediminas


This is a major thing so I like to make sure I understand you right.

I checked
ps aux|grep apache
first on my local linux box then on my hosted server. On my hosted server apache is running as root. Is it still save do do this?

Following would change all folders to be owned by root
chown -R root *
and this would change all files to be owned by root, right?
chown -R root:root *

Let me see if I understand this right.
If I transfer ownership of folders and files to what ever apache is running as then I can run cache and c_template as chmod 755 and don't have to run it as 777. Is this correct?

Now my understanding why people install phpsuexec is. They want to prevent users in a shared box to access each others php files. phpsuexec needs much more cpu resourses so if you don't have shared hosting it is better to run with out phpsuexec, right?


I could go on with quetions but if don't want to over due it.

Thank for your help
Grüssle
......

http://www.vmclinks.com



53
gruessle
Re: What is this Sugarcrm? And why cant I use my admin panel?
  • 2005/12/3 8:26

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Here is how I do it


I log in with ssh and search all the files for a string like sugarcrm1. You probably just find one file.
If you don't know how to login like that you can just download all the files on to your computer and do a search with in the explorer. Make sure you add your search word in to the box where it says "search with in the file" or something like that.

anyhow delete what they have added or replace the file with an original and you are ready to go.
Grüssle
......

http://www.vmclinks.com



54
gruessle
Re: Hosting multiple sites
  • 2005/12/3 7:14

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


wtravel is totaly right. Pay a bit more each month rather then one time big upfront.
This keeps you in control otherwise your host is in control.
Grüssle
......

http://www.vmclinks.com



55
gruessle
Re: Hosting multiple sites
  • 2005/12/3 6:59

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I been around for 5 years here at XOOPS you can check that.

I have my own server and I am not a host but I can give you the same deal.
For me it isn't business this is my hobby, it's fun.

What you don't get with me is
Fantastico / But I'll install XOOPS for you if you like.
PostgreSQL / You probably better off as beginner with mySQL anyway
Dedicated IP / I rather don't give you one because I don't wont you to play with IRC stuff and other then that you don't need one.

Your advantage, you will be on a real fast server, we have Dual AMD Opteron 244 and you know I am here to stay.
Grüssle
......

http://www.vmclinks.com



56
gruessle
own server == / != phpsuexec 777 / 755
  • 2005/12/3 6:07

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


The whole question is in the subject line.
I am now running XOOPS on a privat server
Do I need phpsuexec?
How bad is it to run cache and c_tamplate in 777. I know it' is bad. Is there another way?

cache and c_tamplate are theonly reason I need phpsuexec and if you know away to awoit it then please share it with me.

Thanks
Grüssle
......

http://www.vmclinks.com



57
gruessle
protector / PHP Warning: mysql_select_db()
  • 2005/5/13 15:15

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I found this in my error log, below is the line 43, 44, and 45.

Quote:

[23-Mar-2005 20:58:25] PHP Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/vmc/public_html/x/modules/protector/include/precheck.inc.php on line 22
[23-Mar-2005 20:58:25] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/vmc/public_html/x/modules/protector/class/protector.php on line 44
[23-Mar-2005 20:58:25] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vmc/public_html/x/modules/protector/class/protector.php on line 45
[23-Mar-2005 20:58:48] PHP Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/vmc/public_html/x/modules/protector/include/precheck.inc.php on line 22
[23-Mar-2005 20:58:48] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/vmc/public_html/x/modules/protector/class/protector.php on line 44
[23-Mar-2005 20:58:48] PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vmc/public_html/x/modules/protector/class/protector.php on line 45

===================================
Fist line is Line 43
// Preferences (for performance, I dare to use an irregular method)
    
$result mysql_query"SELECT conf_name,conf_value FROM ".XOOPS_DB_PREFIX."_config WHERE conf_title like '_MI_PROTECTOR%'" $conn ) ;
    if( 
mysql_num_rows$result ) < ) return false ;
    
$this->_conf = array() ;
    while( list( 
$key $val ) = mysql_fetch_row$result ) ) {
        
$this->_conf$key ] = $val ;
    }



58
gruessle
Re: Multi-sites - help me test it properly?
  • 2005/5/13 6:01

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


If I have 2 or more sites and a user registers on one site. How can I enter him/her in to a group depending on, which site he registered from?

I found this but don't know how to make it work.

<? //Get member handler
$member_handler =& xoops_gethandler('member');

//Add user to group
$member_handler->addUserToGroup($groupid, $uid); ?>



59
gruessle
Re: S & S using Xoops
  • 2005/4/21 21:01

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


S & S is a famous and big company would it be a good thing if someone from XOOPS would point that out to them?
There could be a job there too!



60
gruessle
S & S using Xoops
  • 2005/4/21 14:10

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Seams S&S Cyclehttp://www.sscycle.com is using XOOPS but it also seams that they are having problems with it.




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 31 »



Login

Who's Online

148 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 148


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits