2,130 questions
2
votes
1
answer
62
views
Inserting a react app into a DIV in a traditional LAMP based website
Using vite, I did a npm run build for my mini react app.
It created a dist folder containing index.html page with the assets folder.
But I want the <div id="root"></div> from my ...
1
vote
0
answers
105
views
Problem connecting sqlite3 and php on linux
I have Apache web server installed on Manjaro(Sway) linux, and default location of projects is:
/srv/http/
I have created a folder for my project by the name test in the location and have created a ...
0
votes
1
answer
93
views
How insert data in MariaDB using docker and save changes of Database?
I am writing here because I am new in Docker world. In the past, I was using Vagrant in developing stuff. Installing OS + packages that I need was very easy. Now, Vagrant is load more resources than ...
1
vote
1
answer
326
views
Unable to Configure Virtual Hosts on Bitnami LAMP (AWS Lightsail) – Domains Not Pointing to Specific Directories
I'm running a Bitnami LAMP stack on an AWS Lightsail instance and trying to set up Virtual Hosts so that two domains point to different directories within htdocs. Specifically, I want:
domain1.fr to ...
0
votes
0
answers
101
views
How to change library lookup paths on Debian: Unable to load dynamic library 'gd.so'
I have 2 server A, B.
Server A works properly, server B doesn't.
On Server B, when I perform the command
php7.4 -d display_startup_errors=on -d display_errors=on
I get the following error:
Warning: ...
0
votes
0
answers
94
views
Installing LAMP + Laravel + valet
i am trying to install a LAMP environment(linux apache mysql php) + Laravel framework + Valet linux .
I would like some help if possible while i am going through this installment.
Currently i saw this ...
0
votes
2
answers
465
views
How do I change the phpmyadmin port?
After changing the port from 80 to 8033, only the page is displayed index.php . Previously, the second page of phpmyadmin was displayed. How do I display a page with phpmyadmin?
This is how I changed ...
-1
votes
2
answers
1k
views
Receiving 403 Forbidden Error in PHP on Ubuntu 22.04
I am encountering a persistent issue where I receive a 403 Forbidden error whenever I attempt to access any PHP file within directories on my Apache web server, except for index.php. This problem ...
0
votes
0
answers
139
views
How to Start Node Process in Background via Bash Script (and Survive Script's Finishing)
I run a webserver on a LAMP stack, which includes a secondary Node.js server running on localhost that some requests get passed off to. I normally start/restart this process manually, using these 3 ...
0
votes
0
answers
84
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 ...
5
votes
3
answers
5k
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-...
0
votes
0
answers
84
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
1
answer
700
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 ...
0
votes
1
answer
55
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 ...
1
vote
1
answer
135
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 ...
0
votes
1
answer
1k
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
375
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
1
answer
85
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
748
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://...
0
votes
0
answers
167
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
285
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
1
answer
118
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 ...
1
vote
1
answer
581
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
0
answers
178
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.
...
2
votes
1
answer
90
views
'with' method on Eloquent returns empty collection in HasMany relationship
I'm having this issue:
I have defined two models with a HasMany relationship like this:
DepartamentoPersonalizado.php:
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\...
-2
votes
1
answer
1k
views
MySQL service not found
I am dealing with a frustating problem. I have a CMS website that was working fine and dandy until it couldn't recognize mysql being installed. I have AWS LightSail LAMP Stack by Bitnami.
I can see ...
0
votes
0
answers
214
views
Nothing works to give write permissions to a folder (LAMP Lightsail)
The error log that kicked off all this:
PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/opt/bitnami/apache/htdocs/storage/logs/lumen-2023-06-30.log" ...
0
votes
1
answer
194
views
DYNU website domain redirects to router login
I recently got my Raspberry Pi hosting a Wordpress website using apache, so I am very new to this. I'm currently working on having DYNU host a domain name for me and I want it to direct traffic to my ...
0
votes
0
answers
30
views
Web server returns .php pages slowly (20+ sec) but .html and .jpg files return quickly: Everything was OK yesterday, no changes (Linode, Ubuntu, LAMP)
EDIT/UPDATE: The problem was on Linode's end. The solution was to ignore them telling us that something was wrong with our configuration, and to complain till they fixed whatever was wrong with that ...
-1
votes
1
answer
87
views
PHP apache2 LAMP After enabling mod php stopped working
PHP was working fine before enabling mods. I was trying to use rewrite mods.
I enabled mods with-
sudo a2enmod rewrite
sudo systemctl restart apache2
Also restarted apache also restarted computer.
...
1
vote
0
answers
53
views
i want to fix an error or repair the LAMP php server installation on AWS ec2 Linux instance
am having issues with access my phpMyadmin amazon aws. all was working fine but when i installed ssl certificate i get this problem.
the database is working fine but i cannot access the phpmyadmin to ...
-1
votes
1
answer
784
views
Laravel: New registered service provider in app doesn't work as expected
The issue is this one:
I've been reading and trying the examples from Laravel's official documentation, particularly the Service Providers section:
https://laravel.com/docs/10.x/providers#the-bindings-...
0
votes
0
answers
159
views
Bitnami Mediawiki set default page
I'm running a virtual machine for Mediawiki packaged by Bitnami (https://bitnami.com/redirect/to/2307584/bitnami-mediawiki-1.39.3-r2-debian-11-amd64.ova) and I've set a domain name for the machine so ...
0
votes
1
answer
367
views
Svelte application deployment
I have more or less finished my site development with Svelte.
I would deploy it to my own VPS, which will be using a typical LAMP setup.
I followed the doc and made the changes in svelte.config.js:
...
0
votes
0
answers
2k
views
Error "Unit mariadb.service not found" after installing mariadb-server
So I installed Mysql8.0 first, then i saw a post about it confliting with mariadb so I unninstalled mysql (dnf remove mysql-community-server) after that i installed mariadb-server(dnf install mariadb-...
0
votes
0
answers
556
views
Lightsail Laravel Bitnami setup - Default page loads instead of application
Set up Laravel on a Lightsail following the official guide here:https://docs.bitnami.com/aws/infrastructure/lamp/get-started/use-laravel/
But my server IP still returns the default You are now running ...
1
vote
1
answer
579
views
upload size increase not working (LAMP Docker)
cant upload +2m files
docker compose
version: "3.7"
services:
web-server:
build:
dockerfile: php.Dockerfile
context: .
restart: always
volumes:
- "./html/...
1
vote
1
answer
4k
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?
1
vote
1
answer
267
views
Why do I got php code when accessing phpmyadmin?
I'm trying to user phpymadmin on Ubuntu 22.04, I've already install LAMP server. When I accesss localhost/phpmyadmin on my browser, I get the following php code
I've already installed phpmyadmin and ...
0
votes
2
answers
1k
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
1
answer
172
views
Domain configured in LAMP gets redirect 301
I`m using LAMP in Ubuntu 22.04 for setting up Wordpress sites. After configuring new website with new IP and domain name in /etc/hosts file, I get 301 redirect form http://www.domain-2.com to http://...
0
votes
0
answers
466
views
Laravel 9 with Jetstream - Making a CRUD from a form with mass assignment, into an entity with a multivalued attribute
I'm developing an application for publishing and consulting real estate rents, using Laravel 9 with Jetstream.
Since I'm pretty new to Laravel, I'm following a tutorial in Youtube (in Spanish) which ...
0
votes
0
answers
250
views
Not able to open port 8888 on bitnami AWS LAMP instance
I need to open port 8888 on my bitnami AWS LAMP instance for websocket communication, but no matter what I do the port stays closed. I've tried so far:
sudo iptables -A INPUT -i eth0 -p tcp --dport ...
0
votes
2
answers
1k
views
Laravel 9 - Jetstream with Bootstrap (Jetstrap). Missing app.css and shows ugly view
I'm following this video tutorial (in spanish), which shows how to implement Jetstream with Bootstrap instead of Tailwinds: https://www.youtube.com/watch?v=Wt-OuBX6lEc&list=PLZ2ovOgdI-...
0
votes
1
answer
604
views
Laravel 9 - Jetstream Profile Photo loads fine while working with PHP server, but not in Apache
I've read this cuestion with a similar problem:
Laravel 8 Jetstream profile-photos not showing
However, I'm using now Laravel 9 instead of 8.
The issue is this one:
When I run my app using: 'php ...
1
vote
0
answers
241
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
1
answer
806
views
Legacy LAMP Stack on Docker
I want to preface this by saying this question is more about system design and is somewhat open-ended. There isn't anything, in particular, I need help with. But I would appreciate some guidance. I ...
1
vote
1
answer
763
views
Laravel: Can't access app from different URLs (with also different ports and servers) at the same time
Previously, I've asked for a Laravel issue in this question:
Laravel: Routing conflict when launching app by accesing "http://localhost/<myapp>/public", when project folder is placed ...
0
votes
1
answer
121
views
Docker files showing up as folders
At the moment I have setup a simple lamp stack environment with docker.
However, when I specify e.g. a php.ini file, the php.ini file shows up as a folder and not a specific ini file - which means ...
-3
votes
1
answer
370
views
Laravel: Routing conflict when launching app by accesing "http://localhost/<myapp>/public", when project folder is placed in default Apache directory
I'm getting started to build apps with Laravel framework, by following this video tutorial (in spanish):
https://www.youtube.com/watch?v=A-BL8Ir7puE&list=PLZ2ovOgdI-kWWS9aq8mfUDkJRfYib-SvF&...