Questions tagged [lamp]
Acronym for a development stack originally made up of Linux, Apache, MySQL and Perl/PHP/Python
669 questions
0
votes
0
answers
28
views
Why doesn't Apache on Unbuntu 22.0.4 recognize index.html as the default
I am using Vulr.com for a LAMP instance on Ubuntu 22.0.4.
DirectoryIndex seems to be correctly configured (see below), but index.html is not recognized as the default document.
Works
https://website....
0
votes
1
answer
755
views
Passthrough Windows AD authentication with LAMP GSSAPI/Kerberos
Trying to stand up a LAMP server on a Windows AD and get passthrough authentication working. One gotcha (which may not be as big of a deal as I'm making it), the hostname and hosted URL do NOT match: ...
0
votes
0
answers
304
views
Laravel: Logging messages generated by "error_log(...)" to terminal, while running app in Apache server
The issue is this one:
When I run a Laravel app from PHP server, that's it, with php artisan serve, I could see every message generated by "error_log(...)" printed in the terminal, like this:...
0
votes
1
answer
620
views
Why is mysql-server not installing correctly?
I just launched a brand-new t4g.nano instance on AWS EC2. The first thing I typed in is apt update; apt upgrade; apt install mysql-server-8.0. Here's the full log:
$ ssh -i ~/downloads/*.pem ubuntu@[...
1
vote
0
answers
953
views
PHP-FPM child processes terminate for no apparent reason
// FIXED
Issue was Shopware 6.5 related
After weeks of unsuccessful debugging, we are now hoping for help here.
We have a system where we can create test instances for Shopware 5 and Shopware 6. The ...
0
votes
0
answers
53
views
Bind9 and Web Server on the same machine + domain setup
I want to ask can I setup for example LAMP with all domains and Bind9 on the same machine ?
If yes, ok.
Now I have one .com domain for example : site.com
Now I want to understand the steps to do to ...
0
votes
0
answers
330
views
AWS poor performance compared to DigitalOcean's
Why is my Apache2 server with PHP-FPM experiencing significantly lower performance on AWS EC2 instances compared to DigitalOcean Droplets? Despite similar hardware specifications and configurations, ...
0
votes
1
answer
53
views
Using old web application with outdated PHP version behind .htaccess folder protection
I probably need a web server with an outdated PHP Version (7.2.34) for an older HTML/PHP/MySQL based web application. Since it's for a manageable closed user group, I exceptionally considered using a ...
1
vote
1
answer
270
views
How to **keep** my SSLCipherSuite list for my LAMP stack current?
I have been running several LAMP servers for 5+ years with Let's Encrypt certs.
Today, I did the SSL test by Qualys https://www.ssllabs.com/ssltest/index.html to learn that I had lost my coveted A+ ...
0
votes
1
answer
2k
views
socket doesn't exist; Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I know the problem isn't new. But I have tried lots of thing. What I couldn't figure out is, socket wasn't available since I downloaded mysql.
/etc/my.cnf
/etc/mysql/my.cnf
/var/lib/mysql/my.cnf
None ...
-1
votes
1
answer
280
views
(PART 3) Docker environment for PHP Framework from scratch
i am runing this docker composer files with this enviroment:
version: "3.1"
services:
mysql:
container_name: mysql
image: 'mysql:8.0'
working_dir: /application
command: --...
0
votes
0
answers
26
views
CentOS7 VPS: Install WordPress with existing MySQL and httpd
Requirement: Install Wordpress in CentOs 7 VPS
Currently available:
Apache : Server version: Apache/2.4.35 (IUS), Server built: Dec 8 2018 02:08:22
MySQL : mysql Ver 14.14 Distrib 5.6.47, for Linux (...
0
votes
0
answers
296
views
New server Apache 2.4 + PHP responds very slowly
a customer asked to migrate their current server with plesk to a HA infrastructure.
I've created the structure with haproxy and apache 2.4, but i can see many requests take a looooong time (some of ...
0
votes
1
answer
39
views
Can I install dnsmasq on lamp web server?
Is it possible to install and run dnsmasq on a shared host webserver (standard lamp stack)? And how would one do this?
I use Siteground and Dreamhost. I think I can run a lamp stack on my NAS too ...
1
vote
0
answers
124
views
PHP upgrade 7.2 to 8 is not recognized by Wordpress
I have a VPS with LAMP stack and I tried to upgrade to PHP 8. When I run php -v the version is 8.1, but WordPress tells me it is 7.2.
So I created a php file
<?php phpinfo(); ?>
which tells me ...
1
vote
1
answer
211
views
Forbidden ... denying access to be safe [closed]
Total n00b here.
I'm running a LAMP stack using Raspbian OS on a Raspberry Pi 4 Model B.
I tried googling around, but I couldn't find a thread that matched my issue.
My jenga tower seemed pretty ...
0
votes
1
answer
3k
views
Failed to Import MySql database from phpMyAdmin as well as Command line
Well, I have tried to import small size database, it works. However, when I am about import a large database it shows the following error from phpMyadmin.
Static analysis:
1 errors were found during ...
0
votes
1
answer
339
views
Postfix emails error, loops back to myself
I'm struggling with Postfix to send out emails from a form on my website:
Google Domain, hosting provided by DigitalOcean with a LAMP droplet; this is my DNS config:
Mail function on my .php file ...
0
votes
0
answers
1k
views
Deploying symfony 5 application to shared hosting with just FTP access
I'm trying to deploy a Symfony web application on a server that only gives ftp access, without ssh possibilities, and I could only put files on two root folders: /data and /html folder. I'm trying to ...
1
vote
0
answers
889
views
Apache configuration doesn't update on restart
I'm running a LAMP development server with
Apache/2.4.41 on Ubuntu 20.04.3 LTS (5.11.0-38-generic).
When I modify apache or php configuration files such as apache2.conf or php.ini and then run
service ...
0
votes
1
answer
2k
views
Apache server error Ubuntu 18: Syntax error on line 1: <VirtualHost> directive missing closing >
I've been trying to get my Apache server running on Ubuntu, but in my
/etc/apache2/sites-enabled/dev.lamp.test.conf
file I get this error when I run apachectl stop
AH00526: Syntax error on line 1 of /...
0
votes
0
answers
36
views
How can I stop mail DNS records from showing my main website? [duplicate]
I’m relatively new to all this, so please bear with me. Most of everything I know is based on guesswork, following tutorials, trial & error…
Anyway, I have a pretty basic LAMP server going on ...
0
votes
0
answers
434
views
Easy way to update EC2 Instance
I am launching an EC2 instance and it seems the most popular WordPress AMI in the marketplace is the one provided by Bitnami. However, there is a big issue with the software/system update.
I ask ...
0
votes
1
answer
81
views
How to query linux kernel which storage-related operations are currently being run on the level of FS / block layer / SATA controller?
Every once in a while, our Linux LAMP server (using PHP-FPM, XFS on thin LVM on HW RAID, Centos8) becomes inaccessible and stops responding to HTTP(S) requests.
Via centralized logging we found out ...
0
votes
1
answer
540
views
How to Enable SSL for Amazon EC2 Instance(LAMP packaged by Bitnami)?
I launch an EC2 instance with an AMI from the marketplace, which is called LAMP packaged by Bitnami.
After the instance is launched, I find I can only access its DNS name or IP via HTTP, not HTTPS. It ...
1
vote
0
answers
294
views
Can't connect Wordpress and MariaDB on LAMP stack with docker-compose
I'm new here and that's my 1st question so tell me if anything is wrong in the way I put it.
So here's the problem: I'm building a LAMP stack with 3 separate containers for nginx, maiadb and wordpress....
0
votes
1
answer
581
views
Changing or updating the passphrase in gcp lamp vm
I am trying to download files from a particular folder from one of my vm's on gcp using the following command
gcloud compute scp --recurse VM_NAME:REMOTE_DIR LOCAL_DIR
After running the command the ...
1
vote
1
answer
6k
views
Apache "can't locate API module structure" with php73
newbie here. I was working on installing a LAMP environment on Manjaro for testing, trying to use older versions to match the production environment I have to work with (PHP 7.3, MySQL 5.6; got them ...
0
votes
0
answers
258
views
Cannot run bash script via php possible permissions
I have ffmpeg installed on a CentOS 7 machine running a standard LAMP stack. I can run ffmpeg fine by itself in a terminal, like so:
ffmpeg -i "rtsp://admin:[email protected]/play2.sdp" ...
0
votes
0
answers
45
views
Google LAMP trying to update sudo
I was trying to update sudo on my LAMP cloud server at Google, but to no avail it seems.
Doing sudo apt update, then sudo apt install --only-upgrade sudo if finds the same sudo as on the system: Get:1 ...
3
votes
1
answer
404
views
Web server CPU Utilization slowly increasing with LAMP stack?
I made a ton of changes to my website this year and noticed that my CPU Utilization has been gradually increasing for a couple of months (it slowly went from around 0% to 60% in about 2 months). After ...
0
votes
1
answer
126
views
How to run updates on Ubuntu command line without upgrading PHP
I run an Ubuntu server on 16.04 using LAMP stack. I ran into an issue last week when updating using:
sudo apt update
Basically PHP was automatically upgraded from 7.4 to 8.0 during the upgrade &...
4
votes
0
answers
7k
views
ERROR 1006 (HY000): Can't create database 'webdata' (errno: 2 "No such file or directory")
On Debian 10, I'm logging into MariaDB with
sudo mysql -u root -p
Then trying to create a DB
create database webdata;
ERROR 1006 (HY000): Can't create database 'webdata' (errno: 2 "No such file ...
3
votes
3
answers
3k
views
MySQL is extremly slow, is it possible that it's because the storage engine is located on NAS?
We have two similar spec HDD CentOS 7 servers for two different clients in different countries, both clients have the same database and same indexes.
Client A: The server is only running MySQL 8 and ...
5
votes
3
answers
6k
views
High availability MariaDB only two servers
I'm not worried about split brain since the connection between the two servers is solid (and because I don't have a third machine)
I want to have some MariaDB replication with automatic failover so ...
1
vote
0
answers
765
views
How to actually set up MariaDB replication/high availability
I'm setting up a high availability LAMP stack - so far, I have two servers with HAProxy running on both their frontends that own a floating IP. HAProxy redirects requests to backend Apache servers ...
0
votes
1
answer
2k
views
Lightsail LAMP - Virtual Hosts stopped working after adding SSL
After hours and hours of efforts on research, I'm posting this.
I'm trying to add a domain and its sub-domain on a single static IP created in LAMP instance in Amazon Lightsail, and add Let's Encrypt ...
1
vote
0
answers
475
views
Number of MySQL connections spikes, but no spike in number of queries
I am running LAMP stack with CakePHP and MySQL compatible AWS Aurora instance. The Aurora instance is set up with a writer and read replica. Using CakePHP request routing, the read replica is only set ...
0
votes
0
answers
825
views
What is the name of the apache process owner?
After running
$ps aux | grep httpd
the terminal output is
root 26923 0.0 0.0 14428 1044 pts/0 S+ 17:43 0:00 grep --color=auto httpd
I'm trying to change the owner of a path on a ...
9
votes
4
answers
20k
views
How to do mysql_secure_installation via ansible playbook?
I managed to install Apache Mysql/Mariadb and PHP using playbook. How can I do mysql_secure_installation using ansible?
I am a beginner in Ansible. I want to set a new password to MySQL server and ...
-2
votes
1
answer
900
views
Regarding Hosting Static website in Digital ocean spaces [closed]
I need to host my static website in Digital ocean space. I am looking for something similar that we do in AWS S3 static website hosting in the Digital ocean. Is the feature is available in DO? Looking ...
1
vote
2
answers
132
views
Configuring an Ubuntu 20.04 server
this is the first time I am setting up an Ubuntu server. It is going to run a low-usage app for a company but I want to make sure not to leave any security issues out.
1) I installed a fresh Ubuntu ...
0
votes
1
answer
4k
views
XAMPP on Catalina - Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' [closed]
i installed xampp to make a local website. i finished the website and tried to export the db to switch to production and i noticed that the DB in php my admin seemed to be empty ( which couldn't be ...
1
vote
1
answer
5k
views
How do I comletely remove the LAMP -Linux, Apache Mysql and php from ubuntu 18.04 installing in VM
How can I completely uninstall LAMP installed in the Ubuntu 18.04 which is running in the VM, from the code I like to remove and make completely free now.
0
votes
0
answers
75
views
How to get a server ready for hosting a website? [duplicate]
Currently, my companies' website is hosted on a web hosting company which they provide everything (WHM, cPanel, E-mail server, LAMP, security and etc...)
We have to move the website to a private ...
0
votes
0
answers
112
views
I am using 'sudo apt-get clean' too often nowadays, how can I avoid using it again?
I have a LAMP server hosted by Digital Ocean that has been running for more than 3 years. I use the server to run an ERP page where users have to log in to do what they need to do.
Up until recently ...
0
votes
3
answers
758
views
Stable headless LEMP server Debian vs Ubuntu
I used Debian for my servers for several years now.
I'm looking for stability only doing security updates. In the past I had some issues with Ubuntu after an update. Debian has always been rock solid ...
0
votes
1
answer
137
views
Can undefined variables and notices cause a cpu spike?
We're running centos 6.7, PHP 5 and MySQL 5.5 and Apache 2.2.15. Sometimes we see high CPU usage, mainly caused by MySQL so we take all the logs we can get. We're addressing MySQL optimization ...
0
votes
2
answers
342
views
Apache crashes due to bots
I am running a LAMP stack on an AWS Ubuntu server. Every now and then (perhaps once a week, once every other week) Apache will crash and the site will go down. Looking at the Apache error logs, I have ...
0
votes
0
answers
311
views
Memory leak - a simple phpinfo() page increases container memory usage
I have a PHP Info page containing the following:
<?php
print(phpinfo());
?>
But every time the page is reloaded, a docker stats commands shows that the memory usage goes up by 0.25%
I have ...