Skip to content
Advertisement

Tag: apache

Set Max Size to folder for users file manager php mysql

I hope you are well. I am creating a Learning Platform in pure PHP with MySQL and AdminLTE3. I got to the time of creating the file manager for each user and got stuck on the following. I have the following structure in folders: /var/www/html/uploads/users/<% hash (USER ID)%>, and what I’m looking for is that each folder <% hash (USER

phpmyadmin 403 Forbidden after php downgrade from 7.4 -> 7.3 on CentOS 7 Apache

I have acquired VPS and got it with LAMP. I installed phpmyadmin and configured it’s phpmyadmin.conf file to make it accessible from browser and it was working. Later I upgraded my PHP 5.x to 7.4. version following this tutorial: https://computingforgeeks.com/how-to-install-php-7-4-on-centos-7/ After upgrade I got memory problems with script so I tried “downgrade” to PHP 7.3. First I uninstalled my current

VS Code PHP Debugging without xdebug.remote_autostart=1

How can I use the PHP debugger withing VS Code without the following setting in PHP.INI? This setting makes apache extremely slow. Before I used PHPStorm and this supplied a parameter un the URL that triggered the debugger. I wonder if this is possible in VS Code too. I use VS Code 1.53.2 with the PHP extension pck from Felix

Laragon – pretty url for one app does not work

After enabling the auto virtual host I wanted to try pretty url for my current project. Problem is it first showed index of/ of the project and after trying some solutions it now shows “This site cannot be reached!” error. The pretty url feature wotks withother projects. What I tried: .restarting laragon and pc .enabeling nginx .renaming the project .clearing

Unable to add PPA ondrejPHP in Dockerfile

I want to extend the httpd Image with PHP and some PHP Modules. My Dockerfile for this looks like this. The error I’m getting when building the Image is following What am I´m doing wrong? Edit: Thanks to @RJK On step 5/6 your are running add-apt-repository -y ppa:ondrejphp, it should be add-apt-repository -y ppa:ondrej/php (forward slash) Now the script can

Laravel relative paths not working as expected on localhost

I’m just using Mac OS’s native apache2 server for my localhost. In my httpd.conf file, I set DocumentRoot “/Users/user_name/Local Sites/” …that directory houses all my sites I work on locally: So, for my particular Laravel project for site_1, I set the following in .env: APP_URL=http://localhost/site_1 …and again in config/app.php: ‘url’ => env(‘APP_URL’, ‘http://localhost/site_1’), However, when I try to use one

Advertisement