Browsing articles tagged with "lamp - Admins Goodies"
Jan 23, 2013
tom

Adding Additional RAID Array to Ubuntu 11.10 x64 Server

I asked this on askubuntu.com as well but since it’s a server question, figured I’d throw it on SF, too. Haven’t run into this situation before but it seems simple enough. Looking for advice/guidance on the following issue. I have an Ubuntu 11.10 64-bit server that is configured with 2 identical hard drives in a RAID-1 through the mdadm utility. It’s a simple LAMP server that runs a few projects I’m working on but is […]

Continue Reading »
Jan 9, 2013
tom

Need to send mail from our FQDN IP

I am trying to wrap my hear around how I am going to get around this latest hurdle. What needs to happen: PHP script sends email to our Exchange Server …. Sounds simple right? Well the issue is that the LAMP server that has the PHP script on it is located in our office building, while our web server is hosted at a dedicated hosting company IP 65.xxx.xxx.xxx. When we send the email to our […]

Continue Reading »
Jan 9, 2013
tom

MySQL reinstall questions

For some reason my /var/run/ dir on debian6 had it’s chown and chmod changed. Problem is from what? Outcome is that mysql fails. I’m guessing the easiest way to fix is to reinstall MySQL. (Previously this LAMP was running fine.) However, I have established databases and tables and don’t want to lose them. Since mysql is not running I can’t backup (correct?). I just want to confirm that: 1). if I reinstall, I won’t loose […]

Continue Reading »
Oct 7, 2012
tom

How to determine if PHP-to-Solr connection is slow?

Hi have a LAMP stack connecting to a Solr 3.6.1 server running on CentOS 6.3. While benchmarking my app, I noticed sudden spikes in the time taken for PHP to send a search query to Solr and getting the results back. This time is usually about 20-40 msec and Solr’s QTime is typically 0-30 msec. My benchmark results: Start function msec Creating the query 2.50196456909 msec Executing query and getting results (PHP & Solr) 37.4531745911 […]

Continue Reading »
Sep 19, 2012
tom

Apache 2.4 and PHP 5.4 getting connection reset errors in the browser

In the weekend I upgraded my development web server to Apache 2.4 and PHP 5.4. In my web application which was previously working great on Apache 2.2 and PHP 5.3 it now starts getting these messages saying the “connection was reset” in Firefox. See screenshot. I am connecting to the linux machine via local LAN. I’m assuming it might be something to do with the new version of Apache or PHP, or the new LAMP […]

Continue Reading »
Jun 3, 2012
tom

LAMP server error Unable to initialize module

While doing a tail -f on my httpd error_log I got the following error on every request [Sun Jun 03 15:52:48 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning: PHP Startup: timezonedb: Unable to initialize module [Sun Jun 03 15:52:48 2012] [error] [client xxx.xxx.xxx.xxx] Module compiled with module API=20050922 [Sun Jun 03 15:52:48 2012] [error] [client xxx.xxx.xxx.xxx] PHP compiled with module API=20090626 [Sun Jun 03 15:52:48 2012] [error] [client xxx.xxx.xxx.xxx] These options need to match [Sun Jun […]

Continue Reading »
May 23, 2012
tom

1 EC2 instance per website – manage multiple websites on Amazon cloud using EC2

I’m managing multiple websites, most based on WordPress and all are based on LAMP stack. I’m moving all my websites to Amazon cloud. I’m new to AWS and my plan is moving 1 website by one, starting with my smallest website. My question is should I put all my site on 1 EC2 instance and or 1 website on 1 separate instance? This probably sounds stupid since anyone would definitely choose the latter in conventional […]

Continue Reading »
Apr 25, 2012
tom

Is suPHP any more secure than alternatives?

I have a web application needs write access to certain folders on a LAMP server. Since suPHP / suEXEC escalate operations to an account you specify, it seems like your server is no more secure because a hacker could still compromise your site (you just get to pick the user). Is this any more secure than granting www-data write access on those specific files / folders? Asked by Trent Scott Keep in mind, suexec does […]

Continue Reading »
Apr 25, 2012
tom

Linux Web Server Permissions – Best Practices

On a privately owned server with one website, is there any reason the files/directories within /var/www can’t be group owned by www-data? My understanding is that security risks with www-data having write access only arise if you have multiple websites running on the same box. Asked by Trent Scott The principle of least privilege applies. Only give users the rights they need and no more. In this case, if apache is only serving up pages, […]

Continue Reading »
Apr 25, 2012
tom

Optimized LAMP/LEMP stack scripts

In the “let’s try not to reinvent the wheel” perspective, I’ve been looking for a packaged LAMP (or LEMP) stack for some time now, not only the basic Mysql, Apache , PHP etc… but ideally stuff like APC, Postfix… basically something that would implement recognized practices & standard for security, general performance. A standard default installation that would work out of the box with all the bells & whistles that one would need to get […]

Continue Reading »
Pages:1234567...19»