PHP not running on apache server
I am new to PHP, and relatively new to Apache. For my server, I am using a raspberry pi running Ubuntu MATE, which (as far as I know) is just Ubuntu with a different desktop environment. I have PHP installed,…
I am new to PHP, and relatively new to Apache. For my server, I am using a raspberry pi running Ubuntu MATE, which (as far as I know) is just Ubuntu with a different desktop environment. I have PHP installed,…
Trying to setup Ansible to restart apache on multiple hosts. But in one set of 50 hosts I've apache start script in /app/instances/sites/startapache.sh but in other 50 hosts I've /app/instances/startweb.sh. Is it possible to trigger any apache configuration which will…
I have a server running on CENTOS 8, with Apache 4.2 and PHP-FPM. When i restart the service PHP-FPM i get a 403 forbidden error. This happen because the owner of /run/php-fpm/www.sock becomes root instead of the Apache running user.…
my problem is that in root directory I have this rewrite rule in my .htaccess file RewriteRule main-page /index.php and it works when I go to the root directory in browser. But when I visit page.com/panel/main-page it also redirects to…
I'm using a PHP script to insert the unique value of an array into the database. Here's the script ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); if (isset($_POST['submit'])) { $df = $_POST['df']; $arr = array(); $file = fopen('files/'.$df.'.csv', 'r'); while (($line =…
I'm currently programming a website that, in a nutshell, loads its content dynamically via url parameters and php includes. The website is living under the root directory in a subfolder called "saischek". The urls have one optional parameter: page, therefore…
I am using Angular 9.1.3 as framework and apache as server for my app. After building new version of angular application I've started receiving this error in chrome: Failed to load module script: The server responded with a non-JavaScript MIME…
I am trying to convert all my uppercase URL's to lower case and add a redirect rule for it but its not working. here is what my use case is https://www.example.com/CT 301 redirect to => https://www.example/test https://www.example.com/cT 301 redirect to…
Summary: We need to re-enable old TLS 1.0 / TLS 1.1 on Apache on Ubuntu 20.04 to support old application. Background: We have recently upgraded from Ubuntu 18.04 to 20.04. One of our old Windows application has stopped working. We…
I am aware very similar questions have been around but none seem to have the solution for my problem. I wonder if you could give me a hand with this one. I'll try to be as specific as possible: I'm…