03-27-2014
This is a very vague problem description.
VPS service performance is primarily based on the "CPUs" you buy and the "RAM" you buy and the "network bandwidth" you buy... you describe PHP, Apache2, etc all basics for a LAMP web server; but you do not discuss the most important factors that are critical for web server speed.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hello,
I have a Supermicro server with a P4SCI mother board running Debian Sarge 3.1. This is the "dmidecode" output related to RAM info:
RAM speed information is incomplete.. "Current Speed: Unknown", is there anyway/soft to get the speed of installed RAM modules? thanks!!
Regards :)... (0 Replies)
Discussion started by: Santi
0 Replies
2. UNIX for Dummies Questions & Answers
Hi everybody, I have a VPS account and I have hit my limit for domains to manage through Plesk. I now need to begin administering new domains through UNIX. I've never used UNIX before but do have some experience with command line environments. I was able to connect today (I think). So the next... (1 Reply)
Discussion started by: snarky
1 Replies
3. Filesystems, Disks and Memory
I analysed disk performance with blktrace and get some data:
read:
8,3 4 2141 2.882115217 3342 Q R 195732187 + 32
8,3 4 2142 2.882116411 3342 G R 195732187 + 32
8,3 4 2144 2.882117647 3342 I R 195732187 + 32
8,3 4 2145 ... (1 Reply)
Discussion started by: W.C.C
1 Replies
4. UNIX for Advanced & Expert Users
I'm wanting to do remote backups of the entire /home/* directory structure, which is where HG puts all www files and sets the user and group independently of any other user ( so /home/user1 will be using group user1, instead of a generic apache group)
The problem I'm running into is that only... (0 Replies)
Discussion started by: kettlewell
0 Replies
5. UNIX for Dummies Questions & Answers
Hi bros
I have a VPS 512mb (Burst 2GB) with Kloxo installed and hosting few sites on it with not much traffic
I am facing high cpu load for the last few days and seems mysqld is overloading the cpu
Any suggestion will be appreciated
Regards
Rizwan
Top output is as under
top -... (2 Replies)
Discussion started by: rizwan65
2 Replies
6. Web Development
Hello,
please when an VPS IP is changed which files on VPS i need to edit?
I mean basic apache, named files, which needs to be edited?
so far i listen its /var/named and domain zone file which contains old ip.. (2 Replies)
Discussion started by: postcd
2 Replies
7. Proxy Server
Hi guys
I need to setup server/router in my firm. We got from our ISP dedicated server in their data center. It has a static IP and it servers as replacement for out DSL connection. I configured our internal server to be border gateway and to connects to data center. "Remote" admin installed... (0 Replies)
Discussion started by: solaris_user
0 Replies
8. Shell Programming and Scripting
i have looked for a week and tried a few things, but nothing seems to work so joined here.
I have a go daddy account and also a vps in germany. In my vps, i run a code script (we will call it codegen) when i run ./codegen i get my question of how many codes do i want to make. With my answer... (9 Replies)
Discussion started by: uksatman
9 Replies
9. IP Networking
I have this in /etc/network/interfaces:
auto ens3
iface ens3 inet static
address 46.xx.xxx.1x7
netmask 255.255.252.0
broadcast 46.38.xxx.255
gateway 46.xx.xxx.1
auto ens3:0
iface ens3:0 inet static
address 188.xx.xx.xx5
netmask... (0 Replies)
Discussion started by: Douro
0 Replies
10. IP Networking
Code:
auto ens3
iface ens3 inet static
address 46.xx.xxx.1x7
netmask 255.255.252.0
broadcast 46.38.xxx.255
gateway 46.xx.xxx.1
auto ens3:0
iface ens3:0 inet static
address 188.xx.xx.xx5
netmask 255.255.255.255
I want the... (1 Reply)
Discussion started by: oshihari
1 Replies
LEARN ABOUT PHP
php_sapi_name
PHP_SAPI_NAME(3) 1 PHP_SAPI_NAME(3)
php_sapi_name - Returns the type of interface between web server and PHP
SYNOPSIS
string php_sapi_name (void )
DESCRIPTION
Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this
string will be "cli" whereas with Apache it may have several different values depending on the exact SAPI used. Possible values are listed
below.
RETURN VALUES
Returns the interface type, as a lowercase string.
Although not exhaustive, the possible return values include aolserver, apache, apache2filter, apache2handler, caudium, cgi (until PHP
5.3), cgi-fcgi, cli, cli-server, continuity, embed, fpm-fcgi, isapi, litespeed, milter, nsapi, phttpd, pi3web, roxen, thttpd, tux, and web-
james.
EXAMPLES
Example #1
php_sapi_name(3) example
This example checks for the substring cgi because it may also be cgi-fcgi.
<?php
$sapi_type = php_sapi_name();
if (substr($sapi_type, 0, 3) == 'cgi') {
echo "You are using CGI PHP
";
} else {
echo "You are not using CGI PHP
";
}
?>
NOTES
Note
An alternative approach
The PHP constant PHP_SAPI has the same value as php_sapi_name(3).
Tip
A potential gotcha
The defined SAPI may not be obvious, because for example instead of apache it may be defined as apache2handler or apache2filter.
SEE ALSO
PHP_SAPI.
PHP Documentation Group PHP_SAPI_NAME(3)