Hot answers tagged

11 votes
Accepted

Do I need to have port 80 configured in LAMP for an HTTPS website?

The answer to your titled question "Do I need to have port 80 configured in LAMP for an HTTPS website?" is no, you don't. You can run a LAMP stack on whatever port you would like. Common choices ...
  • 24.9k
9 votes

Where is php.ini-development on Ubuntu LAMP?

php.ini-development file for php7 on ubuntu 16.04 is located in /usr/lib/php/7.0/php.ini-development So you can do the following: make backup copy of your current php.ini: $ sudo mv /etc/php/7.0/...
6 votes

best way to debug nginx rewrite rules in config file?

Using logs and and built-in support for debugging is definitely the most reasonable way. If you are doing some quick routing debugging at early stages and want to interact through the browser/client ...
  • 161
6 votes

Can one root server handle over 50M requests per month?

I have a piece of string, how many knots can I tie in it? Really it's down to monitoring how much active load there is on the server and then simulating additional load to push it to a point where ...
  • 1,025
5 votes

Can one root server handle over 50M requests per month?

Can the server handle it? Yes. but.. Whether it actually will depends completely on your code. The servers you're viewing this page on currently handle about 75 million requests per month each, and ...
5 votes
Accepted

Docker image OS importancy

From a Docker perspective it is not important to match your in and out-of-container OS. Where it gets more important is when you have to think about patching and troubleshooting both -- if you have a ...
  • 4,935
5 votes
Accepted

Security concerns with moving a wildcard SSL cert over from one LAMP stack to another.

First, let's clarify something: your certificates are public. Anyone can freely download them from your server. This is by design. The only file that needs to be kept truly private is the private key ...
  • 109k
4 votes

ServerName wildcards in Apache name-based virtual hosts?

If this can help, just to complete a bit Mo's answer: Wildcards in ServerAlias also works on partial domain names, such as ServerName somename.dev ServerAlias *-mysite.dev It saved my life ...
  • 141
4 votes

Website is down and unable to login via SSH / Putty on Ubuntu 14.04 x64 Digitalocean

Digital Ocean provides console access from the control panel. Use that to login when the system is down and gather information, When you have information use it to decide what to do. Anything else is ...
  • 115k
4 votes
Accepted

Log File Directory LAMP

I'm presuming your JS is executed in a browser-session, and not on the server itself. If that isn't the case, let me know. Yes, it is possible to move logs under DocumentRoot. However, it is ...
  • 132k
4 votes

Diagnosing Linux OOM Logs

What should I do to fix this? Add memory or reduce the load on memory from processes. Install monitoring Gather data. Use Scientific Method to work out where the bottlenecks are. Take appropriate ...
  • 115k
4 votes
Accepted

LAMP stack with AWS performance

Yes, you can use AWS for a site with a scale from 1 request a day to 1 million hits per second and beyond. You really need AWS education to use AWS effectively, including designing for cost savings. ...
  • 30.8k
4 votes

MySQL is extremly slow, is it possible that it's because the storage engine is located on NAS?

a 1GB interface with the server and 5MB/s IO speed 5 Mb is slow over a 1Gb link. the server has a small HDD, 250GB. That's a comfortable size for a Windows Server, but how much of that is free for ...
  • 1,429
3 votes
Accepted

Exim4 intercept all outgoing mail

You have to create the router that redirect outgoing messages: intercept: driver = redirect domains = !+local_domains data = auditor@local.tld pipe_transport = ...
  • 6,874
3 votes
Accepted

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

Unless you have your Jenkins job configured to start and stop mysqld every time it runs you won't see it disappear from the process list. mysqld is a daemon that runs in the background at all times, ...
  • 3,633
3 votes
Accepted

Multiple Web Server VMs or a Single VM with virtual hosts?

Well, 10 VM means you will have 10 VM to manage (update, monitor, ...) so in terms of resource utilization and cost it is better to consolidate. On the other hand, all sites on 1 VM means they will ...
  • 156
3 votes

403 Forbidden on lamp-server vhost

Your error message says: because search permissions are missing on a component of the path which means that a parent directory does not allow Apache to traverse it. To find out what directory that ...
3 votes

Why not use a WAMP stack?

An answer directly from XAMPP. (I share, even if not a direct xampp question, as it's listed as a canonical question for AMPP's stack) Is XAMPP production ready? XAMPP is not meant for production ...
  • 16.4k
3 votes

Log File Directory LAMP

Exposing log files within the document root creates a massive vulnerability on a LAMP server - without sophisticated controls it allows anyone to deploy and run code on the server. As a developer ...
  • 20k
3 votes
Accepted

VPS Admin Panel

Do. Not. Use. An. Admin. Panel. Ok? :) Seriously, though. They're universally clumsy, they do odd things to your servers that make them impossible or difficult to troubleshoot via standard means, ...
  • 109k
3 votes
Accepted

Need Help Upgrading LAMP (Centos) Server

I would say: Update CentOS if you need it (according to their site, the EOL is November 30, 2020) check here Apache tends to have security updates so maybe is a good idea to update if and when ...
  • 449
3 votes
Accepted

Ubuntu Lamp accessing mysql from outside

When not specifically defined the bind-address defaults to * If the address is *, the server accepts TCP/IP connections on all server host IPv6 and IPv4 interfaces if the server host supports IPv6,...
  • 73k
3 votes

Where to redirect HTTPS on a WordPress LAMP setup?

Apache virtual hosts. Use the Wordpress settings to update the site URL.
  • 30.8k
3 votes
Accepted

How to remove connection time out links form RHEL

Disable repositories that are not available, either by editing the yum repo configuration file(s) in /etc/yum.repos.d/ or by using yum with the --disablerepo=repoidglob switch yum --disablerepo=...
  • 73k
3 votes
Accepted

htaccess file not redirecting routes on my React App

To get better understanding can we get an idea of where you are and where you want to be (Redirect) either non-existing pages to index.php or any other. Try the same in .htaccess RewriteEngine On ...
  • 177
3 votes

How to do mysql_secure_installation via ansible playbook?

I implemented this myself for my MariaDB installations some time back, and before I trusted anyone else to do it correctly. These are the steps I performed: # mysql_secure_installation - name: ...
3 votes

High availability MariaDB only two servers

You have two nodes. Don't use master-master of any kind, it's incredibly prone to split-brain on two nodes (it's almost guaranteed to happen eventually). This kind of stateful application can't be ...
  • 7,006
3 votes
Accepted

Web server CPU Utilization slowly increasing with LAMP stack?

There was a bug in google-osconfig-agent which now appears to have been fixed. Try sudo apt-get update && sudo apt-get upgrade google-osconfig-agent.
  • 144
2 votes

How to check if my cron jobs are executed?

This question is really about anacron, which runs these cycled cron jobs. First, make sure that your anacrontab file has valid syntax. If you see nothing, then it's fine: /usr/sbin/anacron -T Next, ...
2 votes

best way to debug nginx rewrite rules in config file?

Another good debug step is to check if your Nginx rules are being taken into account at all: location /test { return 200 'My test'; }

Only top scored, non community-wiki answers of a minimum length are eligible