suphp

How do I disable suphp on ubuntu 10.04 server

£可爱£侵袭症+ 提交于 2020-01-05 07:42:26
问题 I have put together a small ubuntu 10.04 server with apache2 and php for use only for testing purposes. I am finding suphp keeps getting in my way. Doubtless this is a useful tool for security etc, but right now, as this is only a local testing ground I would like to disable it to prevent it continually throwing errors relating to file ownership etc. So, as the title says: How do I disable suphp on ubuntu server 10.04. Thanks 回答1: a2dismod suphp -> to disable su php mod 回答2: instead of

suPHP setting user/group to virtual host and using docroot

故事扮演 提交于 2019-12-24 00:32:01
问题 I am trying to get suPHP working, i followed tutorials and seem to have it installed correctly. now my issue is this 1) i set docroot in the suphp.conf file, but its set to /var/www by default. The problem I have with this is that my domains are stored under another directory as well. So for instance i have my subdomains in one directory and my regular domains in another. So I get an error thrown to my browser telling me that a domain is resolving to a directory not in the configuration. 2) I

Is there any security with suPHP?

人走茶凉 提交于 2019-12-19 11:28:40
问题 I asked this question a while back and even though I put up several bounties, I never got much of an answer (see here). More generally, I want to know if there is any concept of security with suPHP? What's to stop anyone from going to www.example.com/rm-f-r.php or www.example.com/return_some_iamge.php Because those scripts get executed with the privileges of the user, it's essentially guaranteed acesss. EDIT To elaborate on the above, my problem is a conceptual one. Assume we have a file at

memory_limit = 1024M, still, Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp

↘锁芯ラ 提交于 2019-12-18 08:59:07
问题 I know that there is another question with a similar title/error, but i think this is a different problem. Context: Running wordpress 3.6.1, PHP 5.3.27, MySql 5.1.70, on a shared Linux host, 1gb Memory. .htaccess: suPHP_ConfigPath /home/[username]/public_html php.ini: memory_limit = 512M (I tried 2048M, 1024M, 32M, .. heck even -1) I also tried ( ini_set(/* all the values above, in the WordPress index.php */) ) I disabled ALL plugins, I even re-enabled one by one. I have about 300-400

Get meaningful information when fopen() fails (PHP/suPHP)

时间秒杀一切 提交于 2019-12-18 07:43:08
问题 How do I get something more meaningful than 'FALSE' when I can't open a file. $myFile = "/home/user/testFile.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); When I use the die statement, can't open file is returned to the client, and it is almost useless. If I remove it, no error is raised. If I return $fh it is FALSE . I tried both local file name and absolute file name. My index.html file is in one of the sub folders of my hole folder. Furthermore, I am using suPHP with the

Need help implementing PHP sessions in suPHP

最后都变了- 提交于 2019-12-01 12:26:21
问题 I asked this question before here but user CheekySoft pointed out that I was "asking how to implement my proposed solution " where instead I should just "state my problem and ask for solution ideas". So here goes. On the linux server I have the files set up like so /home ├── user1 │ ├── [-rwx------] index.html │ └── [-rwx------] index.php └── user2 ├── [-rwx------] index.html └── [-rwx------] index.php If I have Apache virtual hosts set up at <Directory /home/user1>` <Directory /home/user2>

Implementing log in alongside suPHP

我与影子孤独终老i 提交于 2019-12-01 04:35:48
How can a log in like feature be designed to use suPHP's file permissions. For example, if I have a website at www.example.com and the following two users with their own home directories, each with a php script test.php , and a validateUser.php script that belongs to another user (root, www-data, apache...) in the /home directory. /home/ ├── validateUser.php ├── user1 │ └── test.php └── user2 └── test.php user1 can access user2's script by visiting www.example.com/user2/test.php , and vice versa. Instead what I want, is to channel all incoming requests, using something like mod_rewrite , to

Implementing log in alongside suPHP

[亡魂溺海] 提交于 2019-12-01 01:57:11
问题 How can a log in like feature be designed to use suPHP's file permissions. For example, if I have a website at www.example.com and the following two users with their own home directories, each with a php script test.php , and a validateUser.php script that belongs to another user (root, www-data, apache...) in the /home directory. /home/ ├── validateUser.php ├── user1 │ └── test.php └── user2 └── test.php user1 can access user2's script by visiting www.example.com/user2/test.php , and vice

memory_limit = 1024M, still, Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp

房东的猫 提交于 2019-11-29 15:09:27
I know that there is another question with a similar title/error, but i think this is a different problem. Context: Running wordpress 3.6.1, PHP 5.3.27, MySql 5.1.70, on a shared Linux host, 1gb Memory. .htaccess: suPHP_ConfigPath /home/[username]/public_html php.ini: memory_limit = 512M (I tried 2048M, 1024M, 32M, .. heck even -1) I also tried ( ini_set(/* all the values above, in the WordPress index.php */) ) I disabled ALL plugins, I even re-enabled one by one. I have about 300-400 concurrent connection/users on the site at the same time, on average. I DO NOT have SSH access :/ I cannot

Get meaningful information when fopen() fails (PHP/suPHP)

≯℡__Kan透↙ 提交于 2019-11-29 13:46:16
How do I get something more meaningful than 'FALSE' when I can't open a file. $myFile = "/home/user/testFile.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); When I use the die statement, can't open file is returned to the client, and it is almost useless. If I remove it, no error is raised. If I return $fh it is FALSE . I tried both local file name and absolute file name. My index.html file is in one of the sub folders of my hole folder. Furthermore, I am using suPHP with the folder I am trying to write to having a permission of 0755 (suPHP requires this for all folders). How do I