VPS Config. To Much Stuff Running On It

Jul 1, 2007

I am about to order a new VPS, and will like to have php,mysql,ruby on it. the extra thing would be tomcat 5.

First of all, I don't think that any of the clients is going to use tomcat, but it would look nice to have it there.

the VPS is something like:
Cent OS
512 Mb ram with 1,5 Gb burst
30 Gb space

Should I get tomcat installed or not?

View 2 Replies


ADVERTISEMENT

Configure Your Stuff

Aug 1, 2007

This is a instructional overview thread for those developers who are getting into setting up their own server with a LAMP (Linux Apache MySQL PHP) setup. The linux distro referred to in this thread is a centOS (fedora|redhat) setup.

Before Anything

- Make sure that your actual RAM is the same amount that is displayed by the server (there could be some BIOS restrictions on RAM so check for that).

Linux OS Installation

- Use a server system for the type of install.
------------------------------
- Setup you partitions with care:
- Make sure that everything other than /swap is an ext3 partition type.
- /swap (usually double the amount of space that your ram has but never larger than 4 gigs.
- /tmp (700meg is ok).
- /boot (100meg is ok).
- / (leave rest of the available space in the harddrive for this).
------------------------------
- Use GRUB boot loader
- Use DCHP only if your IP address changes due to the network. If not, then assign the IP address of the box.
- Assign the netmask if DCHP is not in use.
------------------------------
- When setting up the packages, select only what you need. Most of the time it's better to just install no packages and then install everything you need by yum (yellowdog update manager). If you do not select any packages, only the 1st CD of the linux install will be needed.

Linux OS Customizing

- Create a new user and provide it a password (with # passwd). Do not create a user with a generic or commonly known names used in any daemon programs (ex. mysql, apache, admin, user, php, postgresql).
- Disable the ROOT login in SSH (this means that when you login using the other user with SSH, you'll have to $ su to the root user).
- Install "Development Tools" with yum using group install if you plan to compile your own apache. If not then install apache with yum install apache.

Apache Settings

- Disable the extensions that you're not using for your website. If the server is only hosting one website, then there is no use for Virtual Hosts.
- Set the ServerLimit value to a suitable value so that users won't get locked out of the website.
- Change the User and Group directives to the newly created user.
- Set Options +Indexes to Options -Indexes so that the contents of directories w/o an index file will not be displayed.
- Change the DocumentRoot setting to the newly created user's home (~) directory. Or if you plan to use the default (/var/www/htdocs or /var/www/html) then assign the permissions of the user to that directory.
- Add apache as a start up program when the operating system boots up (this can be set in /etc/rc.d/local).
- Setup logs accordingly. If you setup image logging and your server has 20+ images per page then your website performance can suffer.
- Setup Error Logs to a suitable level.
- If any web pages are not displaying and the web server appears to be on when accessing it from the localhost (wget http://localhost) then disable or flush the iptables (/usr/sbin/iptables --fliush). You should also set this as a start up option for the OS.
- Use mod_rewrite to use modern URLs.

MySQL Settings

- Use --skip-name-resolve.
- Use --skip-bdb (if you're not using it).
- Use --skip-innodb (if you're not using it).
- Set a log for slow queries.
- Set the max_connections to a high value.
- Do not set a user with a wildcard ip-address. Only setup users with a specific ip.
- Use Query Caching for frequently used queries.

PHP Settings

- Disable Magic Quotes.
- Disable Register Globals.
- Disable Short Tags.
- Disable ERROR REPORTING if the website is not in development mode.
- Enable HTTP Only Session Cookies.
- Set Session Cookies to only be cookies (and not URL's).
- If sessions do not work, then set the session save path to a directory where the apache user has access to.
- Use Gzip Compression.

Optimizing Concepts

- Use an optcode cache for PHP (Eaccelerator).
- Consider using a static domain for CSS and JS files (this way the same cookies for the website won't be sent on each request).
- If your website uses alot of CSS and JS files per page, bundle all of them together into one request using mod_rewrite and php [url]
- For Apache, use the lingerD module (this reduces the amount of resources that are used when an apache connection is closed).

Here are some links for optimizing your server build:

- [url]
- [url]
- [url]

View 1 Replies View Related

Colo Stuff Supplier

Nov 5, 2009

I am looking for a new supplier for colocation related stuff like shelfs, powercables, tyraps, etc etc. A shop which has most of the items which come in handy when you are in a datcenter.

Location does not really matter if they can ship :-)

Let me know where you get your stuff.

View 8 Replies View Related

Strange Stuff In /var/log/messages

Feb 19, 2007

Quote:

Feb 19 15:57:39 server proftpd[1363]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 16:06:02 server proftpd[1982]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 16:06:02 server proftpd[1982]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 16:14:24 server proftpd[2471]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 16:14:24 server proftpd[2471]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 16:22:46 server proftpd[3062]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 16:22:46 server proftpd[3062]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 16:31:09 server proftpd[3696]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 16:31:09 server proftpd[3696]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 16:39:31 server proftpd[4185]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 16:39:31 server proftpd[4185]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 16:47:53 server proftpd[4946]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 16:47:53 server proftpd[4946]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 16:56:16 server proftpd[5495]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 16:56:16 server proftpd[5495]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 17:04:38 server proftpd[6206]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 17:04:38 server proftpd[6206]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 17:13:00 server proftpd[6661]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 17:13:00 server proftpd[6661]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Feb 19 17:21:23 server proftpd[7225]: server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Feb 19 17:21:23 server proftpd[7225]: server.com (127.0.0.1[127.0.0.1]) - FTP session closed.

I see over a few hundred of these lines in /var/log/messages. The timestamp is exactly the same for every 2 lines (Proftp session- Opened and Closed). It's occuring every hour of the day. Is someone attacking the ftp daemon or something?

View 3 Replies View Related

A List & Anti-phishing Stuff

Dec 17, 2007

I don't know about security on servers much, and we're setting up our new server. I have the techs doing the install stuff, but I would love to know what to install security wise. My current list:

Firewall - good free one?
Antivirus - good free one?

rootkit, some way of stopping it (anti-rootkit?)

Also, is there some sort of script which searches all cPanel accounts/files for phishing sites or spam sites etc? I swear I've seen one before, in firewall form?

Oh the server setup is going to be:

php5-CGI, fCGI, mySQL 5, apache 2.2.x, centOS, ruby on rails, django, ioncube, other php libraries, mod_rewrite, I think thats everything. (cPanel).

View 4 Replies View Related

Security To Stop DDoS Attacks And Stuff

May 19, 2009

My host tells me that they have security to stop DDoS attacks and stuff, however today my server load jumped to 17.12 and my site went down giving me a "Network Timeout" error.

My host tells me it's my fault that I am using too many resources. The MOST my site has been on load is 3.06 and that was around lunch time a few weeks back. It's 11:43 and the server load is 17.12? I think my host is pulling my leg. I have not added ANYTHING new to my site and have not changed anything in 3 days. The load has been fine till today.

I use In Motion Hosting.

View 14 Replies View Related

Console Cable Pin Out For Extreme Networks Stuff

Jun 16, 2008

if anybody know the cable pin out on making a console cable using those serial adapters?

View 1 Replies View Related

"antinat" (proxy Stuff)

Feb 24, 2008

antinat.sourceforge.net -- this is suppose to be good for setting up socks5 proxies.

I need to set it up so that each IP needs a user/pass login..

View 5 Replies View Related

Best Config For My.cnf

May 5, 2009

Server :

Code:
Intel C2Q Q9450
8196 MB DDR2 RAM
500 GB 7.200RPM
2000GB Transfer p/m
OS: CentOS 5.2

Code:
running a ipb forum site 2.3.4
current stats :
Our members have made a total of 245,827 posts
We have 14,673 registered members
Total number of topics is 75099
with atleast 150 members online + 200guests.

what would be the perfect my.cnf config for this kinda of a server? Im running litespeed.

View 4 Replies View Related

Cannot Run /bin/sh ./config.sub

Jan 3, 2008

I am trying to install a newer release of APC PHP cache on our server that runs RHES-4 and PHP 4.3.9

I installed version 3.0.14 some time ago and now cannot install the new v3.0.16. When I run ./configure I get this:
Quote:

[root@xxxx APC-3.0.16]# ./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config
configure: error: cannot run /bin/sh ./config.sub

The baffling thing is that I also cannot now reinstall 3.0.14 as it shows the same error.

I also get this error if I try to install XCache.

View 4 Replies View Related

Awstats Config

Jun 4, 2009

I have tried to manually setup awstats on a website in Windows 2008 with IIS 7. The problem here is that I have to create two conf files for each website, one named awstats.sitename.conf and the other awstats.www.sitename.conf. If I don't do so, then awstats does not work on either www.sitename.com or sitename.com. I cannot update the stats or view it from the browser. I have a few Hosting controller servers in which awstats is used and I compared the conf file with them and there is no difference. I wonder what could be the issue.

View 1 Replies View Related

Backup Config

Oct 30, 2008

i have a dedicated server without any daily, weekly, monthly backup.
please help me (Step by Step)to setup configuration my server to take backup every day within (some account) at (3 AM).

i mean setting for every day about some account (A,B,C...Z) at the 3 AM

View 6 Replies View Related

How To Config My Domain

Mar 27, 2008

I have a domain, ex: hangnguyen.com at godaddy, I changed nameserver to ns1.everydns.net, ns2.everydns.net, ns3.everydns.net .

Now I order a shared hosting at bluehost, I should change nameserver to ns1.bluehost.com, ns2.bluehost.com to make it works .

But I want keep the nameserver ns1.everydns.net ....

So how I config my domain in everydns control panel to let my domain work on bluehost?

View 3 Replies View Related

BIND9 Config

Jan 20, 2008

Switching from Windows DNS to bind DNS. Slightly different as I have to learn the commands instead of using the GUI. Can you tell me if the below config is correct to run mydomain.net so people can access it from the web? It will also be acting as its own name servers. This is purely for external DNS. The private IPs will be changed to routable ones once its in the DC.

Have I missed anything or is that good enough for deployment to the live environment?

I have this in /etc/bind/zones/mydomain.net.db

; mydomain.net
$TTL 604800
@ IN SOA ns0.mydomain.net. admin.mydomain.net. (
2008012001 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800); Negative Cache TTL

; nameservers
mydomain.net IN NS ns0.mydomain.net
mydomain.net IN NS ns1.mydomain.net
ns0 IN A 192.168.1.15
ns1 IN A 192.168.1.16

;mail
mail IN MX 10 mail
mail IN A 192.168.1.17

; web
IN A 192.168.1.17
www IN A 192.168.1.17

And in /etc/bind I have this in my named.conf.local file

# This is the zone definition for // mydomain.net //
zone "mydomain.net" {
type master;
file "/etc/bind/zones/mydomain.net.db";
};

View 8 Replies View Related

How To Use/config NAMESERVERS

Oct 23, 2008

I have had many dedicated servers in the past but other people managed to configure them up.

I basicly want to host somedomain.com and somedomain2.com on a windows server that is located on XX.XXX.XXX.XX

The server has apache and php installed, which is just what I need. I am having an hard time configuring the domains I want to use on the server in order to make em "work" on the server.

View 4 Replies View Related

MRTG Config

Feb 20, 2007

I've installed MRTG, but am having problems making the config file, all I want to do is monitor the in/out bandwidth (2 graphs) on my own server, has anyone got an example file they could paste here?

View 3 Replies View Related

How To Config PhpMyAdmin

Aug 23, 2007

I am a newbie and now i am running a VPS account. I have some questions want to ask you
Where is the locate of phpMyAdmin?

I am running VPS server but get error when access to phpmyadmin.

Quote:

Wrong username/password. Access denied.

I created a user=root and passworld=xxx in my WHM.

How to find config.inc.php ?
- locate but error

Quote:

warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory

warning: You need to run the 'updatedb' command (as root) to create the database.

Please have a look at /etc/updatedb.conf to enable the daily cron job.

View 4 Replies View Related

Config For MYSQL3.23

Jan 11, 2007

Does someone know a basic or well config for mysql 3.23. I dont need something fancy just something that isn't what i have now (defaults).

Here is my current config. It sucks right? I have mainly forum websites and its alreaydu eating all RAM.

safe-show-database
innodb_data_file_path=ibdata1:10M:autoextend
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable=max_connections=300
set-variable=max_user_connections=10
set-variable=max_allowed_packet=1M
set-variable=thread_stack=128K
set-variable=key_buffer=128M
set-variable=table_cache=300
set-variable=record_buffer=8M
set-variable=back_log=100
set-variable=thread_cache_size=4
set-variable=sort_buffer=16M
set-variable=delayed_insert_timeout=150
set-variable=interactive_timeout=40
set-variable=wait_timeout=40
set-variable=connect_timeout=10

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

View 7 Replies View Related

Redundant Config

Mar 18, 2007

I've decided to move from managed hosting to colocated hosting and I'm in a bit over my head as far designing the server configuration goes. I'm looking for assistance with setting up a fully redundant configuration with no SPOF (single point of failure).

The colo provider ensures full redundancy to the cabinet, terminating with two network drops from diverse bandwidth providers and HSRP. I need to eliminate all SPOFs inside the cabinet.

Some questions...

1) I'm thinking of using the Cisco 2960 Series switch as the in-cabinet distribution switch. I believe it supports HSRP. From my understanding, the switch will automatically failover from one uplink to the other in case of a network problem on one of the uplinks, and this will all be transparent to any servers connected to the switch. Is this correct?

2) However, this introduces the switch as SPOF. So, I believe what I need to do is ask the colo for a second pair of network drops and deploy a pair of 2960's. Then I would connect each server to both switches via separate NICs. Is this correct?

3) Finally, assuming I am on the right track here, I would like this to all be transparent and automatic with no human intervention required to recover from a switch failure. The servers will be running RHEL 4. How would I configure the network interfaces on the servers so that they can transparently use either (or both) of the switches? Is there some way to assign the same IP address to more than one interface? How does the OS keep from getting confused about where to send the traffic?

Thanks in advance for any insight. I would also be happy to hear recommendations for excellent network consultants that I could hire to design and implement this configuration for me.

View 14 Replies View Related

Config PhpMyAdmin

Aug 23, 2007

I have a problem when i config config.inc.php file in my WHM . I don't know why share accounts can access to phpMyAdmin or create your database from cpanel .

This is a part of config.inc.php file

Quote:

/**
* Disable the default warning that is displayed on the DB Details Structure page if
* any of the required Tables for the relationfeatures could not be found
*/
$cfg['PmaNoRelation_DisableWarning'] = FALSE;

/**
* The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
* at least one server configuration uses 'cookie' auth_type, enter here a
* passphrase that will be used by blowfish. The maximum length seems to be 46
* characters.
*/
$cfg['blowfish_secret'] = '';

/**
* Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
// $cfg['Servers'][0]. You can disable a server config entry by setting host
// to ''. If you want more than one server, just copy following section
// (including $i incrementation) serveral times. There is no need to define
// full server array, just define values you need to change.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['ssl'] = false; // Use SSL for connecting to MySQL server?
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (valid choices: config, http, HTTP, signon or cookie)
$cfg['Servers'][$i]['user'] = ''; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['SignonSession'] = ''; // Session to use for 'signon' auth method
$cfg['Servers'][$i]['SignonURL'] = ''; // URL where to redirect user to login for 'signon' auth method
$cfg['Servers'][$i]['LogoutURL'] = ''; // URL where to redirect user after logout
$cfg['Servers'][$i]['nopassword'] = FALSE; // Whether to try to connect without password
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed in left frame
// It may also be an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['hide_db'] = ''; // Database name to be hidden from listings
$cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
// (see scripts/create_tables.sql)
// - leave blank for no support
// DEFAULT: 'phpmyadmin'
$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
// - leave blank for no bookmark support
// DEFAULT: 'pma_bookmark'
$cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
// - leave blank for no relation-links support
// DEFAULT: 'pma_relation'
$cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
// - leave blank for no display fields support
// DEFAULT: 'pma_table_info'
$cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
// - leave blank for no PDF schema support
// DEFAULT: 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
// - leave blank if you don't want to use this
// DEFAULT: 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info'] = ''; // table to store column information
// - leave blank for no column comments/mime types
// DEFAULT: 'pma_column_info'
$cfg['Servers'][$i]['history'] = ''; // table to store SQL history
// - leave blank for no SQL query history
// DEFAULT: 'pma_history'
$cfg['Servers'][$i]['designer_coords'] = ''; // table to store the coordinates for Designer
// - leave blank for no Designer feature
// DEFAULT: 'pma_designer_coords'
$cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables
// are up to date. This prevents compatibility
// checks and thereby increases performance.
$cfg['Servers'][$i]['AllowRoot'] = TRUE; // whether to allow root login
$cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
= '';
$cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
= array();

// If you have more than one server configured, you can set $cfg['ServerDefault']
// to any one of them to autoconnect to that server when phpMyAdmin is started,
// or set it to 0 to be given a list of servers without logging in
// If you have only one server configured, $cfg['ServerDefault'] *MUST* be
// set to that server.
$cfg['ServerDefault'] = 1; // Default server (0 = no default server)

/**
* Other core phpMyAdmin settings
*/
$cfg['MaxDbList'] = 100; // maximum number of db's displayed in left frame and databaes list
$cfg['OBGzip'] = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
$cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
$cfg['ForceSSL'] = FALSE; // whether to force using https
$cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
$cfg['MemoryLimit'] = 0; // maximum allocated bytes (0 for no limit)
$cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
// locked tables (since MySQL 3.23.30)
$cfg['ShowSQL'] = TRUE; // show SQL queries as run
$cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
$cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
$cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
$cfg['LoginCookieValidity'] = 1800; // validity of cookie login (in seconds)
$cfg['LoginCookieStore'] = 0; // how long login cookie should be stored (in seconds)
$cfg['LoginCookieDeleteAll'] = TRUE; // whether to delete all login cookies on logout
$cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
// or not
$cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues computing multiple-statement queries
// even if one of the queries failed
$cfg['VerboseMultiSubmit'] = TRUE; // if set to true, PMA will show the affected rows of EACH statement on
// multiple-statement queries. See the libraries/import.php file for
// hardcoded defaults on how many queries a statement may contain!
$cfg['AllowArbitraryServer'] = FALSE; // allow login to any user entered server in cookie based auth

// Left frame setup
$cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
// current tables in the left frame.
$cfg['LeftFrameDBTree'] = TRUE; // turn the select-based light menu into a tree
$cfg['LeftFrameDBSeparator'] = '_'; // the separator to sub-tree the select-based light menu tree
$cfg['LeftFrameTableSeparator']= '__'; // Which string will be used to generate table prefixes
// to split/nest tables into multiple categories
$cfg['LeftFrameTableLevel'] = '1'; // How many sublevels should be displayed when splitting
// up tables by the above Separator
$cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
$cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments
$cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_structure) instead of
// table/db names. Setting ShowTooltipAliasTB to 'nested' will only
// use the Aliases for nested descriptors, not the table itself.

$cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame
$cfg['LeftLogoLink'] = 'main.php'; // where should logo link point to
// (can also contain an external URL)
$cfg['LeftLogoLinkWindow'] = 'main'; // whether to open the linked page
// in the main window ('main')
// or in a new window ('new')
$cfg['LeftDisplayServers'] = FALSE; // display server choice at top of left frame
$cfg['DisplayServersList'] = FALSE; // server choice as links
$cfg['DisplayDatabasesList'] = FALSE; // database choice in light as links

// In the main frame, at startup...
$cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
// the pages about database details and table
// properties
$cfg['ShowPhpInfo'] = FALSE; // show php info link
$cfg['ShowServerInfo'] = TRUE; // show MySQL server information
$cfg['ShowChgPassword'] = FALSE; // show change password link
$cfg['ShowCreateDb'] = TRUE; // show create database form
$cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)

Some questions
--------------------------------------------------
$cfg['Servers'][$i]['controluser'] =?

$cfg['Servers'][$i]['controlpass'] =?

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

$cfg['Servers'][$i]['user'] =?
$cfg['Servers'][$i]['password'] =?

View 2 Replies View Related

Postfix Config

Jan 25, 2007

I'm having some SMTP server security issues. I am running Postfix on my Debian VPS and I am trying to disable Postfix from being publically used by anybody except those with webmail.

I read Postfix's configuration at Postfix.org, but I couldn't find anything that I thought to be relevent to this situation. Do any of you have suggestions or ways to fix this? Besides disabling e-mail all together?

As another detail, I'm running Postfix on its original config, not through a MySQL database config.

View 1 Replies View Related

New Apache Config

Oct 6, 2007

ive just upgraded to Apache 2.2.6 today and ive found a problem. Im trying a new way of doing mass virtual hosting using mod macro.

<Macro vhost $domain $path>
<VirtualHost *>
VirtualDocumentRoot "$path/Web/"
ServerName $domain.spkweb.com
ErrorDocument 404 "drive:/folder/404.php"
php_admin_value open_basedir "$path/Web/;$path/Temp/"
php_admin_value upload_tmp_dir "$path/Temp/"
<Directory "$path/Web/">
Options FollowSymLinks
AllowOverride all
Allow from all
</Directory>
</VirtualHost>
</Macro>

Use vhost DJSmithy "drive:/Hosting/DJSmithy"

Mostly it works fine but if there is a 404 then i get a 403 permission denied error instead of the error page. the folder that contains the error page does have a <directory> bit for it and i even tried adding it into the virtual host but i get the same result.

if the file does exist then it loads like normal

can anyone see any problems with my config or do i have to do something diff for 2.2.6?

View 2 Replies View Related

Config For New Server

May 26, 2007

Got a new box, Xeon 3060, 2GB memory, 2x250 SATA II drives. I have 1 mysql/php forum with about 60-70 users online and 1 multimedia download site.

the minimum configuration for Apache httpd.conf ? I just need a starting point to optimize.

View 6 Replies View Related

Apache 2 Config

Nov 9, 2007

I had to switch to Apache 2 from Lighttpd and I'm running into a little bit of trouble trying to make it handle all my traffic. I'm using the worker MPM module, which has the following default config:

Code:
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

I need Apache to be able to handle about 200-500 requests per second. I tried increasing ServerLimit and MaxClients but that didn't work very well.

View 1 Replies View Related

Suhosin Config

Jun 3, 2007

I was wondering if anyone has a tried and tested suhosin config for an average webhosting box?

I tried the config on the webhostgear article and it caused a few problems with some sites. On my directadmin server I managed to do the patch and the extension. I was wanting to do the same on cpanel server. Has anyone done the patch as well with easyapache?

I figure you would have to go to where it saves the downloaded source and patch it then zip it back up.

View 2 Replies View Related

98% Of Ram Used. Config Files

Jun 9, 2007

I just went to a box for myself, and just realized that my ram is closing in on it's limit.

We have 1gb of ram, yet we have around 50MB left.

We run 2 forums, with around 200 concurrent to 2000 on peaks. ( Currently it's 200 concurrent. )

Just hoping somebody could take a look at my httpd.conf and my my.cnf to see if I should tweak anything.

Ran top shift+m, and find that alot of apache connections is using 5mb per process:

Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3173 apache 15 0 73672 51m 3924 S 0.0 5.1 0:56.63 httpd
4790 apache 15 0 73676 51m 3912 S 0.0 5.1 0:13.36 httpd
4980 apache 15 0 73672 51m 3908 S 0.0 5.1 0:08.21 httpd
3172 apache 15 0 69844 48m 3940 S 0.0 4.8 0:45.93 httpd
5096 apache 15 0 69872 48m 3896 S 0.0 4.8 0:06.21 httpd
4394 apache 15 0 68544 46m 3912 S 8.2 4.6 0:20.24 httpd
4256 apache 15 0 68540 46m 3912 S 0.0 4.6 0:30.12 httpd
3729 mysql 15 0 130m 35m 4968 S 2.0 3.5 147:49.81 mysqld
4003 psaadm 15 0 48212 34m 23m S 0.0 3.5 0:27.61 httpsd
1489 apache 15 0 53056 31m 3928 S 0.0 3.2 1:10.80 httpd
1538 apache 15 0 52692 31m 3928 S 0.0 3.1 1:15.86 httpd
1452 apache 15 0 52636 31m 3932 S 0.0 3.1 1:24.45 httpd
2098 apache 15 0 52576 31m 3976 S 0.0 3.1 1:10.90 httpd
1450 apache 15 0 52556 31m 3940 S 0.0 3.1 1:24.80 httpd
1457 apache 15 0 52484 31m 3964 S 0.0 3.1 1:22.13 httpd
1718 apache 16 0 52444 31m 3964 R 30.7 3.1 1:27.99 httpd

httpd.cnf ( Please tell me if I have missed anything out. )

Code:
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 10

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 2000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

my.cnf:

Code:
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[mysqld]
max_allowed_packet=16M

View 13 Replies View Related

WHM Exim Config

Jul 16, 2007

Under WHM > exim configuration editor

, in the first textarea box, we have set

--
auto_thaw = 30m
ignore_bounce_errors_after = 1d
timeout_frozen_after = 1h
--

but not work

email stay under queue for 7 days..

seems that my config not overwrite default configuration:

--
auto_thaw = 6d
ignore_bounce_errors_after = 7d
timeout_frozen_after = 8d
--

View 14 Replies View Related

Apache 2 Config

Sep 27, 2007

I have kind of inherited this server from another person so I'm not totaly sure how it was set up. It is a:

red hat machine running
2.6.9-22.0.2.ELsmp kernel
running apache 2.0.52(red hat)

at any rate this server mainly serves up images but also a few video encoded in flash(.swf files). Basically the issue at hand is there are a few domain names that all point to this server but only one domain name will let the .swf files stream correctly. All other domain names will wait for the whole thing to download before playing. I'm pretty new to apache 2, but I do know apache 1 pretty well. I'm not totally sure where to start with all this. The server is set up with no virtual hosting for each domain which I think could a problem.

View 2 Replies View Related

Config.php To Not Have Write

Mar 11, 2007

config.php to not have write permissions for everyone? I am running cpanel 10x with whm/extras Here is full report when i try and load fantastico scripts. You must secure this program. Insecure permissions on config.php While installing CSLH you might of needed to change the permissions of config.php so that it is writable by the web server. config.php no longer needs to be written to so please chmod config.php to not have write permissions for everyone. you can do this by UNCHECKING the box that reads write permissions for the file:

Where can i find the box it is talking about?

View 4 Replies View Related

Config And Run LiteSpeed Webserver

Dec 6, 2008

i would like to use Litespeed webserver from my server.i installed and run Litespeed from my server. but i dont know how to config. when i start the Litespeed webserver i have an error to please install Zend. Please help me to install zend and if you know whats my need for install please help me to done.

I use cPanel - Dedicated Server
i can control the Litespeed from the cPanel WHM.

View 5 Replies View Related

Apache Config N Plesk

Jul 22, 2009

how can i compile apache and php in a way that i want?

a customized compilation of php and apache?

will it be gone after plesk update?

or has plesk a module to work as easyapache in cpanel?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved