All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
86 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
95 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
118 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
99 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
44 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
118 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
144 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
122 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
190 views

Php and shell_exec are a good way to process many detached process on a CentOs server?

During execution of a php webservice, i need to detach a "time consuming function" to maintain a quick response to the user. That's an example of the flow : I know that php does not manage ...
user31929's user avatar
  • 101
0 votes
0 answers
255 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
0 answers
384 views

'combination of host and port requires TLS' when running Tomcat application

0 I had an Apache configured to run on HTTPS. Also a Tomcat application running without the 8080 port and in HTTPS. Everything perfect since I had to install Drupal 10 (using composer) that needed a ...
user1249791's user avatar
0 votes
2 answers
397 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
128 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
692 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
184 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
180 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
22 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
700 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
304 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
211 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
  • 97
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
2k 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
145 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
763 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
662 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
981 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
29 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
997 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
588 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
645 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
106 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
1k 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
3k 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
148 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
42 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
712 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
34 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
78 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
  • 344
0 votes
3 answers
3k 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
3k 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
0 votes
2 answers
4k views

How to stop PHP service without stoping web-server service?

PHP can be stop by stopping the web-server service. e.g. # /etc/init.d/apache2 stop or # apache2ctl stop Would it be possible to stop PHP alone without disrupting apache2 service?
Wolf's user avatar
  • 211
0 votes
1 answer
2k views

Sometimes ipv4 address instead of ipv6 address

On my website, which runs with apache2 on a debian server with an aaa-record, I check with php whether the user uses IPv6 or not. For this I get the IP address of the user with the following code ...
Torge Stehr's user avatar
0 votes
1 answer
334 views

php shell_exec returns different results compared to terminal

I try to run shell_exec("ls -l /dev"); to list all entries in /dev and I get this list: total 0 drwxr-xr-x 2 root root 180 Oct 10 11:19 char lrwxrwxrwx 1 root root 11 Oct 10 11:19 core -&...
user2624744's user avatar
-1 votes
1 answer
152 views

Starting service inside shell script via PHP

So i'm looking for a way to start Plex Media Server service using PHP redirect. I basically want to start and stop the server by going to the certain URL. I'm using Apache and here's my code and ...
maskey's user avatar
  • 1
1 vote
1 answer
8k views

NOTICE: Not enabling PHP 7.3 FPM by default on Apache2 but PHP-FPM is running productive

My Debian Buster server annoyes me on each upgrade with the following notice: $ sudo apt upgrade ... NOTICE: Not enabling PHP 7.3 FPM by default. NOTICE: To enable PHP 7.3 FPM in Apache2 do: NOTICE: ...
Powerriegel's user avatar