All Questions

Tagged with
Filter by
Sorted by
Tagged with
31 votes
5 answers
14k views

Why not use a WAMP stack?

This is a canonical question about the use of a *AMPP's stack. I recently had a talk with some experienced people and they suggested to me not to use a WAMP stack, and instead install apache, mysql ...
matang's user avatar
  • 446
25 votes
5 answers
32k views

Can a pool of memcache daemons be used to share sessions more efficiently?

We are moving from a 1 webserver setup to a two webserver setup and I need to start sharing PHP sessions between the two load balanced machines. We already have memcached installed (and started) and ...
Tom's user avatar
  • 4,297
24 votes
4 answers
57k views

How to automatically and temporarily block an IP address making too many hits on the server in a short timespan?

One of my LAMP servers was recently brought down by some kind of script bot looking for exploits. From the looks of it, it was making so many requests a second, that it overloaded the RAM on the ...
ProgrammerGirl's user avatar
19 votes
12 answers
53k views

How to watch logs in real time via Terminal?

This is a basic question - in the movie "The Social Network" there are several scenes when the young Facebook staff is watching the PHP/Apache server logs on in their TERMINAL in real time. I'm ...
Jamison's user avatar
  • 299
13 votes
4 answers
23k views

.htaccess RewriteCond for REMOTE_ADDR while behind Load Balancer?

I have a web server behind a load-balancer. I need to add a conditional redirect to my .htaccess in order to display a maintenance page whenever we take the site offline for maintenance. This part is ...
Jake Wilson's user avatar
  • 8,844
12 votes
2 answers
981 views

improve our deployment strategy

We have an ecommerce app that we develop at our company. Its a reasonably standard LAMP application that we have been developing on and off for about 3 years. We develop the application on a testing ...
robjmills's user avatar
  • 990
10 votes
4 answers
23k views

How do I set up per-site php.ini files on a LAMP server using NameVirtualHosts?

I have a LAMP server serving a number of different websites using NameVirtualHosts. Until recently having a global php.ini file has been just fine, but recently one of our developers has requested ...
Brent 's user avatar
  • 23k
10 votes
3 answers
5k views

Secure LAMP server for production use

What is the procedure for securing a Linux, Apache, MySQL, PHP Server (or even Perl) for production use? Other than setting the MySQL password and the root password for Linux what other (maybe not so ...
WalterJ89's user avatar
  • 235
8 votes
4 answers
11k views

Profiling Apache+Mysql+Php server - which is the bottleneck?

How do I profile an Linux + Apache + Mysql + Php server for speed? I have a server with a heavily modified MediaWiki instance running on Ubuntu 8.04. It's a bit sluggish - I haven't done anything to ...
amarillion's user avatar
  • 1,409
8 votes
2 answers
43k views

What to do after hitting the dreaded 256 max connections Apache Limit

After scratching my head trying to figure out why my site was responding so slowly even though the server resources are fine, I finally checked the Apache status and found: 78 requests/sec - 0.7 MB/...
kmoney12's user avatar
  • 205
6 votes
1 answer
3k views

How to maintain PCI compliance on a LAMP server when repositories don't keep up with versions

We run Ubuntu Lucid 10.0.4 as the foundation of our LAMP environment. We are trying to become PCI compliant so that we can pass CC info through our server. We have run some third-party scans on our ...
Jared Green's user avatar
5 votes
5 answers
10k views

Adding PNG & JPG support to ImageMagick in PHP on CentOS

I have installed the ImageMagick extension for PHP on CentOS, but it does not have support for PNG or JPG, how do I add support for these file types to ImageMagick?
Unkwntech's user avatar
  • 1,759
5 votes
1 answer
4k views

Outgoing mail from linux not being delivered

I can't seem to send mail through my php scripts or through the linux console on my Centos 5.5 LAMP server, when the email is addressed to go to a domain that is hosted by my box. I think it is ...
Jason's user avatar
  • 361
4 votes
8 answers
4k views

Scaling a LAMP stack

Once you move beyond 100k hits/month, what would people in this community say is the biggest hurdle? My situ: Tons of static media (audio/video/images) being served off of S3/CDN, but being stored ...
4 votes
5 answers
4k views

PHP broken after upgrading to php 5.4

on an ubuntu 12.04 i have upgraded to PHP 5.4 according to this tutorial http://www.upubuntu.com/2012/03/how-to-upgrade-install-php-540-under.html But when i call php5 -v i get PHP Warning: PHP ...
user avatar
3 votes
6 answers
3k views

How can I block access to my website from certain countries using the LAMP stack?

I have a website that I do not want to be viewed by entire countries. The website is running on a LAMP server. How can I achieve this?
haim evgi's user avatar
  • 753
3 votes
1 answer
6k views

How to enable curl, installed Ubuntu LAMP stack?

I have installed ubuntu Lamp stack.But the curl is not enabled neither i can find extension listed in the INI file, i added manually but it didn't worked too. How should enable Curl then ?
user44520's user avatar
  • 205
3 votes
6 answers
2k views

Running multiple sites on a LAMP with secure isolation

I have been administering a few LAMP servers with 2-5 sites on each of them. These are basically owned by the same user/client so there are no security issues except from attacks through vulnerable ...
user avatar
3 votes
1 answer
14k views

Which PHP modules are required to install wordpress?

I have 5 wordpress sites. I use hostgator shared hosting for all of them. Now I have decided to switch on to a VPS. I got a unmanaged VPS and configuring it for wordpress. I am following this ...
user58859's user avatar
  • 518
3 votes
1 answer
1k views

High CPU usage resulting in server crash

running out of ideas to explore. First off - let me warn you - I'm a programmer, not a systech :) Here is the situation. Dedicated server (LAMP) running a fair amount of sites. mySQL server is on a ...
Ryan's user avatar
  • 53
3 votes
5 answers
542 views

I'm trying to set up a LAMP server so it's totally anonymous, any suggestions?

I'm going to set up a web service which will use the LAMP stack. One of the most important features of the site is that it should be anonymous. We thought that a cool thing will be if the server didn'...
flexterra's user avatar
3 votes
1 answer
12k views

How do I enable JPEG Support for PHP?

My Configure Command doesn't say anything about jpg, nor gif/png, but I can see gif/png support in the output of phpinfo(). I built PHP with --with-gd, but only GIF Support and PNG Support are in ...
user avatar
2 votes
4 answers
2k views

Need working guide to install latest Apache or Nginx, PHP & MySQL for production

Ok I'm told the best and easiest way to install Apache/Nginx, PHP, MySQL for production these days is to pull in the software using apt-get or similar package manager for your specific distro. The ...
zuallauz's user avatar
  • 143
2 votes
2 answers
656 views

Can you recommend a free control panel app (cPanel alternative) or a special Linux distro (featuring such a panel) for a small shared web hosting? [closed]

My company CEO has decided to move 3 websites the company runs to our dedicated server (which runs CRM, accounting, e-mail etc, and is not loaded much) from a shared web hosting where they are now. I'...
Ivan's user avatar
  • 3,398
2 votes
5 answers
585 views

LAMP Security CentOS

I'm kinda new with servers, but I know my way around. Now I've got a server configured, only I'd like to know if this setup is safe for production use, or if I could do some things better. OS: Centos ...
user avatar
2 votes
2 answers
6k views

High CPU usage resulting in server crash

running out of ideas to explore. First off - let me warn you - I'm a programmer, not a systech :) Here is the situation. Dedicated server (LAMP) running a fair amount of sites. mySQL server is on a ...
Ryan's user avatar
  • 53
2 votes
2 answers
14k views

How to see PHP error stack trace/dump?

Currently my web application can print error when host on my local machine. When I host it on Amazon EC2 server. The error page is empty/blank. I want to see the error stack trace when run on EC2, ...
Nam G VU's user avatar
  • 299
2 votes
2 answers
152 views

Bad php scripts bringing server to a stand still

I have a pretty standard LAMP setup on my Debian VPS. The VPS has 512MB of ram, and I've assigned 128MB in my php.ini for php. If I create a script with an infinite loop in it the VPS pretty much ...
John Hunt's user avatar
  • 428
2 votes
4 answers
3k views

Trouble installing xhprof

I'm currently trying to install the xhprof (PECL) extension onto my Mediatemple gridserver. I'm having a bit of a time of it since write restrictions won't allow the PECL installer to work. I've done ...
starsinmypockets's user avatar
2 votes
2 answers
529 views

multiuser PHP virtualhosting environment and security

I'd like to setup a multiuser PHP virtualhosting environment. However, here comes my big concern. Users could use the PHP filesystem functions to access the other users directories, thus read the ...
gucki's user avatar
  • 143
2 votes
4 answers
192 views

My server is about to be switched off. I run a LAMP set up, what should I back up?

My hosting company may cut me off. Any ideas on what files I should back up? I am running RedHat 4.1. How would I save my current PHP set up? Can I just save the .so files? MySQL - is backing up ...
user avatar
2 votes
2 answers
788 views

How to run rails and LAMP simultaneously on ubuntu?

I just set up a virtual machine running Ubuntu Server, with a LAMP stack and OpenSSH installed. What now would be the best way to enable that server to run both rails and PHP applications? Would it ...
Alex Coplan's user avatar
2 votes
1 answer
978 views

just installed ubuntu server and lamp server, php not working

im new here and quite nooby, so sorry if i sound dense. Im trying to install a small internal wiki. I have inatslled ubuntu server with the default lamp packagaes, but when i put a php file in /var/...
user66089's user avatar
  • 123
2 votes
1 answer
74 views

Need advice on documenting LAMP web site

I need to document my web site. It is a music web site on Linux/Apache/MySQL/PHP on AWS. I need to document everything: architecture (5 servers), database (100+ tables), php classes, programming ...
molbit's user avatar
  • 21
2 votes
1 answer
2k views

PHP errors not being displayed

I'm using PHP with Apache on Ubuntu 12.10. Errors are not being displayed to the browser for some reason and I can't figure it out. I have the following in my php.ini file: error_reporting = E_ALL &...
Mike's user avatar
  • 689
2 votes
1 answer
985 views

.php files see Apache environment variables, .html files don't

Consider this environment: $ cat .htaccess AddType application/x-httpd-php .php .html SetEnv Foo Bar $ cat test.php <?php echo "Hello: "; echo $_SERVER['Foo']; echo $_ENV['Foo']; echo getenv('Foo'...
dotancohen's user avatar
  • 2,600
2 votes
1 answer
1k views

Website sometimes takes long time to load

I am running a LAMP system with Ubuntu 14.04. I have 4 cores and 8GB Ram on my server The problem is that when I connect to my website after idle period( 2-3 hours or more) the it takes lot of time ...
Jayesh Duggal's user avatar
1 vote
8 answers
3k views

Why my webserver is using just 2 cores? (8 cores available)

Helo, my server is a 2x quad core, with 8gb ram, it runs LAMP for a middle size website (120 pages opened daily) i installed munin to monitor the CPU, and this is the graph: http://img834.imageshack....
user avatar
1 vote
7 answers
20k views

Lightweight Linux Distro for a Web Server with a GUI

I'm a PHP programmer who would like to stop editing files on the live server over FTP (please don't taunt me), so I'm thinking about replicating the live server environment inside a virtual machine ...
user avatar
1 vote
1 answer
2k views

php and mysqld processes running for hours. Is this normal?

I have a Jenkins server, which periodically rebuilds a PHP/mySQL application. Every time new PHP code is pushed, this job drops all the tables in the corresponding database and then recreates them ...
Matt Korostoff's user avatar
1 vote
3 answers
1k views

Apache error log: Unable to create ~/.gnome2 directory: Permission denied

I'm seeing a few of these messages in the Apache error log (/var/log/httpd/error_log) at the rate of about one per half hour, often in small batches: (process:23210): libgnomevfs-WARNING **: Unable ...
Tom's user avatar
  • 4,297
1 vote
1 answer
441 views

Exim4 intercept all outgoing mail

I have a LAMP stack set up on a Debian 8 (jessie) machine. I'm trying to find a way of intercepting all outgoing mail sent by PHP (through sendmail) and instead of sending it out, deliver it to my ...
johny332's user avatar
1 vote
4 answers
2k views

Server load spikes several times a day, load average for the past month is 5 times the load average all year

My Munin notifications set up for our (Debian) LAMP cluster have been notifying me continuously that our load on our production machine has been at dangerous levels. While the average load all year ...
AMF's user avatar
  • 141
1 vote
2 answers
736 views

how to enable php4 only, no php5

I have a LAMP server with Ubuntu 9.10, Apache 2, Mysql 5 and PHP5. I want to disable PHP5 and use only PHP4. Can anyone explain how to do this? I'm doing this because I need to simulate an ...
John's user avatar
  • 7,373
1 vote
2 answers
293 views

Need to improve apache and mysql configuration. Current config is crashing server due to RAM maxing out?

Ok, we run a growing auto parts shopping cart. Our server runs slow and is always crashing so we asked our web host to assist us. They sent us these report but I need some advice in how to process it. ...
Anthony Accetturo III's user avatar
1 vote
2 answers
2k views

AWS PHP Curl with SSL

I'm trying to install the Amazon Web Services PHP SDK on my Ubuntu LAMP server. Whenever I run the compatibly check everything but cURL comes back okay. The issue I'm having is that it's reporting I ...
David's user avatar
  • 129
1 vote
5 answers
10k views

Load average is high but resources are not fully used

As far as I can tell, the load average on my server (Ubuntu Linux 8.04.1) is way too high, and in practice I see it slows down or stops serving during peak hours. It's a fairly stock LAMP powering a ...
lima's user avatar
  • 807
1 vote
2 answers
371 views

LAMP vs Windows Server 2008 scenario

I see there is a lot of things online about this, but wanted an answer specific to this scenario. I can think of a few issues with this, but wanted to ask everyone to get the whole picture. Can ...
madphp's user avatar
  • 379
1 vote
2 answers
120 views

centos server shared files

I am wanting to implement a multi-server specialised hosting environment. I currently have a cloud solution comprising of 3 centos boxes (2 lamp web servers, 1 mysql). What I am wanting to do is, ...
Kyle Hudson's user avatar
1 vote
1 answer
741 views

Suggested light weight config for LAMP?

Looking for ways to bring down memory requirements for a LAMP install. SITE_INFO: 10-20 pages, 2-5k pageviews per month -- it's a small, low load site. OS: If it matters, I plan to use CentOS-5.5 (...
blunders's user avatar
  • 823