Laravel Homested file upload performance issue - php

I am having a wierd problem with Laravel Homestead. After following all the steps(with success) in Laravel website to configure Homestead and setting up a small project I'm facing the following problem:
When uploading an image with intervention\image package it takes forever, and doesn't matter if it is a small or a big image
Already tried a different config using Vaprobash with Nginx too and the upload is super fast.
Is anyone out there facing the same problem or have some solution for me? (Going crazy here)

If the upload folder is a shared folder on your host, then you may want to enable nfs if you haven't already. You can do that by changing the lines in scripts/homestead.rb about shared folder to this (note the `type: "nfs"' has been added):
# Register All Of The Configured Shared Folders
settings["folders"].each do |folder|
config.vm.synced_folder folder["map"], folder["to"], type: "nfs"
end
More info can be found here: https://docs.vagrantup.com/v2/synced-folders/nfs.html.

Related

Laravel: Blank CSS Files on deployed project

I am trying to figure out why all the CSS and Javascript files are being display as empty files on a Laravel 5.6 project running on Ubuntu 16.04 LTS with Plesk 17.5 Server Onyx. This happened after deployment.
I was reading a couple of old questions and I've tried most of the solutions without any luck:
Note #1:
Only CSS and Javascript files are displayed as empty files, routing works fine for other files.
Attempts made so far:
Moved the file .htaccess from public to the root project folder.
Added guo+w permissions to storage and bootstrap/cache
Used mix('css/app.css') and asset('themes/default/css/style.css') to access to CSS & JS files. I've also tried relative and full-qualified paths.
Note #2:
If I access in the URL with public/path/file.css I can see the file proplery. But whenever I change from mix('css/app.css') to mix('public/css/app.css') I get Undefined Index when I set the debug=true.
Well, maybe there are more attempts that I don't remember right now. Any suggestions to solve this "issue"?

Responsive filemanager upload error

I have a problem in my reponsive filemanager plugin. I am using this plugin. On my localhost version it running smoothly but after I upload on my Centos server I can't upload the documents running on MS Applications like (excel and ms word). It turns it into a zip folder.
My system runs on Codeigniter 3 HMVC and I also set the permissions of responsive filemanager (source and thumbs) permission to 777.
Images are working fine and txt. I also try to addType the ms application on my httpd.conf file and restart my server and it still same error.
Can you help me with my problem? I really want to use this plugin because it has a nice UI and settings. I don't know if it is a server problem.
I know its kinda late but this is how I solved this issue.
go into 'pathToFilemanager/include/mime_type_lib.php'
and comment or remove "application/zip" => "zip" from your $mime_types array.

Some product images are not showing in magento

I recently migrated my magento website to a different server, and here's the process I used:
Remove .htaccess folder from media folder .
rebuild all indexes as well as flush cache in the administration area.
php memory size is 512M.
Same Copy of website working fine in my localhost and different server, I am very confused what step I have to take please guide.
You missed several steps. Process of migrating Magento from local to live is
Upload all files to server
clear var/cache and var/session folder
Update live URL in core_config table web/unsecure/base_url and web/secure/base_url.
Empty log_url table
Reindexing
Still you are getting issues. Check exception.log and system.log in var/log folder.

Laravel 5.2 - Staging to Live Server : 500 Internal Server Error

I have a Laravel 5.2 project working fine locally, after uploading to a live server I have a 'laravel' folder in my root directory and public folder under 'public_html/testsite'
My 'index.php' points to the correct '/bootstrap/autoload.php' and '/bootstrap/app.php'
Upon going to my 'url/testsite/' I get a blank page only (was working fine L5.0) firebug shows : 500 Internal Server Error with HTML : Reload the page to get source for...
index.php is loading by testing with die() before any 'require' methods, but after 'require... autoload.php' the die() is not working, however it is successfully calling autoload.php as a die() works within this file.
I'm not sure if this is a .htaccess issue, or maybe I had to set something up in cPanel last time for this folder (I can't remember). I'd appreciate any help!
Please note this Laravel project sits as a test site in a /testsite/ folder along with my current live site files.
Amongst changing many things at once, I appeared to have solved this by setting up a subdomain within cPanel and setting this to my testsite/ folder.
This was on a server with my current website live under public_html/ and setting up a test laravel app(website) with under public_html/testsite/ to work as an independent site for testing.
The typical "change permissions on storage folder" suggested elsewhere on stackoverflow did not solve my issue so hopefully this helps someone in the same boat.

NetBeans is not creating folder in localhost XAMPP for php project in Mac

I am starting to work in PHP project with NetBeans and XAMPP. I am using the option "Copy files from Sources Folder to another location" to have he files available in my local host. The problem I am facing is NetBeasn is not creating any folder but it is not giving any message error.
I have followed the instructions in NetBeans site and also I have performed some searching in internet to find a solution but nothing is working.
I have checked the correct project settings, and if I try to create a folder in a differet directory (for example Docuements) NetBeasn create the folder without any problem.
I have reviewed the folder permissions and these are ok too. Also I have changed the settings for the subfolders.
Any one have a clue to solve this issue?
I am using NetBeans 8, OS X Maverick
Try opening Project Properties in NetBeans and check "Copy files on project open". Then "run project" from NetBeans.
This might solve the problem

Categories