Questions tagged [lamp]

LAMP refers to a stack of web technologies based on Linux, Apache, MySQL, and PHP/Perl/Python.

lamp
Filter by
Sorted by
Tagged with
16 votes
6 answers
17k views

Are there any disadvantages to using Bitnami vs a native server stack? [closed]

I have read about the advantages of using a BitNami stack for LAMP development, now I am wondering if there are any drawbacks to using BitNami vs manually installing PHP, MySQL, and Apache separately. ...
5 votes
3 answers
11k views

How to update Bitnami LAMP stack?

I'm running a few Bitnami LAMP stacks and so far it's been very convenient and most things work as expected. I've been searching for information on how to update Apache, MySQL, and PHP. They're ...
-2 votes
0 answers
24 views

Setting up LAMP on Ubuntu 22.04: PHP info not displaying in browser

Why doesn't the PHP info webpage appear when testing PHP 8.1, installed during the LAMP setup on Ubuntu 22.04? Could someone provide a command-line add-on with an explanation? Additionally, could you ...
0 votes
0 answers
33 views

How to isolate PHP apps from each other on a local machine(Windows or Linux)?

For example, I use XAMPP on Windows and I have the following file structure: C:\xampp\htdocs\website_1 C:\xampp\htdocs\website_2 C:\xampp\htdocs\website_3 By default, any script e.g. in the website_1 ...
2 votes
3 answers
1k views

My docker-compose lamp stack doesn't work after a software update : Error with 'ContainerConfig'

EDIT : For problem resolution, see below. I updated my server today, docker containers and images too, but now it refuses to work properly. Maybe an update changed the way we need to write the docker-...
4 votes
3 answers
15k views

how to install php 5.4 with ubuntu 16??

I have install LAMP stack on ubuntu 16, I got php 7. I want to downgrade it to php 5.4 . what command should I use to remove php 7 and install php 5.4 in my ubuntu 16?
11 votes
5 answers
72k views

How to fix "E: The list of sources could not be read" could not be read error?

I have added these two lines in etc/apt/sources.list.d/webmin.list `deb http://download.webmin.com/download/repository sarge contribdeb` `http://download.webmin.com/download/repository sarge contrib`...
0 votes
0 answers
26 views

AWS-LAMP Bitnami | External API Call Error

I have Bitnami LAMP Instance running in AWS LightSail. My PHP code is hitting 2 external API (API-1 & API2) for Stock data with two different systems/endpoint. When i run this code on local, both ...
31 votes
8 answers
118k views

Apache proxfy_fcgi - Error dispatching request to

I have cloud hosting on Google, it sucks for to be honest but I am trying to get on with it, I installed LAMP stack on a VM and put my website in htdocs. When I try to access my site it gives me ...
0 votes
0 answers
21 views

Apache2 failing when enabling php mod (Ubuntu 20.4)

I've install php5.3 (from ppa:sergey-dryabzhinsky/php53), but when installing apache2 and then enabling it through sudo a2enmod php53 the output says to run sudo systemctl restart apache2, however ...
0 votes
0 answers
7 views

Configuring Netbeans on Linux mint with LAMP

(I'm a new by in configuration) I have istalled apache2, mysql, php and netbeans on my pc. I also have an HTML file and php files. the localhost is located at .var/www/html/ i suppose because in such ...
0 votes
1 answer
49 views

AWS EC2 Bitnami Wordpress - Can't get username or password- access denied (public key)

I have installed the bitnami wordpress LAMP stack onto AWS EC2 instance free tier. The wordpress site is up and working but I cannot get into wordpress admin. I can't get the password or username for ...
2 votes
2 answers
5k views

How to completely remove Apache from Ubuntu 16.04 LTS

I have tried all the steps in the given in the AskUbuntu forums but all in vain.I removed entire LAMP Stack as well.But Apache2 Ubuntu Default Page loads up.I want to shift to Nginx and try and test ...
2 votes
1 answer
12k views

Unable to restart MySQL on CentOS 7 after resetting root user password

I have reset the MySQL root user password using the following steps Stop MySQL # systemctl stop mysqld Start safe mode # mysqld_safe --skip-grant-tables & Logged in as root # mysql -u root ...
7 votes
3 answers
24k views

Is it possible to use an Amazon EC2 instance as an email server?

I want to be able to run an EC2 instance (CentOS LAMP based) as a mail server and create email addresses for users when they sign up so that they can upload files via email. The emails would be parsed ...
7 votes
2 answers
9k views

XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system

My xampp suddenly shows this when i run sudo /opt/lampp/lampp start XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system. It was working ...
1 vote
1 answer
3k views

Downgrading PHP Version 8.1 to 7.4 LAMP instance in AWS Lightsail

I created a LAMP(PHP 8) instance on AWS Lightsail. My PHP version is v8.1.16. However, I need version v7.4 now. How can I downgrade v8.1 to v7.4? Should I recreate the instance with v7.4?
0 votes
0 answers
13 views

Suggest the best software stack for a large buyer/supplier portal

I am working with a company that prints construction logos on large banners to place on the construction site. They do about 5 million in business per year with 7 large accounts that have 200-300 ...
27 votes
9 answers
138k views

Permission denied inside /var/www/html when creating a website and it's files with the apache2 server

UPDATE** The screenshot is within atom, but when I navigate to the directory using the file explorer, and right click, the option to rename or create a new folder are restricted and I cannot click on ...
5 votes
5 answers
27k views

How to fix "Uncaught ReflectionException: Class view does not exist" in Laravel after deployment to Ubuntu 18.04 server [closed]

I am currently hosting an application on a ubuntu 16.04 server... but when i try to deploy the same code on fresh ubuntu 18.04 server i get the following error on my apache logs PHP Fatal error: ...
15 votes
3 answers
15k views

I get "laravel: command not found" on Ubuntu 20.04

I did a fresh install of Ubuntu 20.04 LTS (Focal Fossa), installed Apache, PHP, MySQL and PHP Composer seemingly without issue. However, I still cannot get laravel -V to give me a version number. I ...
0 votes
1 answer
43 views

PHP: file functions (filesize, readile, unlink) don't work for file created by mysql

I have the following query (apache, php-7.4.33, mysql): SELECT [blah] from [blah] INTO OUTFILE $tmpfile FIELDS TERMINATED BY ',' FIELDS TERMINATED BY '\n'; I am trying to download this from the ...
32 votes
7 answers
47k views

How Can I Enable Root SSH Access in An Amazon EC2 Instance?

This issue has been bugging me for the past several days. I've been working on setting up a LAMP Server on Amazon EC2. The main issue is that I'm writing an application for a client that requires a ...
1 vote
1 answer
55 views

What is the simplest way to authenticate and send email from my mailbox via DO LAMP

I have a LAMP (on DigitalOcean) and want to authenticate with my webmail provider (which supports IMAP over SSL/TLS) and send emails. I have done this many times from a symfony application using ...
6 votes
4 answers
11k views

Where to put website files in Bitnami LAMP Ubuntu server

Wheres the default folder in Bitnami LAMP? The server is running but I dont know where to put my html files? I mean in comparison with XAMPP and WAMP, the default is you put it on xampp/htdocs/ or ...
0 votes
1 answer
186 views

Apache proxy_fcgi - Error and PHP Fatal error

I'm getting this error (I attach log) and my domain returns an HTTP 500 error, I haven't changed anything unless I enabled WP-debug in the wp-config file, even if I disable it the problem persists, ...
0 votes
1 answer
9k views

PHP-FPM and timeouts (503)

i've had some problem with my server running Nginx + PHP-FPM setup. This week our users have seen 503 after around 02.00 CEST. From browser it's timing out after a certain amount of time( over minutes ...
0 votes
0 answers
85 views

Podman Apache 403 Forbidden

I've installed LAMP server inside Podman containers. I have mapped my ~/Projects folder as the http root (directing to /var/www/html inside the container) and the access works fine when I do http://...
1 vote
0 answers
70 views

CPU idle but waiting on Disk I/O (wait) on a LAMP stack takes forever sometimes [closed]

Sometimes my server gets slow because the CPU goes into idle mode it seems. Usually it only goes back to normal when I restart the server, but sometimes it goes back to normal by itself. image of CPU ...
0 votes
1 answer
108 views

Debugging PHP on remote Turnkey Linux LAMP server in VS Code

I've been trying to get debugging working in VS Code for hours and have read every tutorial and question and answer, but no luck. I have a server using Turnkey Linux LAMP with PHP 7.4 and Xdebug 3. On ...
0 votes
0 answers
14 views

Wrong error.log file being written to in Ubuntu

I have a LAMP Droplet set up on DigitalOcean using Ubuntu 22.04 and I've created a number of Virtual Hosts within the /etc/apache2/sites-available dir, each with their own .conf file and setting a ...
0 votes
1 answer
44 views

Apache server not using the correct version of php

I want to switch my apache2 server from php5.6 to php7.4, following this stackoverflow solutions. However when I switched from php5.6 to php7.4, I get php5.6 then when I switched from php7.4 to php5.6,...
1 vote
0 answers
275 views

credential_page_library:48 [GSI_LOGGER]: The given origin is not allowed for the given client ID

I am trying to get google oauth working on my php webapp. I'm in dev, on a centos LAMP environment with a URL that is configured to http://centos-myapp.com via /etc/hosts on Windows. On https://...
1 vote
3 answers
5k views

Complete removal of apache2 under linux

I have problem with removing apache2 under ubuntu. What I tried is: sudo apt-get remove apache2 sudo apt-get purge apache2 unfortunatelly after any of upper commands, there are still files: sudo ...
0 votes
0 answers
14 views

Moving LAMP project from external machine to local

I can’t really understand how to move files of my website (lamp + Wordpress) from lamp stack on my external virtual machine to the local. I would be really glad if someone could explain me the steps. ...
-1 votes
4 answers
12k views

Phpmyadmin. mysqli_real_connect(): (HY000/2002): Permission denied. Connection for controluser as defined in your configuration failed [duplicate]

I have setup my wsl environment, successfully installed Apache, mysql, and php. I can access mysql in my command line, only by using "sudo -u root -p" I can't login to phpmyadmin,even with ...
12 votes
1 answer
3k views

.htaccess for PDF URL

I have a structure called /pdf/ where generated PDFs are stored. I am trying to use .htaccess to route visitors to the PDF folder. I have this rule in my .htaccess file: RewriteEngine On ...
1 vote
0 answers
179 views

Setting up SSH for WSL using Ubuntu, but can't edit ssd_config file with VSCode WSL2 window. It won't save - "operation not permitted"?

I'm following these instructions to set up LAMP on WSL. I got to step 3, and made the edits it instructed after "Make these edits:". However, after editing sshd_config using VSCode (in a WSL-...
0 votes
2 answers
529 views

why adminer.css is not reflecting even after restart the apache?

I installed adminer in Ubuntu 22.10 using CLI and it was working successfully in http://localhost/adminer. Now I want to change the theme. Adminer file location (usr/share/adminer). Here I added ...
0 votes
0 answers
75 views

LAMP stack without MySQL on GCP

I am using a dedicated Google Cloud MySQL instance on a LAMP stack, so how do I go about setting up a LAMP stack without the M in a Compute Engine ? Does installing the LAMP stack from the marketplace ...
0 votes
1 answer
120 views

Conditional Dependency Injection of different possible Eloquent models into controller method

In my Laravel project, which is meant for looking for buildings rents, I'm using an Eloquent model with a polymorphic relationship to store qualifications, both for users and rents. So then, I'm ...
0 votes
0 answers
164 views

Add self-signed ssl to apache and reverse proxy container dynamically/programmatically

I am trying to integrate ssl certificates with wildcard by implementing mkcert, because this is aimed at a local development environment (host OS windows 11) and I would like to use local urls. ...
0 votes
0 answers
110 views

Supervisor setup on laravel error can't find command 'php'

I am setup a Supervisor Configuration on my bitnami LAMP server but when I am ruining sudo supervisorctl error coming 'laravel_queue:laravel_queue_00 FATAL can't find command 'php'' My ...
0 votes
1 answer
66 views

Error "HTTP ERROR 500" while sign in to PHP website [duplicate]

I am a beginner in PHP and web development. I need to create a simple website with sign-in and sign-up functionality for testing purposes. I have installed a LAMP server on a CentOS 8 virtual machine ...
623 votes
92 answers
2.9m views

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I installed LAMP on Ubuntu 12.04 LTS (Precise Pangolin) and then set root password on phpMyAdmin. I forgot the password and now I am unable to login. When I try to change password through ...
0 votes
0 answers
31 views

war file application failed to start on tomcat

dear friend. The developers, I have a problem with the deployment of my WAR file. I manually added it using FileZilla FTP to the web app. It is displayed on the list of applications in the manager app,...
1 vote
1 answer
214 views

Adding PHP extension Inotify to docker-compose?

How do I add a PHP extention to an image? I am trying to build a LAMP docker with the PHP extension inotify tools My file looks like the following - what is next to get inotify working?: ` version: '...
0 votes
1 answer
2k views

How enabling SSL with localhost in ubuntu

I want to run Https in my localhost 'lamp' in Ubuntu lunix 14.04. I'm a certificate and copied the certificate in: /opt/lamp/ect/ssl.key/sslnewkey.key and I've copied the key private in: /opt/...
0 votes
0 answers
95 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
0 answers
89 views

CICD pipeline for LAMP stack application on AWS

I have a LAMP stack application on EC2 instance. The code (PHP) for this is on AWS CodeCommit and currently all developers make changes and check their changes in to the repository on AWS CodeCommit. ...

1
2 3 4 5
44