Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

apache mod_php vs php_fpm - huge difference in load time, but only for Wordpress website

I have a Wordpress website, it was set up as nginx proxy apache mod_php. Load time was over 2.5 seconds, so I tried several ways to speed it up. Finally I tried php_fpm and voila - the website loaded ...
Nick's user avatar
  • 882
0 votes
0 answers
61 views

Fatal error: Uncaught Error: Call to undefined function mysqli_connect() on Debian 12.5 with Apache2

I am trying to run my server with php 8.2 but it can't connect to my MariaDB database with mysqli. I have extension=mysqli in my php.ini When I do php -m | grep mysqli I get this: % php -m | grep ...
aaaaa's user avatar
  • 1
1 vote
1 answer
41 views

.htaccess to accept parameters in URL

I have a WordPress page with the following structure website.com.au/pre-registration/parameter-value/, where the parameter value was originally a GET parameter, but I was requested to make it part of ...
Leonardo Pessatti's user avatar
0 votes
1 answer
86 views

Apache PHP 8 keeps getting disabled

I have an Ubuntu Linux server (20.04) running Apache2 version 2.4.41 $ apachectl -v Server version: Apache/2.4.41 (Ubuntu) Server built: 2024-04-10T17:46:26 with PHP8 enabled in /etc/apache2/mods-...
Jeff Loughlin's user avatar
0 votes
1 answer
59 views

Apache2 Not Running Custom PHP App After Uploading to /var/www/html folder

I am installing a software that I bought. It's in PHP. So, I got a DigitalOcean server(ubuntu 22.04). Installed Apache2 and PHP 8.1. Now, when I upload files to /var/www/html folder, it does nothing ...
Salman Khan's user avatar
0 votes
0 answers
203 views

Apache2 with GSSAPI auth, can't exclude one location from auth

We have an apache2 serving a PHP application, with kerberos authentication We developed an API within the PHP application, and we want to access it without Kerberos auth But we cannot manage to ...
Wad's user avatar
  • 1
0 votes
0 answers
107 views

Ubuntu Apache2 mod headers - not adding

I have an ubunutu server with apache2 server and I need to add a custom header to every request. This seems very straightforward, but it's not adding the header. I have enabled the module headers with ...
Hugo Delsing's user avatar
0 votes
1 answer
476 views

htaccess rewrite rule to a specific PHP page doesn't work

I have the following code in my .htaccess file, placed in the root of my Ubuntu 22.04 instance: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
Frank Eno's user avatar
  • 101
0 votes
1 answer
598 views

PHP Fatal Error: Cannot open /dev/urandom: No such file or directory when calling session_start() with manually built PHP

Problem I built PHP8.4 manually in Ubuntu 14.04 since the OS is out of support with no ppa package available. I tested for phpinfo() web page showed correct information while adding session_start() at ...
NeNe's user avatar
  • 3
0 votes
1 answer
652 views

Issue with Web Server running PHP thru Reverse Proxy

I'm using an NGINX reverse proxy, with wild card certs installed on the reverse proxy. Routing the NGINX reverse proxy traffic to standard web servers that are running Apache2 and NGINX Web services ...
Surfingjoe's user avatar
2 votes
0 answers
304 views

Apache creates ~3x as many threads as MaxRequestWorkers

I'm hosting a non-profit community wiki for the upcoming video game Baldur's Gate 3. Since it looks like the game is likely to have millions of players, we started worrying about server capacity. I'm ...
TaylanKammer's user avatar
0 votes
0 answers
60 views

Web server returning high number of 502 and 504s

We have a web application (LAMP stack) with traefik as a reverse proxy that is suddenly giving HTTP 502 and 504 errors on >50% of requests, both for static files and php scripts. In the traefik ...
bkane521's user avatar
  • 101
0 votes
1 answer
332 views

Remote MySQL server returning: MySQL server has gone away / Error while sending QUERY packet

I have 2 servers (both running Ubuntu 12.04) APP server running apache2, PHP7.2 and a CakePHP 2.0 APP DATABASE server running mysql 5.7 When I'am trying to insert into the database a big blob (...
updevs's user avatar
  • 1
0 votes
2 answers
362 views

telnet to port 80 (nginx), with forward to apache2 at port 8080, fails with 'connection closed by foreign host' and no explanations seemingly anywhere

i'm running an Kubuntu 22.04 server, and want to shuttle LAN-only traffic from port 80, served as far as i can tell by nginx, to port 8080 served by apache2 (for PHP purposes). but i'm getting this &...
Rene Veerman's user avatar
1 vote
1 answer
224 views

Find what paths are required for open_basedir?

We have a server (running PHP-FPM 7.4 on Apache) that hosts various scripts, frameworks and applications like DokuWiki. It's grown to a pretty complex beast. We would like to apply an open_basedir ...
xebeche's user avatar
  • 363
0 votes
0 answers
628 views

AmazonLinux 2022 Fails to Run PHP Scripts - Error AH02454

I am attempting to run basic PHP scripts on an Amazon Linux 2022 or Amazon Linux 2023 server instance. I followed the directions here and when I request index.html it serves a static page fine. ...
Steve's user avatar
  • 125
0 votes
2 answers
547 views

Stuck on php8.1 when downgrading to php7.4

I upgraded the php version on my Apache server running on Debian (buster) from 7.3 to 8.1. Due to an older Nextcloud installation I had to downgrade to php7.4. The downgrade worked well following ...
droid001's user avatar
0 votes
1 answer
145 views

Apache not serving local hosts

I have set up an Apache Server on an a VMWare hosted Linux Mint 21 Server, I have followed the instructions at this blog to run multiple PHP versions (7.4 and 8.1). Apache is running fine and serving ...
deep64blue's user avatar
0 votes
2 answers
804 views

After setting up Apache it's not serving PHP files, but showing the contents of the files instead

The error I got is in this url: url in browser: http://localhost/ error in browser: https://justpaste.it/d82bd What am I missing here? I copied the file ipconfig.php (given below) from ipconfig.php....
Love Grover's user avatar
1 vote
1 answer
1k views

Nextcloud installation broken after upgrading to Ubuntu server 22.04

I'm currently running Nextcloud on Ubuntu server. After upgrading from 20.04 LTS to 22.04 LTS, I couldn't log into Nextcloud. I switched the PHP modules from 7.4 to 8.1 as recommended in this forum ...
David Chidester's user avatar
0 votes
1 answer
222 views

Fix virtualmin domains to use individual php ini files

My server is setup to use virtualmin for managing configurations. In trying to resolve a php issue when a wordpress plugin installation, I inadvertently broke the settings on my domains so they no ...
Mark's user avatar
  • 331
0 votes
0 answers
228 views

Apache2 not working with PHP

I have Apache2 running on a Debian 11 box (x64). It was installed with an Openmediavault ISO, with nginx and PHP 7.4 installed already (for the web UI) I try to install the PHP connector for apache2 (...
EnderSlayer7692's user avatar
0 votes
1 answer
23 views

Apache2 Virtualization For A File

My folder stracture like that; system core bootstrap run In run folder I have a file php file. I can include other files like; include '../core/...php' But I want to block that. Can I set it apart ...
Ömer Faruk Demirel's user avatar
1 vote
0 answers
877 views

PHP Websocket in a SSL-enabled website served by apache

I have the following WebSocket code in PHP, which works well when connecting to it by using plain-text ws:// but when I try to connect to it from a front-end Javascript in my SSL-enabled website I get ...
CDoc's user avatar
  • 111
0 votes
0 answers
348 views

Cacti - Unable to find certain search query results (Search Returned no Rows.)

Posting question here since no response on cacti forums. We are using older version of cacti Version 0.8.8b for graphing and and monitoring our network. Most of features and graphs are working fine ...
rafalefighter's user avatar
0 votes
1 answer
299 views

Macos changing user in Apache breaks PHP SESSION persistence

I am using Macos built-in Apache server locally for development. I have developed a site which uses PHP and relies on session cookies to persist sessions. With the default Apache setup, everything ...
KevinHJ's user avatar
  • 101
0 votes
0 answers
1k views

Redirected Too Many Times on Apache2

I'm using apache2 to host a website on Ubuntu Server. When I try to load the page from a browser, I get the "this page redirected you too many times" error. I don't have any duplicate files ...
Wilson T.'s user avatar
0 votes
0 answers
3k views

How to set pdo driver in apache?

I have a Debian 11 server On my website I have the following error: Caused by: PDOException could not find driver According to what the phpinfo() function returns, my php.ini file is in: /etc/php/7.4/...
Jorge Palacios Zaratiegui's user avatar
2 votes
0 answers
172 views

Returning custom HTTP status apache2

I'm hosting a webpage with apache and would like to be able to return custom HTTP status codes on a certain page. PHP does this just fine with http_response_code($code) but once it gets to apache it ...
Juckix's user avatar
  • 21
0 votes
1 answer
1k views

Apache2 serves PHP as plain text after updating to PHP 8

I just updated from PHP7 to PHP8. Now my Apache2 is going crazy. The server is or not accessible, or shows my PHP as plain text. php -v iel@MacBook-Pro-van-Niel apache2 % php -v PHP 8.0.12 (cli) (...
O'Niel's user avatar
  • 105
0 votes
1 answer
762 views

Ubuntu 18.04: PHP stopped working after I tried to fix phpmyadmin

I have a problem with a Ubuntu 18.04.6 Ubuntu server. I was trying to fix a problem with phpMyAdmin (a lot of errors appearing on screen, and preventing me to use it, pointing to some authorization ...
simonelippolis's user avatar
0 votes
1 answer
1k views

Can't upgrade debian stretch php to 7.x [closed]

I need to upgrade my server (debian 9) php version from 7.0 to 7.1 at least, but it seems that apt doesn't find any version. I did: apt update apt upgrade And now if I do apt install php7 or apt ...
Entretoize's user avatar
0 votes
1 answer
30 views

How do I make it so that pages that don't physically exist link to certain page only if after a certain directory?

How do I make it so that when a user goes to mydomain.com/test/<any page after this point> It displays the page at mydomain.com/testhandler/ and without returning any error. For an example I ...
Laith Striegher's user avatar
0 votes
1 answer
1k views

How to respond to "NOTICE: Not enabling PHP 7.4 FPM by default." from system upgrade

I did a standard OS update on Ubuntu LTS (20.04) and the messages end with: Processing triggers for php7.4-fpm (7.4.3-4ubuntu2.6) ... NOTICE: Not enabling PHP 7.4 FPM by default. NOTICE: To enable PHP ...
CPBL's user avatar
  • 101
2 votes
0 answers
1k views

Apache2 Segmentation Fault after upgrading to PHP8.0 Ubuntu 20

I recently upgraded a production server from PHP 7.4 to PHP 8.0 (this is using the ondrej packages). As a reference, I'm using Ubuntu 20.04.3, apache2.4.46 and now PHP8.0. After about 18 hours, the ...
Alex's user avatar
  • 221
0 votes
2 answers
619 views

How to block potential attackers on my server

To keep it brief and simple, I will go straight to the point. It seems a bunch of ip adresses are trying to access files that have potential of containing sensitive server information on my website ...
Dennisrec's user avatar
  • 121
0 votes
0 answers
776 views

Handling simultaneous requests in Apache 2 and php-fpm

We have a Debian 10 server with Apache2 and PHP-FPM installed. The problem is that when I try to process multiple requests simultaneously from one client, server doesn't handle it correctly. For ...
Mahyar Khanbabai's user avatar
0 votes
0 answers
113 views

Apache2 timeout

For several weeks now, I've been experiencing timeout problems with Apache2 making my application inacessible. It's an e-commerce website developed in PHP (stack : PHP7.2-FPM, PostgreSQL, Apache2.4.25,...
Supras's user avatar
  • 1
0 votes
0 answers
2k views

Can't get Imagick PHP Extension to load when building PHP from source

I've built PHP 7.4 from source, and installed ImageMagick via yum. When I run convert --version i got Version: ImageMagick 6.9.10-68 Q16 x86_64 2021-02-24 Then I ran pecl install imagick and it says ...
Barry Ralphs's user avatar
1 vote
1 answer
4k views

Apache remains on PHP 7 while server versions is php 8

I've just installed php 8 (following https://rpms.remirepo.net/wizard/) on my VPS running CentOS 7. While in the CLI it shows that PHP 8 is available, when I serve a webpage with phpinfo() it still ...
Robert Bouten's user avatar
0 votes
1 answer
210 views

Apache + PHP not showing any formating

What I am going to ask is probably a simple problem but I can't figure out solution. I have installed apache2 on Debian server and updated php to version 7.3. I think that I have made a mistake when ...
Maty's user avatar
  • 11
0 votes
1 answer
73 views

How to redirect search.php?query=test&search=1&s=1 to /query/test

I have tried other things, but I cannnot get it to work, when I go to the main website, (index.php is just a include of search.php) it will send me to this /query/search.php/search.php/search.php/...
Nate Sturtz's user avatar
0 votes
1 answer
782 views

Why does Apache server return 404 on subfolder, when it was previously working

I just installed some new SSL from GoDaddy on my Apache Ubuntu server. I then restarted via SSH and everything looks good. The root site (a wordpress install) now loads fine with https. However, there ...
Dave's user avatar
  • 101
-1 votes
1 answer
26 views

How two different applications should get served using one single apache2 virtualhost configuration

Just for assumption here testsite.com which is my php application and testsite.com/project is python application I have following settings in my apache site config file /etc/apache2/sites-available/...
Sunny Chaudhari's user avatar
1 vote
0 answers
35 views

How to enable MultiViews on Heroku?

I'm trying to enable MultiViews on an Heroku site, but I can't understand how to do it. When I do it on servers I control, I do it on the httpd.conf file, but here I have to use it in a Directory ...
o0'.'s user avatar
  • 411
0 votes
0 answers
94 views

Passthru works in development server but not in apache

I'm trying to execute a Python script from a Laravel project in Ubuntu 20.04 using this code: passthru('/usr/bin/python3 /var/www/birra/public/setauto.py DB_D1 false'); $output = ob_get_clean(); ...
Gamopo's user avatar
  • 101
0 votes
1 answer
1k views

Use multiple PHP-FPM versions using FastCGI on same Debian/Apache server

I would like to use multiple PHP-FPM versions using FastCGI on same Debian/Apache server. Using: Debian v9.12, Apache v2.4.25, php5.6-fpm, php7.4-fpm, libapache2-mod-fcgid v1:2.3.9-1+b1, libapache2-...
klor's user avatar
  • 364
0 votes
3 answers
4k views

How to tell .htaccess to only allow requests to index.php and app/dist/* folder?

This is the current folder: /app /dist /index.html /index.css /index.js /src /configurations.json /index.php /configurations.php I have sensitive data everywhere: app/src/... /......
Carl Gentleman's user avatar
0 votes
1 answer
4k views

Error: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

I have the very same setup as shown in this thread and I'm having the same exact problem. I've already retraced my steps several times over the installation process of the PHP + Apache + PostgreSQL, ...
Peter Winter's user avatar
1 vote
1 answer
2k views

Convert Apache2 configuration to nginx configuration

I have RHEL 6 with apache/httpd (v2.2) configured to handle two different path of WordPress: FOO path: /var/www/html/FOO/ BAR path: /var/www/html/BAR/ We plan to move to a new machine running RHEL 7 ...
Mohamed ElHarery's user avatar