PHP Frameworks

A PHP Framework is any framework that allows one to develop a web application written in PHP.

PHP Frameworks subscription active
You will receive email notifications for new publications on PHP Frameworks.
168 Results
  • Question

    Routing doesn`t work - Symfony app

    Hi, I am trying to deploy my Symfony app to the Digital Ocean. The problem is with routing - the app cannot find my annotation routes in the Controller, so on requesting http://104.248.16.246/ the response is default ...
    Accepted Answer: Finally, I have fixed it. The problem was apparently in outdated composer packages. This command worked. composer update --with-dependencies Initially, the previous command was failing because of lacking swapping m...
    2 By thoune PHP Frameworks Nginx
  • Question

    How to Setup Laravel with DigitalOcean Managed Redis Cluster?

    Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, and sorted sets. According to the official Laravel documentati...
    Accepted Answer: Prerequisites: In order to complete this tutorial, you will need: An Ubuntu Droplet with Laravel installed, you can follow the steps from this guide here on How to Install and Configure Laravel with LEMP on Ubuntu 18....
    1 By bobbyiliev Redis PHP PHP Frameworks Ubuntu Linux Basics Linux Commands
  • Question

    How to Automatically Generate Sitemap with Laravel?

    Hi all, I'm almost done with building a small website using Laravel. I'm now working on the SEO side of things and I want to be able to automatically generate the sitemap.xml file on let's say daily basis. Has anyone ...
    Accepted Answer: Hello, I usually use the following package for all of my sites to generate the sitemap.xml file automatically: https://github.com/spatie/laravel-sitemap The setup goes something like this: First install the package vi...
    3 By devdojo PHP Frameworks Linux Basics
  • Question

    Running "artisan cache:clear" writes the cache files as root

    We have a web application that runs Laravel. And whenever we run the "artisan cache:clear" command, it writes new cache files and folders owned by root. We've changed ownership of the parents folders up to the /var/w...
    Accepted Answer: What user is your app running as? I am going to answer this question as if you do not know much about Linux, so I apologize if I am saying anything you already know. When you type ps aux in a cli, what User does it ...
    1 By coj PHP PHP Frameworks
  • Question

    How to configure Laravel 5.7 with Redis TLS (Using phpredis)

    Hi I'm using laravel 5.7 with phpredis (PHP 7.2), but I’m not able to get it to work with tls, I am trying to use it with digitalocean Redis managed database which only supports tls connections. Any idea if tls even s...
    Accepted Answer: So I managed to get this to work, basically the current phpredis version that is shipped with php 7.2 (Ubuntu 18) is old and does not support tls, to fix this I had to update phpredis from pecl (https://pecl.php.net/p...
    2 By ahmadt Redis Databases PHP PHP Frameworks
  • Question

    php artisan serve gives me PHP parse error , syntax error , unexpected '=' in Arr.php on line 388

    Debian 9 Apache 2 MariaDb PHP 7.0.33 installed composer installed laravel globally Attempted to update to PHP 7.2 by... sudo apt update sudo apt install php7.2 but get error unable to locate package the Arr.php file ...
    Accepted Answer: Hello, Indeed I believe that this is due to the PHP version, can you confirm your current PHP version? You could try following the steps here on how to install PHP 7.2 on Debain: https://linuxhostsupport.com/blog/how-...
    1 By johnrobertkosanovic PHP LAMP Stack PHP Frameworks Debian 9
  • Question

    How do I create a simple Artisan command in Laravel?

    Hi all, I'm quite new to Laravel and so far I really like it, especially the artisan commands. Has anyone created a custom artisan command? If so can you please share the steps that I would have to take in order to do...
    Accepted Answer: Hello, Yes, artisan is great, you could use it to automate a lot of tasks. I'll try to walk you through the process of creating a simple "Hello World!" artisan command. Prerequisites: You need to have Laravel installe...
    2 By devdojo PHP Frameworks PHP
  • Question

    Is 1GB RAM enough for installing composer and laravel?

    Debian 9 (1 GB RAM, 25 GB storage) Apache MariaDB PHP 7.2 Composer and Laravel installed successfully Then, attempted to add a package with composer ... ran following line in Putty composer require mobiledetect/mobile...
    Accepted Answer: The OS you're using plays an integral role in memory management, one of the easy hacks to eliminate these memory errors is to add Swap memory file and SSD storage also helps in faster swaps. Refer to the tutorial belo...
    1 By johnrobertkosanovic LAMP Stack PHP Frameworks
  • Question

    Nginx redirect subdomain from www to non-www

    Hello, I'm using this nginx conf: ``` root /var/www/html/laravel/public; index index.php index.html index.htm index.nginx-debian.html; server_name *.example.com; location / { try_files $uri $...
    Accepted Answer: If someone need this, solution is: if ($host ~* ^www\.(.*)) { set $host_without_www $1; rewrite ^(.*) http://$host_without_www$1 permanent; }
    4 By oksim Nginx LEMP PHP PHP Frameworks Ubuntu 16.04
  • Question

    i've auto added a 100gb volume to my droplet for storage, how do i save and retrieve files from the volume, what path would i use?

    apologies for the novice question. I am a beginner at all of this. I've been working on an app using the laravel framework with forge/digitalocean, and came to realize I needed much larger storage. After some research...
    Accepted Answer: Hey friend, Great question! I don't really use larvel myself but this should be a generic Linux question regardless of that, but just know that this is where I come from when answering it. Let's say your Laravel proje...
    1 By meloku Block Storage Automated Setups DigitalOcean Getting Started PHP PHP Frameworks Ubuntu 18.04
  • Question

    Why is my new scaled droplet (8GB RAM - 4 vCPUs) is 4 times slower than the old one?

    Last Friday, August 11th 2018, I scaled my VPS for my website. As I started to receive more and more requests for LRC Maker and Downloads (Lyrics files), my CPU crossed 100% multiple times, and was averaging 80%. The ...
    Accepted Answer: Hello friend! Sorry to hear about the trouble this is giving you. The source of the slowdown could be anywhere, and finding it is not always an easy task. It could be anything from a package upgrade going live after t...
    4 By KeitelDOG Apache PHP PHP Frameworks MySQL Ubuntu
  • Question

    The PHP League Flysystem for "Spaces" object storage

    I am trying to use https://github.com/thephpleague/flysystem-aws-s3-v3 adapter for use with digital ocean spaces as the storage provider as the documentation suggests the api matches amazon s3 Has anyone managed to ge...
    Accepted Answer: This was actually very simple simply set the 'endpoint' in your filesystem config to the FQDN of DO spaces eg. in filesytems.php 'DO' => [ 'driver' => 's3', 'key' => env('AWS_KEY'), 'secret...
    3 By mikebywater PHP Frameworks PHP
  • Question

    Cron Jobs with Laravel on Ubuntu 16.10 x64

    Hello, I'm running an Ubuntu 16.10 x64 and have deployed the php Framework Laravel 5.3.28 on the server. For the most part everything is working as normal however I'm trying to get the crontab to call artisan comman...
    Accepted Answer: Thank you @ryanpq for the answer you provided here (https://www.digitalocean.com/community/questions/where-are-cron-job-errors-logged?answer=32519) After a lot of digging and logging I found that the root user apparen...
    2 By fandrev87482a4aafc8df6927f Apache DigitalOcean PHP PHP Frameworks Ubuntu
  • Question

    Unable to setup multisite on nginx & php7.0-fpm

    Hi all, I am trying to solve this issue for few weeks to no avail :( I am trying to set up multiple websites in my Ubuntu 16.04 droplet by following this guide: https://www.digitalocean.com/community/tutorials/how-to-...
    Accepted Answer: Hi @amellie Maybe something went wrong at one point, when you restarted php-fpm after doing some configuration changes. Everything looks okay, as far as I can see. Try to stop php-fpm, then force-kill any lingering p...
    3 By amellie Nginx PHP WordPress PHP Frameworks LEMP Ubuntu 16.04
  • Question

    laravel 5 application download file instead of execute on LEMP

    hello now I try to deploy two project in one droplet one for front end ( angular js application) and each other for api (laravel application) and this point to sub-domin i followed this tutorial for do this 1- cre...
    Accepted Answer: @engamr If the backend (API) is using PHP, you'd need to set a location block for PHP as you did in the first. All location blocks are specific to the server block they're contained within -- they're not global or sh...
    1 By engamr Nginx PHP Frameworks LEMP Ubuntu 16.04
  • Question

    FINDING THE phpmyadmin Authentication details .

    I installed the phpmyadmin with this https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04 now whenever i am going to this login to my phpmyadmin there authentication ...
    Accepted Answer: @geeber05 On newer versions of Ubuntu, you shouldn't need to use php5enmod as the package manager, apt, will handle enabling PHP modules. So if you receive an error when trying to run that command, that shouldn't be ...
    2 By geeber05 PHP Apache PHP Frameworks Ubuntu
  • Question

    Need Help shifting my Magento Ecommerce site on VPS.

    Hello Everyone, I'm new here on Digital Ocean. Due to very good reviews & amazing service provided(along with hassle-free letsEncrypt ssl cert) by Digital Ocean I've decided to shift my website from Hostgator's shared...
    Accepted Answer: @praveenkaushik First off, welcome to the DigitalOcean Community :-). Shared .vs. VPS DigitalOcean provides un-managed Cloud VPS's, which differ quite a bit from Shared Hosting in that you will be responsible for man...
    1 By praveenkaushik Apache Control Panels Development Security CMS PHP Frameworks DigitalOcean Ubuntu 16.04
  • Question

    Any updated Symfony Deploy guide?

    Hello, I have a symfony web app in a git repository. The app is configured to work with a DB i have on another server. I want to deploy on a droplet here. I found the guide here: https://www.digitalocean.com/community...
    Accepted Answer: We do not yet have an updated tutorial for Symfony 3 on Ubuntu 16.04. In general with PHP applications/frameworks the following changes will often work. In package names, replace php5 with php7.0 (ex. php5-curl > php...
    1 By rollandb PHP Frameworks PHP Deployment LAMP Stack Ubuntu 16.04
  • Question

    laravel subfolder any routes 404 not found

    Hi all, i created nginx configuration - conf (http://pastebin.com/4gyxgTyN) When i visit http://my-domain.com/test-api/ i get 404 not found how to fix this problem ?
    Accepted Answer: It work. If in laravel routes create prefix which the name it called as a subfolder laravel not understand my-domain.com/test-api as domain, domain is my-domain.com
    1 By nostresss77 Nginx PHP Frameworks Ubuntu 16.04
  • Question

    http://[my.ip] returns 'refused to connect' when following the guide to getting started with Symfony

    Hello, So, I've created my droplet Ubuntu 16.04 and put oneclick app Lamp on 16.04. I've started following the guide below and after permissions setting I've tried to access /symfony/web/config.php but I ran into an '...
    Accepted Answer: Disregard, I was accessing my old droplet instead of the newly created one. newb mistake in the browser address.
    1 By rollandb Deployment PHP PHP Frameworks Ubuntu 16.04