PHP: Can’t Set Open_basedir

I try to execute: var_dump(ini_set(“open_basedir”,ini_get(“open_basedir”))); with PHP and get false. Apache 2. PHP Version: 5.3.28, it should change it from script, how i read at …

HTTP 413: Request too large

Using Apache 2.4 & PHP 7.4 on Ubuntu 18.04. Default Apache conf file. I’m trying to upload ~700 jpegs (totaling ~100MB, largest one being ~1MB) to a Laravel app, for a single one it works but for …

Host laravel application inside laravel application

I am trying to host a laravel inside a laravel application because I need it to work on the same domain. So imagine my domain is somedomain.com. I am already pointing it to the public directory of a …

Why do I still get xAMP errors after fixing my PHP code and saving the file?

This question applies to several types of coding errors, from leaving dollar signs off the front of PHP variables to forgetting to put a semicolon between statements, to leaving unmatched braces and …

How to open a php page which is out of /var/www/html in browsers?

There is an apache server with three directories in /var/www/: /var/www/html/ and /var/www/printer and /var/www/codes I can read all pages in /html/ via browser with no problem. But I don’t know how …

redirect 301 to / if url contains index.php

I have a blog in laravel 5.8 and I want to redirect 301 to / it there is index.php in the url. My .htaccess is this

shell_exec not running in websever

I have an apache web sever with php file /var/www/html/test.php, and servo.py in the same directory. When I go to localhost/test.php it doesn’t work. Yet when I run test.php in an IDE it works fine. …

How to rewrite URLs with .htaccess (removing id?=1)

I’ve looked all over and have yet to figure out how to make this work, I’m sure it’s very simple for someone who knows what they’re doing. For starters, I have made sure that mod_rewrite is enabled …

Redirecting all domains to a single https domain

I recently bought a hosting plan which provides three domains. Since there is only one version of my website, the idea is to redirect all the domains to one single domain ( I think this is also more …

Different pages on same domain show different cookies (by target domain)

I have a Single Sign On implementation that adds cookies to a website when people login. I see the cookie in the chrome Inspector when looking at one page, but not in another page on the same domain. …