i want to write a little Cakephp3 application for a friend. Now i developed a part of the application locally and i want to install this on his server. He got a managed server at strato.de. I have no access to a shell or something like this to configure everything by myself.
What i did already to solve the problem:
I googled around and found several things about some definitions in the htaccess-files: .htaccess for cakephp but it didn't solve my problem.
I also read the installation-guide of cakephp.
The problem:
I can't access the application. If i try to open the url i only get a complete white page. So what do i have to do to access the application?
Thanks for help!
Put this lines in you root index.php file to show all errors
error_reporting(E_ALL);
ini_set("display_errors", "on");
(overhead this line)
require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
But I imagine a message like this...
Fatal error: You must enable the intl extension to use CakePHP in ... cakephp/config/bootstrap.php on line 38
I talked with Strato about it, but they didn't give me any solution for shared hostings...
If it's any info, I checked hostings strato and its support laravel5
Related
I'm a student working on a project to benefit other students, and I am currently facing a problem with reloading with any other url than the main path.
The webpage is written from scratch (more or less) in React with no backend, but I still hoped that it would work. I am using react-router to change sub-directories.
I have understood that there is a difference between server- and client-url's, and that this issue most likely is related to that. In the app's main directory "webpage.com" everything works fine untill the page is refreshed. If a sub-directory such as "webpage.com/link" is "called" directly, I recieve an error. You can go and try for yourself btw.
Does anyone know of a nice way to fix this? Do I need to implement something like Node.js to fix this? If so, how? I would prefer not to use a hot-fix such as redirecting all sub-directory calls (such as "/link" (an actual page) or "/kejrngo" (jibberish) ) to "/".
I've cloned your project locally and it seems you have a problem with the server. As you said yourself it seems that only open url for your page is http://ifistudenter.no where at the beginning all application is rendered. After you try to refresh the page you are looking for a path that isn't available on the server and that is the reason you get 404.
What seems to be a problem is React Router itself with Apache server:
Please look at this: https://www.malikbrowne.com/blog/using-react-router-with-apache hope it helps
From administrator panel I can't find my plugin css or js file. In console log it's showing :
Failed to load resource: the server responded with a status of 403
(Forbidden)
Now when I access this file from console login the browser showing me following message :
Forbidden
You don't have permission to access /plugins/system/helix3/assets/css/bootstrap.css on this server.
Server unable to read htaccess file, denying access to be safe
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Can you guys tell me how can I solve this problem. For this error my plugin is not correctly displaying :(
Thank You.
There is little information you give about your problem, but I will try to help you the same. I had a similar problem and with some research I was able to figure out what my problem was.
First check if file exist /plugins/system/helix3/assets/css/bootstrap.css
Second check the access permissions of your /plugins/system/helix3/assets/css/bootstrap.css in joomla and in the folder permission.
Third check if the css you are using does not need anything else to work. Example in mine was a problem with a plugin for firefox.
Sorry for my English but this is not my native language.
My website is defaced and every time I load it, there appears a page with some message in some Turkish language and the title of page is 'hacked by 58'.
I tried searching this web page in my public_html directory but couldn't find this html in any directory. Yet still it loads when we visit the website.
Any help?
nginx or apache? locate the configure file,inside the file there is a line kind of 'root',that's path of your index folder,enter that folder fix index.html.
Btw,if your server is hacked,it's highly possible running dangerous programs ,you'd better reinstall your sys,and try not to be hacked,such as use ssh-key login method.
I am trying to access a coldfusion file on Server.
The file with xyz.htm extension works fine where as when I convert the same html into coldfusion file, like xyz.cfm , it throws following error:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
May I know what could be the reason?
Assuming CF8 on IIS6?
Could be that you've not correctly run the wsconfig.exe tool which will tie in CF to IIS etc.
Need to know which version of CF, which webserver/OS & versions to help further.
Basically, the webserver needs to know how to parse .cfm requests; without running the webserver connector tool, it won't know which files to use to actually deal with the .cfm files.
Basically i developed my app on a localhost wamp server with PHP 5. ON uploading to the actual host i notice that
The server is running php 4.4.9
Everytime i upload my .htaccess file, the server removes it completely.. seems to not be allowed
When i test out the set all i get is a 404 page not found
Any help on how to make it work on this PHP 4 server?
I did a test with CI 1.7.2, default installation.. works on my local server but when uploaded does not work, does this mean that the server does not support it?
I'm sure this isn't what you want to here, but get a new server. Here are the reasons why:
PHP 4 is no longer well supported. It's insecure.
If the server is removing .htaccess files, they are also unsupported on that server, giving you one more reason to move.
Code Igniter runs best with PHP 5 and with an .htaccess file.
The gist of this is you are going to have to hack your code back into the dark ages to get this to work, and then you will still have pretty URL issues and overall system instability. If you can make the switch, do.
If you cannot use .htaccess files with CodeIgniter, in system/application/config/config.php there is a configuration key called index_page. You need to set that to whatever page you have bootstrapping CodeIgniter (usually /index.php)
Then, make sure all your links that get routed through CI either target index.php/controller/action/params... or utilize the URL helper (with site_url or anchor) to automatically put in the index.php
Joe Mills is exactly right in his answer, though. CI works best with PHP 5 and .htaccess.
See CI URLs and CI URL Helper for documentation.
Well i found out how to fix several things
The issue with .htaccess would be to just not use modrewrite as such i put "query_string" option in my path variavable and this works.
The other issue, which was the major issue was that i was using Datamapper library which is a php 5 only library.