I have website where I can login , trying to edit the records .. as soon as it displays like this,
Forbidden
You don't have permission to access /backoffice/processfaculty.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I am trying to save data from fckeditor and i don't have any htaccess file on the root ... i also checked permission (755 , tried 777)...
If I edit and save with simple texts , it works fine.. but if i do it with fckeditor data, it does not.
Please check you server configuration, you need to have PHP enabled on your server. Look into the error log of your server it will have more information.
This looks like you have a web-firewall installed on your webserver. Temporarily disable it to test if it is causing the issue.
Here is what i think you should look into:
what is the mask value?
umask();
The umask() function changes the file permissions for files.
Related
I have a created a project in HTML/PHP and I am trying to upload everything to the server. I am not that familiar with servers other than the fact that your first page must be an index.php/htm file and that everything goes in the public_html folder. I am using MVC(codeigniter) so adding it to the server doesn't seem so straightforward. I have attached an image of my directories, the first file when viewed locally is the controller class which is home.php inside /application/controllers. If I just drag everything to the server as is, then I receive a 500 Internal Server Error. Can anyone help me fix this please?
The problem with a 500 internal server error is that's it's a generic message.
Try checking:
File / folder permission (No files or folders should be set to 777, 755 should be the maximum permissions setting.)
If you're using short tags: short_open_tag=On in php.ini
Incorrect syntax in .htaccess file (Try removing - test - recreate)
check error.log for more detailed information.
Hope any of this helps, I'll keep an eye on this topic.
I moved my wordpress site from local host to a live server. The problem is that all links from my nav won't work as the home button.
live site url: http://iulian.cablevision.ro
broken link example: http://iulian.cablevision.ro/about/
this is the error that i get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.27 (CentOS) Server at iulian.cablevision.ro Port 80
I tried to use the a comand in SQL on my database to update urls:
UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/wordpres/', 'www.iulian.cablevision.ro/');
And I also tried to use the Velvet Blues pluginbut that didn't work as well... Is the another way to manipulate the database so my links will work properly?
I folowed the tutorial from http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-from-local-server-to-live-site/ but seams to not work for me... Wher is my mistake?
first go to files and rename the htaccess file and then check your live site .it will help you surely.and if you have any issue regarding please descibe in detail
For fixing all links after database migration, I use this tool. After downloading, rename folder for example searchandreplace, add this folder to the root of WP site, access it www.yoursite.com/searchandreplace, and then enter the old site name and in replace input write your new one, but be sure that they both use same convention wording, if you write old site name www.oldsite.com, then new one should be www.newsite.com too, not http://* or something else added. Hope this helps if the problem still persists.
Your old server is not only in the WP_POSTS table, but also in other tables. See here how to move your wordpress site:
http://codex.wordpress.org/Moving_WordPress
Download your existing site files.
Export your database - go in to mySQL and export the database.
Move the backed up files and database into a new folder - somewhere safe - this is your site backup.
Log in to the site you want to move and go to Settings > General, then change the URLs. (ie from http://example.com/ to http://example.net ) - save the settings and expect to see a 404 page.
Download your site files again.
Export the database again.
Edit wp-config.php with the new server's mySQL database name, user and password.
Upload the files.
Import the database on the new server.
First you need a .htaccess if you are using permalink other than default structure copy from here
Now that you have .htaccess try this
Re save permalinks
Check that your server has mod_rewrite enabled
I finaly found the solution. It was the .htacces file the problem... The first mistake I did was that when I was uploading the .htacces file to the server it uploaded as simpe .txt file and the conversion to htacces file type didn't turn. So what I did:
crated a simple text document with no name and uploaded to server
after i uploaded the file i changed the name into .htacces so then the file conersion kicked in.
After that my links worked flawless.
Thanks for the suport you guys gave me btw.
I'm working on a website based on static and php pages.
With html pages everything works fine but every time I try to display a PHP page I receive a "500 server internal error" and this message in the log:
SoftException in Application.cpp:604: Could not execute script "/path/file.php", referer "/path/"
I'm not a php expert, I've tried to:
put and display a blank php file in different paths.
change permissions on php files (now they all have a 755 permission)
look for something wrong in the .htaccess file (but it was blank).
...the error is still there, do you have any suggestion?
Thanks a lot!
Finally the customer has decided to pay for extra support.
The provider told the files had wrong permissions.
I don't think it was so because, as I've told you, it was the first thing that I've try to change.
However everything is working fine now.
Thank you :)
Please I need your help on this. I have a site hosted using SMF, when I try login, this is the error I see. Please what may be the cause? Below is the error that display as I login in.
Forbidden
You don't have permission to access /government/index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
An error telling you that you aren't allowed to use this file means, that you need to change the permissions of this file, because the web service can not open it. Make sure you have all necessary permissions.
You can change permissions on a Linux based system with chmod.
I have just moved my CodeIgniter project to a new server and now I'm getting a 500 error and no output from the project. It works fine on my old server and in my test environment. I'm completely stumped how to troubleshoot this, especially as there's nothing of use in the log files. Any help would be great!
Well, this is embarrassing. I was missing php-mysql. CodeIgniter wasn't logging the fact that it couldn't find it, nothing was appearing in /var/log/messages. Installed it and suddenly, it works. Thanks all for your answers.
I get this problem on my live server with SuPHP. To avoid it, all PHP files must have permissions 0644, and directories 0755.
To do this without a headache, do one of the following:
Get an FTP client that will upload using permissions you specify
Find a PHP script that will change permissions, based on filtering criteria, after upload
Get shell access to your host!
Some ideas for you:
Are you sure there is nothing in the log files? Have you checked both the web server's log files as well as the system logs (EG: /var/log/messages)? Have you checked all of the logs enabled in php.ini?
Double-check your CI configuration settings. Perhaps you are pointing to the wrong database?
Have you confirmed that a basic PHP script <?phpinfo(); ?> works? This would isolate the problem to CI
Most likely you have not specified the base url for the new location, you can set it from file:
/system/config/config.php
at line:
$config['base_url'] = 'your new url here';
have you try load a new CodeIgniter project, and try to load in ur test environment? is it work?
From my experiment 500 error normally due with web server problem. But from what your said you didn't have any .htaccess. You better try just load a clean CI project and see your webserver OK or not.