I have problems with loading some files from laravel assets folder.
I am using laravel 4.2.
This works fine in my local environment but not works on shared hosting. This used to work but somehow stops working.
I have made tester.php and put it into assets folder and I can not access it. Here is a url which returns 404: http://example.com/assets/vendors/kcfinder-2.54/tester.php.
The whole problem starts when I have noticed that I have problem with kcfinder.
This is inside ckeditor config.js:
config.filebrowserImageBrowseUrl = '/assets/vendors/kcfinder-2.54/browse.php?opener=ckeditor&type=images';
config.filebrowserUploadUrl = '/assets/vendors/kcfinder-2.54/upload.php?opener=ckeditor&type=files';
and this not works. Even if I try to acces it directkly using: http://example.com/assets/vendors/kcfinder-2.54/tester.php
I can not open this url. Gives me 404.
But then I have made assets2 folder and all start to work. So I have changed config.js to
config.filebrowserImageBrowseUrl = '/assets2/vendors/kcfinder-2.54/browse.php?opener=ckeditor&type=images';
config.filebrowserUploadUrl = '/assets2/vendors/kcfinder-2.54/upload.php?opener=ckeditor&type=files';
and kcfinder starts to work.Also I can open directly url http://example.com/assets2/vendors/kcfinder-2.54/tester.php
So what is the best way to detect why laravel is not serving php from assets folder?
Related
I have an application which has developed on laravel 5.7 and it's index.php is moved to root directory. Now when i tried to make the server up using php artisan serve command.
The website was loading but assets files like css and js not loading. Entire console showing errors and when i tried to see the asset file code through http://localhost:8000/assets/js/app.min.js
It was showing Error 404
The page you are looking for does't exist.
Can any one help me i am trying to resolve from past two days
Entire app is loading only view is not proper due to non loading of asset files
I developeded a Laravel web app, which works fine and great on local machine but
after going in production on a shared hosting server i have some issues displaying the logo and the website images using the asset() helper function.
However the css and js are accessible and works fine (also using the asset function).
I've deployed the App following the steps bellow:
I created a directory called repositories outside the public_html (the root document of mydomain.com) and i copied inside it directory soukelafalah (contining all the files of my laravel project)
I moved the laravel public directory files into the public_html directory
I edited the index.php in public_html as follow:
require DIR.'./../repositories/SoukElfalah/vendor/autoload.php';
$app = require_once__DIR__.'/../repositories/SoukElfalah/bootstrap/app.php';
I run php artisan storage:link and the link is succufully created
I had run also:
ln -s /home/dtruxpgw/repositories/SoukElfalah/storage/app/public /home/dtruxpgw/public_html/storage
The route and the css is working fine but the logo and the images are not displayed and shows a 404 error as shown in the image below.
So please, can any one point what i am missing?
And when i put asset('/storage/images/thumbs/'.$img_name)}}" am i pointing to the storage directory in the public_html or in the one in the public folder of my laravel app directory.
Thank you in advance.
I got magento on my own hosting and everything is running ok.
I created a landing (using HTML and CSS) and I wanted to include it inside my hosting.
I just created a folder inside root directory (where magento is loaded) and I uploaded my landing inside of that folder.
The problem comes when i try to access in that lading using my browser. I'm getting a 404 error by magento.
Can some one tell me if I am doing something wrong to be able to load that landing?
PS: I tried to delete cache, to reindex all files and still not working.
None of my assets are loading in my project I've been using a virtual host and it won't load them from the resources/assets/js folder and I've also tried using localhost:8000 does anyone know why?
scripts or any related files that should be accessed via url should be stored in the public directory
I am using dreamweaver cs5 and xampp. I created a folder name CI in htdoc, where all my codeigniter files and folders are , i.e application, system , user_guide, license.txt, index.php and .htaccess(which is blank).
My dreamweaver set up is :
Site
Site Name: codeIgniter Local Site Folder: C:\xampp\htdocs\CI
Servers
ServerName: codeIgniter Connect using: Local/Network
Server Folder: c:\xampp\htdocs\CI\ Web URL: http://localhost/site/
and i unticked remote server and ticked testing server.
My codeigniter set up is:
$config['base_url'] = 'http://localhost/site/';
$autoload['libraries'] = array('database');
and created site.php in the controller.
Error i am getting in dreamweaver is :
Dynamically-related files could not be resolved because the site defination is not
correct for this server.Retry|Setup.
Also when i am trying to view it as Live View or in browser it is taking me to
localhost/site/application/controllers/site.php , which saying object not found
But everything is fine using notepad++ though and i can see nothing is wrong in setting up codeigniter
Your weburl must match your site root, change your weburl and $config['base_url'] to http://localhost/CI/ and also check that your server model is set to php/mysql.