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 ...
dmourati's user avatar
  • 25.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/...
Misha Aghamalyan's user avatar
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 ...
fr_andres's user avatar
  • 161
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 ...
Jason Martin's user avatar
  • 5,093
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 ...
EEAA's user avatar
  • 110k
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 ...
user9517's user avatar
  • 116k
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 ...
sysadmin1138's user avatar
  • 134k
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. ...
Tim's user avatar
  • 32.9k
4 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: ...
Michael Hampton's user avatar
4 votes

How to do mysql_secure_installation via ansible playbook?

You can do this with Ansible's Expect Module. Here is an example: - name: secure mariadb become: yes expect: command: mysql_secure_installation responses: 'Enter current password for ...
xmoex's user avatar
  • 141
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 ...
Phill  W.'s user avatar
  • 1,511
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 ...
symcbean's user avatar
  • 22.4k
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 ...
ignivs's user avatar
  • 459
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, ...
EEAA's user avatar
  • 110k
3 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, ...
Simon Woodside's user avatar
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 ...
yagmoth555's user avatar
  • 17.1k
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,...
HBruijn's user avatar
  • 80.3k
3 votes

Where to redirect HTTPS on a WordPress LAMP setup?

Apache virtual hosts. Use the Wordpress settings to update the site URL.
Tim's user avatar
  • 32.9k
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=...
HBruijn's user avatar
  • 80.3k
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 ...
Aiden's user avatar
  • 197
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 ...
Spooler's user avatar
  • 7,136
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.
cpcallen's user avatar
  • 144
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'; }
Lucas Bustamante's user avatar
2 votes
Accepted

OCSP Stapling on LAMP with Let's Encrypt

This is a short shell snippet that utilizes openssl: openssl s_client -connect pavelstriz.cz:443 -tls1 -tlsextdebug -status |grep OCSP -A 2 -B 1 You should see something along: OCSP Response ...
M. Glatki's user avatar
  • 2,084
2 votes
Accepted

LAMP Server 100% CPU Usage from 5 WP sites

Turns out the site had been migrated from another server and the old server was left on. The old server was calling wp-cron.php some 10 times per second by the domain name and hence calling the new ...
George's user avatar
  • 31
2 votes

Error while compiling apr-util for apache with LDAP support

In the line: checking for ldap_init in -lopenldap... no it is trying to link against a library called openldap, but when I look in my openldap lib dir I don't see a libopenldap.so: liblber.so ...
Luke Dixon's user avatar
2 votes
Accepted

Docker: FTP/SFTP to /var/www/ in Docker Container?

Use docker volumes, to store files in host system. For example, you can run your image with these options: docker run --name mylamp -v /docker/site:/var/www -p 80:80 me/mylamp:tag Now, your mylamp ...
Slezhuk's user avatar
  • 375
2 votes

How to add IP to EC2 firewall

Check the security group attached with your instance. Go ahead with adding rule like 'protocol:tcp' 'port 10000' in "Inbound traffic" allowing only from your IP using 'MyIP' or from 'anywhere'. Verify ...
chandru-ops's user avatar
2 votes

Large file uploads to S3 - concern to server?

Well, practically speaking, your server has a finite amount of resources available to it, and these uploads will compete for resources with the rest of the items in your server's workload. Whether or ...
EEAA's user avatar
  • 110k
2 votes
Accepted

Docker Compose can't get environment variables and relation information

It's because you're setting the environment variables at the docker-compose.yml but trying to reference them in build time (aka RUN env). Those variables will only be available after the image is ...
Gustavo Kawamoto's user avatar

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