Tweaking Assistance Fbsd 6.2 + Apache 2.2.4/php5.2.0

Jan 29, 2007

i can't seem to figure out what is causing this server to run out of cpu... something is running away, it has to be, load is shooting over a couple hundred.. i woke up with it dead.. but forgot to look at top to see if all 3 gigs of swap (i added some last night) was full..

View 8 Replies


ADVERTISEMENT

Futurehosting - Tweaking Apache To Reduce CPU Loads?

Apr 20, 2009

its 2am night here, and my sites are down....now there is no way i have too much traffic at midnight, also all my websites are new !

this is happening consistently since today morning and im getting no support apart from jargon filled replies from customer care

how do i tweak apache settings and what settings do i make to avoid this ?

im wondering what will happen after few months when my websites actually have good traffic coming in ?

We have checked your server. Please see the load average and process list given below:

The value 4.42 was the CPU load average at the time. A normal load should be below 1.00. I could see that Apache service is causing high load in your server.
So you can tweak Apache in order to reduce the CPU load. Please check and let us know if you need any further assistance.

++++++++++++++++++
[root@chi07 ~]# vzctl exec 18403 w
03:16:20 up 2 min, 0 users, load average: 4.42, 1.42, 0.50
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT

View 14 Replies View Related

DNS Zone Assistance

Aug 26, 2008

I'm trying to setup an option on my server. I hope one of you can help me out a tad...

I'm trying to configure my server to allow an option that I usually call wildcard DNS. I need any domain that's pointed to a server to go to a parked page (just like a welcome to <domain> it's coming soon). I can do the parked page, just need to figure out the DNS/Apache settings.

I know it can't be too hard but I just can't find it...

View 5 Replies View Related

Remote Assistance

Oct 12, 2008

Is there a way to have remote assitance like XP has but on 2003 server? I need this so I can have someone log in and perform a job for me and need to see it done live.

View 5 Replies View Related

Apache 1.3 And PHP4 With Apache 2.2 And PHP5

Jun 1, 2008

I have apache 1.3 and PHP 4.4 installed on my CentOS 4.4

Can I install apache 2.2 and PHP 5.x on the same server? I want to test my scripts for compatibility and also to check the performance.

I dont want to break my current setup because it's a production server.

View 5 Replies View Related

Server Tweaking

May 3, 2008

I have just transfer a website over to a dedicated server with limestone network. A lot of times my site would not load or would load after 5-10 seconds. This is probably due to too many people connecting at once (i am guessing). The website is a myspace resource site with about 2000 uniques per day or so. how to optimze the server so the site will run better?

View 7 Replies View Related

Tweaking MySQL

Jan 14, 2008

MySQL Takes up 80-100% cpu

Processor Information Processor #1 Vendor: AuthenticAMD
Processor #1 Name: AMD Opteron(tm) Processor 242
Processor #1 speed: 1591.450 MHz
Processor #1 cache size: 1024 KB

Processor #2 Vendor: AuthenticAMD
Processor #2 Name: AMD Opteron(tm) Processor 242
Processor #2 speed: 1591.450 MHz
Processor #2 cache size: 1024 KB

Quote:

4 GB ram

Quote:

My.cnf contents

[mysqld]
safe-show-database
old_passwords
back_log = 75
skip-innodb
max_connections = 650
key_buffer = 40M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
#table_cache = 3000
table_cache = 1024
#thread_cache_size = 128
thread_cache_size = 286
wait_timeout = 722
connect_timeout = 10
tmp_table_size = 16M
max_heap_table_size = 64M
max_allowed_packet = 64M
net_buffer_length = 16384
max_connect_errors = 10
thread_concurrency = 8
read_rnd_buffer_size = 786432
bulk_insert_buffer_size = 8M
#3 below
query_cache_limit = 1M
#16 below
query_cache_size = 16M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 65536
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
default-storage-engine = MyISAM

[mysqld_safe]
nice = -5
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 16M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M

[mysqlhotcopy]
interactive-timeout

View 7 Replies View Related

Just Broke My Box..upgrading PHP5/Apache On Plesk

Dec 1, 2007

I just ran a simple yum update php on the server, because I need to be running 5.2 instead of 5.1.6

The update went smoothly, so I restarted httpd, and all hell broke loose. Apache can't start because of a whole lot of missing modules. So I commented out every single LoadModule line to see if that would get it to start, and it started complaining about the configuration file of some other software being incorrect (because that configuration file pointed to some module that no longer exists)

At one point I was able to get apache to start, I believe by copying my old configuration file to httpd.conf and then commenting out some lines that it was complaining about. Apache started, but no pages were loading.

So right now, basically, I've got no web service running at all on the server. I really didn't expect all of these problems for a simple PHP update, but obviously I was mistaken.

Is it worth trying to fix this myself (intermediate linux user here) or would it just be easier to hire someone to come in and do it for me?

View 4 Replies View Related

Apache Restart Fails After Upgrade To Php5

Aug 4, 2007

I upgraded to php 5.2.3 and it broke my apache somehow.

Here is the error i get in WHM when tring to restart.

Code:
Waiting for httpd to restart.... . . . . . . . . . . finished.

httpd statusroot 14613 1.0 2.1 23736 22060 ? S 02:55 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
root 14626 1.2 1.0 20896 10408 ? Ss 02:55 0:00 /usr/local/apache/bin/httpd -DSSL

httpd: [ != HTTP/1..] httpd has failed, please contact the sysadmin
Im running CentOS with apache 1.3 and trying to run Php5 with whm 11.2.0 and cpanel 11.6.0.

Ive tried everything from loading the least amount of modules to trying to go back to php 4.3 but nothing seems to work and i get the same error no matter which way i go.
My zend is the latest required for php5 too.

Here is a tail from my apache error log.

Code:
[Sat Aug 4 02:55:13 2007] [notice] FastCGI: process manager initialized (pid 14627)
[Sat Aug 4 02:55:13 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.3 mod_gzip/1.3.26.1a mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 F$
[Sat Aug 4 02:55:13 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Sat Aug 4 02:55:13 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sat Aug 4 02:55:28 2007] [notice] child pid 14633 exit signal Segmentation fault (11)
[Sat Aug 4 02:56:14 2007] [notice] child pid 14634 exit signal Segmentation fault (11)

View 9 Replies View Related

Php4 And Php5 On Single Instance Of Apache

Dec 17, 2007

I already have PHP 4 installed on my server and now i want to install php5 on same apache instance but different port.I want to configure the system so that on one port php4 runa dn on second port PHP5 run.

View 1 Replies View Related

PHP5 Into My IIS Server

Jan 1, 2009

I have just installed PHP5 into my IIS server and want to install projectpier

1st problem: When I go to [url]I get the errorThis Virtual Directory does not allow contents to be listed.

There is an index.php in there but doesn't load even though I have specified it as a default content page in the website..

2nd problem: After I manually browse to the install page I get the following errors:

#Error: /config/config.php is not writable

# Error: /public/files is not writable

# Error: /cache is not writable

# Error: /upload is not writable

I have realised that permissions are not setup right so I went and gave cart blanche access to the folder for any user..it worked but is far from secure.What is the best way to do this?

When installing web applications like this are they usually done from the servers browser where the server is the only one with full access.I tried this and it didn't work.

View 3 Replies View Related

Apt-get Php5 Or From Source

Jan 20, 2008

Running ubuntu server 6 if I apt-get php5 the version I get is 5.1.2.

Now the latest version on the php.net site is 5.2.5.

Does it really make much of a difference if I'm slightly below current? What are your thoughts please?

I know if I go compiling from source php and mysql are difficult to get working together which is why I like the apt-get method.

View 1 Replies View Related

Can We Run Both PHP4 And PHP5 Together

Jul 27, 2008

We have a client which site requires PHP4, not PHP5 to run. Can we run both PHP versions alongside each other? Apparently, their site will only work in PHP4. We are running Plesk 8.3.0 for Linux.

View 8 Replies View Related

Curl & GD On PHP5.2.5

Apr 12, 2008

I have PHP 5.2.5 compiled with GD library working on my webserver,
yesterday i wanted to add Curl Support, so i had to recompile php.

I downloaded and installed Curl latest version and tried to recompile PHP :

'./configure'
'--prefix=/usr/local/php'
'--enable-discard-path'
'--disable-force-cgi-redirect'
'--enable-shared'
'--disable-static'
'--disable-debug'
'--disable-rpath'
'--enable-pic'
'--enable-inline-optimization'
'--enable-memory-limit'
'--with-gd'
'--with-png-dir'
'--with-jpeg-dir'
'--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php'
'--with-pear=/usr/share/pear'
'--enable-magic-quotes'
'--enable-debugger'
'--enable-track-vars'
'--with-exec-dir=/usr/bin'
'--with-versioning'
'--with-mod_charset'
'--with-regex=php'
'--enable-track-vars'
'--enable-trans-sid'
'--enable-safe-mode'
'--enable-ctype'
'--enable-ftp'
'--with-gettext=/usr'
'--enable-posix'
'--enable-session'
'--enable-sysvsem'
'--enable-sysvshm'
'--with-openssl=/usr'
'--without-kerberos'
'--with-freetype-dir=/usr'
'--with-zlib=/usr'
'--with-zlib=/usr'
'--with-zlib-dir=/usr'
'--with-zlib-dir'
'--enable-xslt'
'--with-xslt-sablot'
'--with-iconv-dir=/usr/local/lib'
'--with-mysql-sock=/var/lib/mysql/mysql.sock'
'--with-mysql'
'--enable-mbstring=all'
'--enable-fastcgi'
'--enable-discard-path'
'--enable-force-cgi-redirect'
'--with-curl=/usr/local/curl'

I can't get it working, this is the error i get :

..

checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
If configure fails try --with-freetype-dir=<DIR>
configure: error: GD build test failed. Please check the config.log for
details.

I think i'm not the only one who is experiencing this problem, take a look here:
[url]

Why do PHP.net don't give much importance to this BUG?

I'm using the same OS : Centos 5

View 4 Replies View Related

Installing Php5

Mar 27, 2008

I recently installed ubuntu 7.10, and apache2. Both installed with no problems. In my browser i am able to type localhost, and i recieve the "It works" page. I can also start,stop and restart with no problems. However, I cannot install php5. I use synaptic package manager to install, and i added the appropriate lines to the httpd.conf file but i still cannot view .php files. I try to run a simple php page and a dialog box pops up prompting me to open or save the file. If i choose either, the box just pops up again.

View 15 Replies View Related

Uninstall PHP5

Jan 31, 2008

I compiled php5 from source, i'm running php5+lighttpd using fastcgi..

i want to uninstall php5 and install php4, i tried this :

[root@srvxx php-5.2.5]# make uninstall
make: *** No rule to make target `uninstall'. Stop.

anyone knows how to uninstall PHP5?

View 5 Replies View Related

(phpsuexec) How Can I Run Php5

Mar 31, 2008

i have a server run with phpsuexec and php4 default,

i want to let certain account run with php5,

it looks likely i can add a php.ini in the account,

View 2 Replies View Related

PHP5 Hosts

Jan 27, 2007

I'm trying to keep up with things by developing for PHP5. My current host still uses PHP 4.4.1, which is a pain. Can someone advise me if I should change host to someone who uses PHP5. I would rather have shared hosting due to budget. If so, who should I use? Otherwise, can someone point me in the direction of a resource that describes how to develop for PHP5 while retaining backward compatibility for PHP4.x so I can write code targeted primarily at PHP5, but also works on PHP4.x?

View 6 Replies View Related

VPS Upgrade To Php5

Aug 22, 2007

I have a slight problem I can manage most of the features on a VPS server, but I want to upgrade php4 to php5 on the server.

Problem is I have no idea where to start, Im using plesk control panel using WebFusion hosting.

Does anyone have any idea, articles etc. I have had a look online but come up with nothing that simply walks me through what I have to do.

View 10 Replies View Related

Php4 / Php5

Jan 26, 2007

i am getting Internal Server Error while accessing php5 pages.
cat .htaccess
AddHandler application/x-httpd-php5 .php
Premature end of script headers: /usr/local/cpanel/cgi-sys/php5

View 7 Replies View Related

PHP5, MySQL5

Jul 7, 2007

I've already managed to pick two web hosts for my business that probably won't do the job, so I'm looking for some advice. Primarily we need PHP 5 (with cURL), MySQL 5, easy to implement SSL and some kind of e-mail. I wouldn't imagine using more than 1gb monthly data transfer or needing more than about 20mb of storage.

The database design and all the code was custom written by me and a friend. We are not interested in overly-fluffy GUI's - we like power tools without the finger guards. We'd also like to have good logs of errors, accesses, etc.

Finally, I'm not interested in saving $10 a month to get an overloaded server that goes down now and then. Web host rates are pretty much trivial in comparison with the cost of downtime for this site.

View 21 Replies View Related

Mailparse Php5

Mar 13, 2007

I have installed PHP 5.2.1 (with this guide) working along side PHP 4.4.6, but I am trying to install mailparse into PHP5 and have not had much luck at it.

I think it maybe installing it for PHP 4 and not PHP5 as it seems to be the same date all the time: 20020429 and I believe it should be 2004 or newer from what I have read on Auracle Support Forum.

I have tried:

Code:
/bin/mount /tmp -o remount,exec
pecl install mailparse

pico /usr/local/Zend2/etc/php.ini
Added: extension=mailparse.so to the php.ini of PHP5

service httpd restart
/bin/mount /tmp -o remount,noexec
I have also tried installing from the tar file I wget with the following commands

Code:
cd /home/src/mailparse-2.1.1
/usr/local/php5/bin/phpize5
./configure
make
make install
Then I believe I did

Code:
pico /usr/local/Zend2/etc/php.ini
Changed: extension_dir to /usr/local/php5/lib/php/extensions/

cp /usr/local/lib/php/extensions/no-debug-non-zts-20020429/mailparse.so /usr/local/php5/lib/php/extensions/
But it still does not work

View 0 Replies View Related

Php4 + Php5

May 13, 2007

We have a server runing both php4 + php5 and had someone set it up that way when we got the server. but now i cant find who did it for us. And would like to hear how to do it. Im not the best with this kind of stuff and thats why i hire someone to do it lasttime

I been reading on cpanel.net but nothing is up to date!

View 3 Replies View Related

PHP5 For 1 Account

May 8, 2007

I'm running cPanel hosting on Centos VPS, apache was last built with PHP 4.4.2. Now I have a client who wants to install mediawiki which requires php5. I don't want to recompile Apache with php5 because I don't know how this could affect my other customers.

Is it possible to run php5 for on a "per account" basis while keeping php4 as the default for the server ?

View 7 Replies View Related

PHP5 On Centos OS VPS

Oct 8, 2007

how do i install php5 on my linux vps centos OS i want to do that installing because right now using php4 and i want to upgrade to php5 and mySql 5 to my vps. i'm on self managed/unmanage server

View 10 Replies View Related

Php5 Performance Vs Php4

Jul 24, 2009

Is there any difference in performance if you upgrade from php4 to php5? Or can it reduce the average server load?

View 12 Replies View Related

MySql Not Working With PHP5

Apr 21, 2009

I have installed PHP5 in my windows server (IIS6).But when I check with phpinfo() its not showing mysql extension or any details.

I have enabled the mysql extension in php.ini

View 1 Replies View Related

PHP5 Installed, Is Mysql5

May 24, 2008

is mysql5 required for php5? I currently have php4&5 installed with mysql4

If I install mysql5 is it backwards compatible?

Are there any known issues with mysql5 on a server like performance issues? I'm not looking to have scripts recode at this point in time.

View 3 Replies View Related

Installing PHP5 GD Library

Jul 21, 2009

I keep seeing instructions on installing using apt-get install php5-gd to install it, but when I do that my server says unknown command....

View 4 Replies View Related

Upgrading Php4 To Php5

May 4, 2008

I have a client who is currently running their own linux machine and has php4 installed (mad I know ) Anyways, I have been asked to make some scripts for them, however I am wanting to use php5 rather than php4 as that is what I am accustomed to not to mention it's still got support for it. Does anyone know of any good online resources on how to upgrade to php5? or better still, how to install php5 and run both 4 and 5 on the same server (using Apache)

View 5 Replies View Related

How To Install Mbstring For PHP5

Jan 17, 2008

I'm using Apache2, MySQL5, and PHP5 with CentOS4.6, cPanel 11.

When recompile Apache2 and PHP5 from WHM, there are no options for mbstring, so now my PHP5 doesn't has mbstring.

I tried to install mbstring as below, but I got this message:

Quote:

root@mybox [~]# yum install php-mbstring
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
No Match for argument: php-mbstring
Nothing to do

I also tried:

Quote:

up2date -i php-mbstring

Are there other ways to install mbstring for PHP5?

View 8 Replies View Related







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