I have KLogger installed in my web app and everything worked fine on my XAMPP dev server but once I uploaded all my files to my host I get:
<b>Warning</b>: fopen(/var/log/log_2013-08-15.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/home/user/public_html/site.net/include/KLogger.php</b> on line <b>177</b><br />
So far I have tried setting the permissions to 777 on both the var and log folders but this doesn't help.
Please help me trouble shoot this.
My hosting provider provides CPanel.
As requested I'm answering my own question.
This was my error all the way. In all of my other files I have a couple of defines for the file paths and I didn't add them to my klogger initialization so it was trying to create a text file on the root var/log directory instead of my home directory.
Related
When launching my web application on local EasyPHP web server, I am still getting this :
Error: the templates_c directory does not exist or is not writable
Please make sure that the templates_c directory does exist in the root directory of the generated application and it is writable by the web server user.
Please help me what to do to solve this problem. Best regards.
I try windows sharing authorizations but don't work. Expecting file/folder read/write authorizations manager to be installed on local EasyPHP Devserver.
I am getting 500 Internal server.I have uploaded files to the server using Filezila .and when i am browsing it.Its showing internal server error.
Whats is the permission of your files and directory's which you have uploaded in your account. Also check your .htaccess file code.
There may be several reasons , let me list few which i think might be the reason.
1) Check the folder and file permissions on the hosting . Folder permission should be 755 and the file permission should be 644 by default to work on
2) If there is any .htaccess file try to remove that file and check again reloading (Note : if you are using cPanel try selecting show hidden files in file manager to view the .htaccess file )
3) whether your db is been properly configured in the configuration file of your MVC site ( however if it is the reason the page will will throw some db connectivity error . just in case if it is i am asking you to check )
If that helps, update me . If not, Kindly post the error log which can be taken in cPanel or if you are using different solution ask your hosting provider on how to view error log.
The best and universal approach if you have root access on the server would be to look for more information in the web server log:
/usr/local/apache/logs/error_log
If you do not have root access, you can check the Error log in cPanel -> Errors, it will provide you with more details on what the problem is.
I am trying to run awstats on windows 7 with apache from xammp tools. but i get this error, when i click on "update" from the website:
Error: Couldn't open server log file "C:\Users\ekc\Documents\Projekte\16 Lasttests\Access Logs\s96ess5a1" : Permission denied
Setup ('C:/xampp/cgi-bin/awstats.www.testmywebsite.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
But if i set my LogFile= in awstats.www.testmywebsite.com.conf direkt to log file self instead of to the folder of log, it works! I mean, if i use ..\Access Logs\s96ess5a1\2015-02-01 instead of ..\Access Logs\s96ess5a1
I have set all of the permissions with right click on this folder for my user, to write and to change the folder.
What is the reason of that?
I am trying to deploy a folder using 'Deploy to FTP Server' option in cloud9 IDE. Folder got deployed correctly on the remote location. But when I tried to access the files in folder I encountered error 403 Forbidden. You do not have permission to access this document.When checked through console, permissions got changed. It is not feasible to change the folder permissions each time. What should I do?
Any help will be highly appreciated.
My application was working fine, I dont know what happened suddenly image upload function stoped functioning.It gives this error-
URL file-access is disabled in the server configuration in D:\Hosting\6448289\html\upload.php on line 112
for any file access allow_url_fopen must be ON but this is OFF now.
if you open this link - www.shizin.com/phpinfo.php
you can see that allow_url_fopen is OFF. My hosting compny is GoDaddy.com.
How and Where I can access php.ini file of my project so that I can set it ON or is there any php commands that can be run to set this permission ON.Please suggest.
You will probably have a custom php.ini or php5.ini file somewhere in your account. Launch your FTP client and find it.
Found via Google:
http://community.godaddy.com/godaddy/tips-for-protecting-your-php-based-website/
http://community.godaddy.com/help/article/5647