Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







How To Know Which Mode Php Run


how to know in which mode php running ? CGI or ISAPI


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
PHP In Apache Mode
I currently have one server running PHP in suPHP mode. One of my friend told me that if i change the PHP to Apache Mode, this would decrease my server load a lot and thus give more performance.

Anyone can tell me what mean changing PHP to Apache mode? Is that something i can do from WHM? Will this affect the domains currently hosted on my server?

View Replies!   View Related
PHP Safe Mode On Or Off
What is the best option in the php setting does keeping the php function safe mode on or off?

View Replies!   View Related
Php Safe Mode
i need to enable php safe mode on for my joomla and i came across this

Quote:

When the php safe mode is turned off globally by default at our server end, you can still override the setting to turn it ON for only your domain by just insert the following line inside the ".htaccess" file (at Linux server):

Code:

php_value safe_mode "1"

my joomla .htaccess file:

Quote:

##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

View Replies!   View Related
PHP Safe Mode
I would like to know as to whether or not you have php safe mode turned on? If you do, please specify why, and would you allow your clients to turn it off?

View Replies!   View Related
PHP Safe Mode - On Or Off
I searched but couldn't find much - should you run PHP with safe mode on or off on a shared (Linux) server?

View Replies!   View Related
Php Safe Mode OFF And Security
I have found on one webhost that they have very cool feature:

Here is what they say:

Quote:

Browsing through any webhost related forum will reveal that giving safe mode off poses extreme security risk to the server. Because it offers hackers a great advantage to access any other members account or read their sensitive files which usually contain passwords.

But then some genuine scripts won't work with safe mode ON. Meaning you could turn it on per member requests but that takes lots of labor.

So we completely reprogrammed the safe mode PHP source code and recompiled it. As a result ours safe mode OFF is light-years safer & hacker-proof then standard PHP v5 safe mode ON.

So all our members are getting safe mode OFF, with harder security then those hosts who offer Safe Mode ON.

So now I am wondering, how they did that? I have searched forums and Google for lots of different keyword but haven't found anything.

I believe a lot of you running Apache as nobody and having php save mode OFF. It there any way you protect yourself? phpsuexec is not a solution now as it increasing load.

View Replies!   View Related
Apache Mode PHP Software Testing
For the purpose of software testing, I'm looking for the cheapest possible web host which provides:PHP 5 in apache mode, without suPHP (this is primarily what I'd like to test -- I already have a host with suPHP) PHP's ftp extension MySQL

either fopen URL wrappers enabled or CURL (or both)

I don't care if it doesn't support domain names, has 50% uptime, is really slow and has a 100mb monthly transfer cap. Just need to check that new releases of my scripts work right on it. (Setting up an FTP server on my desktop seems too much trouble and unnecessary danger.)

View Replies!   View Related
PHP Safe Mode Local Stays On, But Global Off
I've recently upgraded from Shared hosting to a VPS. I'm currently getting my new VPS setup before migrating my site over. On my shared server, both the global and local safe_mode directives were reported as off by php_infO(). On ym new server, the global is reported as off, but local is reported as on.

On my old server, the PHP was version 4.4.9 running as a CGI. On my new server, PHP 5.1.6 is running as an Apache 2.0 Handler.

I have already set safe_mode to off in my global php.ini file (hence why global is reported by off). However, I have no local php.ini files, htaccess files, or php directive settings in place, so I cannot figure out why local is set to on!

I've tried editing httpd.conf to include "php_admin_flag safe_mode Off", though I'm not certain I put it in the right place. There is only one website on this server.

With the CGI php on my old server, I was able to create a local php.ini file to overwrite global directives, but that seems to have no effect with the Apache Handler on my new server.

View Replies!   View Related
How To Secure Your Php.ini File Safe Mode ; Disable_functions ; Etc
what are the most important issues for secure php.ini file like when you turn your SAFE_MODE ON or OFF?

or please who every read this topic to post his important disable_functions in php.ini ... and if some functions disable to post it ...

let's make this subject for the most important issues for secure your php.ini

from script-kids as we can ...

here i have some important question's for anyone has or controlling a server ; vps ....

#0x01 ; what the most important disable_functions for the php.ini?
#0x02 ; is the safe_mode should be enabled? or disable? and this depend on what exacly?
#0x03 ; what the functions or any trick to control the nobody ( attacker on the server or shell ) FROOZ .... didn't move ? or make any command in the server ...
#0x04 ; i saw in some secure server ( as they say ) they changed the Server : discribe to them name[s] like
Server : SECURE BY US .COM OR SECURE SERVER ..
uname -a : Linux secure.secure.com 2.6.9-023stab040.1 #1 Mon Jan 15 23:24:32 MSK 2007 i686 athlon i386 GNU/Linux
sysctl : linux 2.6.9-023stab040.1
Server : SECURE BY US ! < [THIS WHAT I MEAN HOW COULD WE CHANGE IT IN PHP.ini ?]
id : uid=99(nobody) gid=99(nobody) groups=99(nobody) <[how can we cannot make this nobody to have the host id ! everyhost in the server should have his own name and php.ini ?]
pwd : /home/host/public_html/
#0x05 ; how can we hide the uname -a on the shell [ the attacker upload it to our customer site !]
#0x06 ; how can we hide the sysctl to view to anyone like [ attacker ] ...
#0x07 ; how can we rewrite on he Server Type the display for our secure message?Server : SECURE BY US !
#0x08 ; how can we give evey site and customer his php.ini file in his public_html? and how can we give him [ JUST HIS PERMISSION TO HIS SITES FOLDER AND NOT OTHER PATHS AND PERMISSION!]

these question every one had a server ; vps , need to know and secure his box from other ...

and anyone would like to publish any new [secure or not] idea please let us know what you would like to say ....

View Replies!   View Related
Prevents Users From Overriding System Php.ini In SuPHP Mode
this is simple steps to Prevents users from overriding system php.ini in suPHP mode .... in CPanel servers

first : you must make sure that suphp is installed as default handler
than just edit your httpd.conf file or php.conf file ( will be better to use php.conf )

now add this line :

Quote:

suPHP_ConfigPath /usr/local/lib

or ( Zend )

Quote:

suPHP_ConfigPath /usr/local/Zend

if you need to use only php.ini config file :

Quote:

suPHP_Config /usr/local/lib/php.ini

View Replies!   View Related
Cron: How To Run Php File
My server with cPanel, I'd like run file http://domain.com/file.php at 0h00 everyday, I have set the Cron Job in cPanel :

Code:
0 0 * * * /usr/bin/ehpwget http://domain.com/file.php
but The cron is not working well

Code:
/bin/sh: /usr/bin/ehpwget: No such file or directory

Can any one please let me know how to run a php file with cron.
(as user or root)

View Replies!   View Related
Cron Run Php Scripts
I have my own server. I create php file for adding cronjobs. I checked /etc/cron.deny and /etc/cron.allow. both of them is empty so no problem. I execute the php script but nothing : I check with crontab -u user l and it told me no cronjobs for that user. When I access as root from ssh and try teh same command, it works fine. I don't understand how to fix that.

View Replies!   View Related
My Site Cannot Run Php Files
my site cannot run php files

move from server 1 to server 2

another site no ploblem move from server 1 to server 2 too

What ploblem i need fix this

here my site

[url]

View Replies!   View Related
Get PHP To Run On Windows Host
I want to get PHP to run on Windows webhost. The webhost is not able to run a simple PHP file with phpinfo() yet. Tech support says I can use .htaccess to get PHP to run.

What is the best way to setup PHP on Windows Host so that it can run Joomla?

View Replies!   View Related
How To Run PHP 4 And 5 In Ubuntu Without CGI
When we chose Symfony to implement [url], PHP 5 was needed but we only had PHP 4 installed in our Ubuntu hosting servers. We couldn¡¯t just migrate everyone to PHP 5 since some of client¡¯s applications were incompatible with PHP 5. Some tutorials were found online explaining how to run PHP 4 and PHP 5 simultaneously such as [url] and [url]but they all used CGI. As you probably know, CGI is not scalable and we needed to scale in PHP4 and PHP5 since we needed to server millions of hits in both configurations. The following are additional the requirements we had:

1. Run Apache

2. Use mod_php for both PHP versions.

3. Run eAccelerator with both PHP versions.

4. Use as many Ubuntu packages as possible to ease maintenance issues and easily deploy on multiple servers.

5. Use Ubuntu 6.06.1 LTS

The solution we came up with was to run Apache 2 with PHP 5 and run Apache 1 with PHP 4 on separate IPs. Ubuntu comes already with these packages. The only package we had to compile was eAccelerator. The following lists the steps taken to get this setup:

Apache 2 with PHP 5

* apt-get install apache2 libapache2-mod-php5 php5 php5-cli php5-curl php5-gd php5-mysql php5-dev make php5-mcrypt php5-imap
* vi /etc/php5/cli/php.ini and uncomment extension=mysql.so
* vi /etc/apache2/ports.conf and put Listen Your.IP.Goes.Here:80
* a2enmod expires
* vi /etc/apache2/conf.d/hosting
<VirtualHost *>
DocumentRoot /home/httpd/mainpage
ServerName mainpage.com
ServerAlias www.mainpage.com
Options Includes FollowSymlinks
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html index.htm
</VirtualHost># Cache images and javascripts
ExpiresActive on
ExpiresByType image/gif ¡°access plus 1 week¡±
ExpiresByType image/jpeg ¡°access plus 1 week¡±
ExpiresByType image/png ¡°access plus 1 week¡±
ExpiresByType image/x-icon ¡°access plus 4 week¡±
ExpiresByType application/x-javascript ¡°access plus 4 week¡±
ExpiresByType application/x-shockwave-flash ¡°access plus 4 week¡±
* cd /usr/local/src
* wget http://bart.eaccelerator.net/source/...-0.9.5.tar.bz2
* tar xjvf eaccelerator-0.9.5.tar.bz2
* cd eaccelerator-0.9.5/
* phpize5
* ./configure
* make
* make install
* mkdir /var/tmp/{eaccelerator4,eaccelerator5}
* chown www-data /var/tmp/eaccelerator*
* chmod 700 /var/tmp/eaccelerator*
* vi /etc/php5/apache2/php.ini and add the following:
zend_extension=¡±/usr/lib/php5/20051025/eaccelerator.so¡±
eaccelerator.shm_size=¡±0¡å
eaccelerator.cache_dir=¡±/var/tmp/eaccelerator5¡å
eaccelerator.enable=¡±1¡å
eaccelerator.optimizer=¡±1¡å
eaccelerator.check_mtime=¡±1¡å
eaccelerator.debug=¡±0¡å
eaccelerator.filter=¡±"
eaccelerator.shm_max=¡±0¡å
eaccelerator.shm_ttl=¡±0¡å
eaccelerator.shm_prune_period=¡±0¡å
eaccelerator.shm_only=¡±0¡å
eaccelerator.compress=¡±1¡å
eaccelerator.compress_level=¡±9¡å

Apache 1 with PHP 4

* apt-get install libapache-mod-php4 php4-mysql php4-gd apache-ssl apache-common libzzip-0-12 php4-common php4-dev apache
* dpkg-reconfigure apache and uncheck mod_userdir and check mod_php4 and cancel on hostname
* vi /etc/apache/httpd.conf and make sure to add this
Listen Your.SECONDIP.Goes.Here:80
NameVirtualHost *# Cache images and javascripts
ExpiresActive on
ExpiresByType image/gif ¡°access plus 1 week¡±
ExpiresByType image/jpeg ¡°access plus 1 week¡±
ExpiresByType image/png ¡°access plus 1 week¡±
ExpiresByType image/x-icon ¡°access plus 4 week¡±
ExpiresByType application/x-javascript ¡°access plus 4 week¡±
ExpiresByType application/x-shockwave-flash ¡°access plus 4 week¡±Remove the following
<IfModule mod_alias.c>
Alias /icons/ /usr/share/apache/icons/

<Directory /usr/share/apache/icons>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Alias /images/ /usr/share/images/

<Directory /usr/share/images>
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_alias.c>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin/>
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
</IfModule>

Change
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride All
</Directory>
ServerSignature Off
ServerTokens Prod
* cd /usr/local/src
* rm -rf eaccelerator-0.9.5
* tar xjvf eaccelerator-0.9.5.tar.bz2
* cd eaccelerator-0.9.5/
* phpize4
* ./configure ¨Cwith-php-config=/usr/bin/php-config4
* make
* make install
* vi /etc/php4/apache/php.ini and add the following:
zend_extension=¡±/usr/lib/php4/20050606/eaccelerator.so¡±
eaccelerator.shm_size=¡±0¡å
eaccelerator.cache_dir=¡±/var/tmp/eaccelerator4¡å
eaccelerator.enable=¡±1¡å
eaccelerator.optimizer=¡±1¡å
eaccelerator.check_mtime=¡±1¡å
eaccelerator.debug=¡±0¡å
eaccelerator.filter=¡±"
eaccelerator.shm_max=¡±0¡å
eaccelerator.shm_ttl=¡±0¡å
eaccelerator.shm_prune_period=¡±0¡å
eaccelerator.shm_only=¡±0¡å
eaccelerator.compress=¡±1¡å
eaccelerator.compress_level=¡±9¡å

View Replies!   View Related
Can't Run PHP Stable With Versions Above 5.0.3
Windows 2003
IIS6
PHP 5.0.3 and PHP 5.2.1 running with the ISAPI dll
MySQL 5.1.11

I kind of have 2 problems, the first being the one in the thread title and the second is while running any version of php my main site experiences slowdowns and hangs.

For some reason whenever I try to install a new version of PHP I have major problems. I have tried several times when new versions come out. I just recently tried the newest, 5.2.1, which I want to try and use, I think there are performance improvements for IIS and windows platform in the new 5.x versions?

Anyway I can install 5.2.1 and get it running, and my sites load, but soon after my main site starts to hang, stops loading or loads extremely slow. I can't figure it out. I even tried using the exact same PHP.ini settings from my old working php install.

So everytime I am forced to go back to the latest version that I know works with my server/sites, 5.0.3 [url]

If I restart IIS the pages start loading fast again right after, even recycling the worker process that the site uses usualy makes the pages load normal again.

I tried setting the worker process to recycle every 60min and to use 2 web gardens. These changes havn't really had any affect for better or worse.

Downgrading back to PHP 5.0.3 seems to run a bit more stable, but even with this version I get these slowdowns now. I have been running my site(s) on this server for 3 years now and most of the time they have ran stable.

--------------------------------------------------------

I was sleeping this morning and recieved a text-message saying the site wasn't loading. So I wake up and the site indeed was pretty much not loading at all. I look at permon that I left running to see this: [url]

I give IIS a restart, which you can see above, then the levels go back to normal, here is a screen shot a couple minites later to what the "Current Connections" graph usualy looks like when the site loads fine. [url]

During this slowdown the CPU usage was not maxing out, was maybe averaging 60% and ram was 50%. I am getting a 2nd server soon to off-load the MySQL to it and have it dedicated for that. But i don't think that will help this current issue. Here is the system resources when the site is loading fine: [url]

I have around 40 or so other sites hosted on IIS and my main site "canadaka.net" which is purple on the top graph, is the only one that hangs or slowsdown. When this slowdown happens to this site, all the other sites on IIS, which are on a seperate worker process, continue to load fine.

I can't figure out why these slowdowns are happening.

View Replies!   View Related
Crontab To Run PHP [without Using Wget And Lynx]
Hello, I don't know how to use crontab to run PHP without using wget and lynx

1) The PHP script can run via SSH command line mode without problem
2) I can use crontab to run the PHP script with wget or lynx.

However,

3) The script will not run if i using below entry

1 2 * * * php /path/to/script/crontest.php
1 2 * * * php -q /path/to/script/crontest.php
1 2 * * * php -f /path/to/script/crontest.php

1 2 * * * /usr/local/bin/php - /path/to/script/crontest.php
1 2 * * * /usr/local/bin/php -f /path/to/script/crontest.php
1 2 * * * /usr/local/bin/php -q /path/to/script/crontest.php

View Replies!   View Related
Force PHP Not To Run On 777 Folder
how to force that the PHP files won't run if the folder permission is 777

I saw this in micfo.com

but I want to know how to do this

View Replies!   View Related
How Can We Make PhP Run On Html Pages
How can we make PhP run on html pages?

View Replies!   View Related
Configuring Apache To Run Php Without Shebang Line
I posted this problem in the PHP forum without a response. I thought this forum might be better.

View Replies!   View Related
IIS - Make PHP Run With .html Extension
I know nothing about IIS as I ormally use Linux / Apache so I'm not sure this is possible.

I have built a site in PHP that the client now wants to move over to a IIS-hosted server. Although it's all in PHP because it was a re-build of an old static site I used ModRewrite to make all the page .html.

I know IIS doesn't have a URL rewrite feature as such. What I was wondering is, is it possible to configure IIS so that a PHP page can have a .html extension?

View Replies!   View Related
Prevent Php Script Run As .gif Or .jpg
Does anyone know how to prevent some shell, php script change file name from file.php to file.jpg or file.gif and upload to server and run it to attack server?

View Replies!   View Related
Cheap Reliable Server That Can Run PHP/MySQL With Plesk
I currently have a decent server that runs around 10 websites, but 1 of those sites contributes around 99% of the total traffic. This large site is being moved onto a new server, leaving the remaining 9 sites rattling around on this big (and expensive!) server.

So, I am now looking for a smaller server to handle the other smaller sites. They get minimal traffic - around 5k uniques a day.

View Replies!   View Related
Changing Register_globals From .htaccess Will Cause 500 Error When Php Run As CGI
Today I have a customer want to swich the register_globals on on his account ,,, i'm running PHPSuExec and running php as cgi not as Apache module , and as you know using php as cgi will cause internal error 500 if some one add php_flag register_globals on
to .htaccess file.

what is the soluation to switch register_globals on for his account only without using the .htaccess file.

put in mind the php files that need the register_globals to be on is encrypted with zend , so we does not have access to it for modification.

have any one have the solution?

View Replies!   View Related
Run Php4 For .php4 Files And Php5 For .php [httpd.conf]
First off my error: apache force downloads .php4 files

Background:
Im attempting to run php4 and php5 at the same time. I had php 5 installed with the server when I got it.

I have installed php 4 from the source like this:

Code:
./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/PHP4 --without-mysql
I then copied the php.ini file to /PHP4/php.ini

In my httpd.conf Im loading and adding both php 4/5 modules like so:

Code:
LoadModule php4_module libexec/libphp4.so
LoadModule php5_module libexec/libphp5.so

AddModule mod_php4.c
AddModule mod_php5.c
Then later in the httpd.conf Im trying to tell apache to handle .php4 files with PHP 4 and .php with PHP5

Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php4 .php4
I restarted apache to load the new conf. .php files still use PHP5, but for some reason .php4 files are being downloaded, not running with PHP 4.

If I use htaccess to application/x-httpd-php4 php, .php files also force download. What am I missing?

View Replies!   View Related
Safe Mode On Or Off
Should i switch safe mode on or off . Right now i am using it as on some one told me if i switch it off then server can easily hack but becoz i switch it on im having too much problem specially users of sites having problem of uploading and wordpress also have issue and some more script what you say what should i do?

View Replies!   View Related
How To Safe Mode On/off
how can i make "safe mode on/off" using .htaccess?( in SharedHosting )

View Replies!   View Related
Safe Mode For A Domain
i have a cpanel server.. can any one tell me how to allow safe mode to a specific domain?

View Replies!   View Related
How To Enable Phpsafe Mode
how to change phpsafe mode into "off" in cpanel hosting account since Whole server setting is "on" in phpsafe mode? I need for chage it to "off" as reguler cpanel user.

View Replies!   View Related
Safe Mode VPS
I have a script that needs safe mode off to run, the script writers have said safe mode is disabled as default and not required and even disabled in php 6

Now I'm not to fimular with Safe mode, all I know is most scripts are wrote to work with this on

View Replies!   View Related
Mode Rewrite Is Not Working.
I have got a dedicated from 1and1. I could not get it working.

I tried the same htaccess with godaddys hosting, it worked fine.

Code:

RewriteEngine On
RewriteRule ^(index*).html$ /index.php [L]
RewriteRule ^(aaa*).html$ /aaa.php [L]

#php_flag register_globals off
I do not want to send them e-mail because it takes ages to get the answer.

What can it be wrong.

I get 404 error.

View Replies!   View Related
AWBS Vb Safe Mode
To Install www.awbs.com scripts to my server

How Can I Do This Following to one site on My server

safe_mode Off
allow_url_fopen On
session.auto_start Off

tell Me that i can do that from httpd config

View Replies!   View Related
Changing Binary Mode
I have upload the flashchat scripts on server. Its asking the files to change binary mode.

Files uploaded in binary mode (MD5 cd169d413452620389b2b30e6a902b10)No

to change files the binary mode in shell prompt.

View Replies!   View Related
Safe Mode OFF And Open_basedir Set...
I am going to run a free host, yes I know I should post this in FWHT but well, they dont answer very fast if at all.

It is very dangerous to have Safe Mode OFF on a free host, but someone was telling me about open_basedir, which makes it so they cant touch any files set outside of open_basedir. Would this be suffiecient to keep them from touching others files? I know I need to disable other functions like exec() and stuff but would open_basedir keep hackers away from others files and hacking them...

View Replies!   View Related
FTP Passive Mode Ports
what are the inbound and outbound ports when FTP Passive mode is used for PureFTPd.

View Replies!   View Related
Single User Mode And Reboot
I would like to run fsck in boot up. How can I run it? Please let me know.

It is centos and I clicked E and it came up to edit grub file, I am not sure how it needs to look.

View Replies!   View Related
How Can I Secure Server Without Safe Mode
i have vps and i enable the safe_mode , but now i need to turn it off becouse i need to install image uploader script and this script need safe mode off to work

so,

what can i do to secure my server while i turn off my safe mode?

what can happend if i turn off safe mode?

what is the job of safe mode?

View Replies!   View Related
ManageMyServices... Run.. "Forest" Run
Server been down over 14 hours..... over 50 sites down.... standard response within a few hours... we will reboot your server within the next 30 min. Sites come up for 3 minutes then down again.... Resubmit ticket... few hours later.... same response... reboot server.... same result... server still down.

Last ticket submitted over 3 hours ago.... no response...server still down. No phone number... Hard to believe anyone would run a business in this manner, knowing peoples livelyhood depends on their sites being up.

View Replies!   View Related
CSF Setting --- Enabled But In Test Mode
i has setup CSF

and all things Ok

but i dont know to make any setting for CSF

ITs now

Firewall Status: Enabled but in Test Mode - Don't forget to disable TESTING in the Firewall Configuration

View Replies!   View Related
Enabling DMA Mode On IDE Drive
I cannot enable DMA mode on /dev/hda when attemping to enable it via ssh

Code:
hdparm -d1 /dev/hda
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

Code:
hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 1632 MB in 2.00 seconds = 814.90 MB/sec
Timing buffered disk reads: 8 MB in 3.42 seconds = 2.34 MB/sec
I am running CentOS 4.7 and cPanel 11. cPanel also shows DMA is not enable on this drive. Kernel: 2.6.9-78.0.13.ELsmp

Code:
cat /boot/config-2.6.9-78.0.13.ELsmp |grep DMA
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_HPT34X_AUTODMA is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_PDC_ADMA=m

Code:
hdparm -i /dev/hda
/dev/hda:
Model=WDC WD2500JB-00REA0, FwRev=20.00K20, SerialNo=WD-WMAN542173
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: device does not report version:
* signifies the current active mode

View Replies!   View Related
3 75GB HD In R5 Mode. Add A 4th One To The System?
I have 3 75GB HD in R5 mode. Can I add a 4th one to the system?

View Replies!   View Related
Max Load Of HP 2848 In Layer 3 Mode
From the real experience, how many mbps can it process in layer3 mode with 10-20 VLANs?

View Replies!   View Related
Ext3 Writeback Mode W/ RAID BBU
what are peoples opinions on running ext3 in writeback journal mode when the filesystem resides on a BBU (battery backup unit) RAID array. The BBU retains data cached on the RAID card, but all the delayed writes from writeback mode may not even have gotten to the RAID card. Am I correct on that logic?

View Replies!   View Related
How To Change Root Psswd In Rescue Mode
First time logging in rescue mode, so I'm a little bit confuse, how to change the root passwd?

View Replies!   View Related
LVM With RAID1 In Text Mode Centos Installation
How can config LVM with RAID1 in text mode centos 5.3 installation?

I need to do it for xen installation.

View Replies!   View Related
Stop Exploits And Malicious Execs: Safe Mode
I decided to apply PHP safe mode to my servers, considering:

- I cannot prohibit using exec functions (some binary uses are needed, like host, mysqldump, etc..)

- I cannot restrict at all via UID/GID method at bins due to several problems..

Safe mode is the final sollution, as I only need "safe_mode_exec_dir" config to set a folder with the necesary binaries... this will stop nobody user (Apache) to exec whatever it wants, like perl, binaries uploaded to an public insecure folder (exploits), or anything else... people only could exec() the binaries I want and where I want. This will stop finally 95% of my hack problems.

Well. The problem is safe_mode is enabled or not, but you cannot set o disable certain features of this safe mode, like UID/GID checks (*******!)...

I am trying to configure so only "safe_mode_exec_dir" would apply, so:

- Including UIDs checks disabled by:
safe_mode_include_dir = "/home/"
(tested)

- Some variables set to NULL, as safe_mode_allowed_env_vars or safe_mode_protected_env_vars...

- safe_mode_exec_dir = "/usr/phpbin/"
Great! with symbolic lynks in... the best sollution available for me.

- open_basedir = "/home/"
(for fopen, etc...)

Ok ok.. but problems there.. by example this one:

Quote:

Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 32015 is not allowed to access cache/dynamic_fields/modules.php owned by uid 99 in /home/yyyyyyyyy/public_html/chn/modules/DynamicFields/DynamicField.php on line 823

Great.. fopen is under UID/GID checks, but it is not an include, so safe_mode_include_dir would not apply...

Now fopen, link, unlink, etc.. functions are UID restricted and this seems to be impossible to disable.... pffffffff...

can you share your safe_mode configs or sollutions for this problem?

View Replies!   View Related
Kernel: CPU1: Running In Modulated Clock Mode
I'm trying to upgrade from php 5.2.0 to 5.2.2 but for some reason I receive the following errors:

/scripts/easyapache

Quote:

make [@php-5.2.2]...(-j 2 clean)....Done
make [@php-5.2.2]...(-j 2).................................
Message from syslogd@matrix at Sat Jun 2 15:06:17 2007 ...
matrix kernel: CPU0: Temperature above threshold

Message from syslogd@matrix at Sat Jun 2 15:06:17 2007 ...
matrix kernel: CPU1: Temperature above threshold

Message from syslogd@matrix at Sat Jun 2 15:06:17 2007 ...
matrix kernel: CPU1: Running in modulated clock mode

Message from syslogd@matrix at Sat Jun 2 15:06:17 2007 ...
matrix kernel: CPU0: Running in modulated clock mode
..............
Message from syslogd@matrix at Sat Jun 2 15:06:31 2007 ...
matrix kernel: CPU0: Temperature above threshold

Message from syslogd@matrix at Sat Jun 2 15:06:31 2007 ...
matrix kernel: CPU1: Temperature above threshold

Message from syslogd@matrix at Sat Jun 2 15:06:31 2007 ...
matrix kernel: CPU1: Running in modulated clock mode

Message from syslogd@matrix at Sat Jun 2 15:06:31 2007 ...

Running cPanel/WHM, Centos.

I've never had the above before,

View Replies!   View Related
Windows- PHP Exploit Being Used To Render All PHP Sites Useless
This has been happening for about 6 months, someone has been exploiting my windows server and causing 300 php.exe processes to run, therefore making the CPU usage go to 100% and cause all php sites to not function. It is a perl script, and I had gotten ahold of the explot, but am unsure how to block it,

what the following is doing, and how to block it.. once I find the script again I will add it to the post..

I am using Plesk on my box.

View Replies!   View Related
Php Includes Issue On Linux Server With Apache 2.0.63 / Php 5.2.6
I am having some trouble with getting 'include' working. I have a new dedicated server running Apache 2.0.63 and PHP 5.2.6. Local includes on the same domain are running ok, but remote includes are throwing a problem. On the many sites we plan to host on this servber we use a central 'webmaster' page called as an include from a specific site (also on the same server).

I need to edit the PHP.ini and /or recompile the PHP with the appropriate modules to do one of the following...

1 (ideally) - allow includes from any site that is held on this dedicated server

2. allow includes from specified websites

3. simply allow remote includes

right settings to get one of these

options running and solve my problem?

View Replies!   View Related
Run An IDS?
For your network do you run an IDS?

Whats your reason?

Any issues?

What software do you run?

My current setup is Ethernet drop - m0n0wall - switch - servers.

I was thinking about building a server to run IDS behind the m0n0wall.

View Replies!   View Related
When Can I Run Fsck?
I've execute fsck in ssh environment. After that I got error:

kernel panic - not syncing : Attempted to kill init!
switchroot: mount failed No such file or directory

My action destroyed the OS?

View Replies!   View Related
Trying To Run A SHOUTcast
I bought a VPS a few days ago and I'm trying to run a SHOUTcast on it.

The VPS is Linux, CentOs to be more specific.

I've installed Shoutcast and it's running, It's working with WinAmp as the website I'm running it on tells me what song is currently playing, how many listeners there are, etc.

It also says:

Server Status: Server is currently up and public.

View Replies!   View Related
Run Out Of Swap
What would cause a Linux server to run out of swap? Would it be a memory leak? This happened today to my server and it had to be forcefully rebooted by the data center.

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved