when i upload my website to my hosting Justhost it not working and it show only error like this
an error occurred while processing this directive
Please help me to correct this error
try the steps that follow:
Go to cPanel
Open File Manager from Files section
Navigate to domain folder
Check "Perms" column on far right hand side
Files should be set to: 0644 (this is the UNIX file permissions)
Folders should be set to: 0755
This will change your file permissions to their proper settings for the justhost file system. Additionally, if you have PHP code within.htm or .html files, you will need to add an additional Apache handler to tell justhost to parse these files as PHP. Do this using Apache Handlers in cPanel:
Related
I am trying to move my location on disk of a Bolt.cm install. Config.yml doesnt have any details of location.
When I rename the directory I receive app config issues as well as this :
Fatal error: Uncaught exception 'Bolt\Exception\LowLevelDatabaseException
Thrown from within Bolt. Seems like I need to update a config file but I don't see one with the path do web root or path to database stored.
Does such a file exist?
You need to flush the cache.
This can be done from the command line by:
php app/nut cache:clear
Or inside app/cache/ you will find the file config_cache.php that can be safely deleted.
I'm trying to install mySQL 5.7.7, but on the 'Apply Server Configuartion' page the 'writing configuration file' fails and the log gives the error as:
'Could't find path 'C:\ProgramData\MySQL\MySQL Server 5.7\my.ini'
So then I manually added the folder and got this error:
'Access to the path 'C:\ProgramData\MySQL\MySQL Server 5.7\my.ini' is denied.'
Following advice online I've given 'Everyone' full-access to mySQL plus all files in the path, but I still keep getting the same error.
Any ideas? Much appreciated, thanks
Maybe your my.ini file is not where it should be. To figure out exactly what his location is:
Open the Task Manager, go to the Services tab and then hit the Services button.
Search in the list for the service called 'MySQL56'. Right click on it, and hit Properties.
In the General tab, look for "Path to executable". After --defaults-file= you should see the exact path of the file my.ini.
If the file is in the folder you specified but you still can't access it, maybe you should try to reinstall.
I have small CGI script running on a server[Linux OS]. following is a part of script output..
<tr><td valign="center">Lol</td><td valign="center">10112</td><td>abc.pdf</td></tr>
But when I click on this abc.pdf hyperlink, browser displays error message:URL /home/pathtopdf/abc.pdf was not found on the server. while the pdf and path is definitely there and all files and folders in the path[including pdf] has full permission.
My server location is # /srv/www and script in /srv/www/cgi-bin, but when I put the link to pdf as follows
<tr><td valign="center">Lol</td><td valign="center">10112</td><td>abc.pdf</td></tr>
The error message was The requested URL '/srv/www/for_html/abc.pdf' resolves to a file which is marked executable but is not a CGI file; retrieving it is forbidden. Again permission is there for files.
What could be the problemo?
Your problem is that you try to request a file outside of the webroot. So by clicking that, the browser is really requesting
http://example.com/home/pathtopdf/abc.pdf
not
/home/pathtopdf/abc.pdf
You can edit your apache config file and add a virtual host to that directory under a subdomain (say downloads)
After your edit, I am assuming you are using the file:// protocol, directly on the server. I would say just to remove the executable bit from your .pdf's file permissions. Run from a shell:
chmod -x /srv/www/for_html/abc.pdf
I have successfully implemented rest webservice using apache wink. I am using ant to build war and to deploy it to tomcat server. Now I want include html or jsp file in the project to display some results. But I dont know how to include it via ant build file. I tried copy and pasting the html file in the root folder as well as web-inf folder in tomcat's webapp folder and than restarted it. But so far I am not able to access it. Whenever I try to access html page it gives me error
org.apache.wink.server.internal.RequestProcessor - The following error occurred during the invocation of the handlers chain: WebApplicationException (404 - Not Found) with message 'null' while processing GET request sent to http://localhost:8080/outliers/index.html
Please help me how can I include html file in my server.
Basically you should just put the html file in the war's root directory. \
Don't put it in WEB-INF, it's is not accessible from the web!
If the html file in root directory, and you still cannot access it, check that tomcat started without errors. Sometimes errors are not displayed in console, so check the logs.
I am trying to run dumpBackup.php and I get
php dumpBackup.php --current
DB connection error: Unknown error
My understanding is I need to copy the file AdminSettings.sample to .php.
But I don't seem to have such a file. What is the format of it. Probably looking in the wrong place but all references refer to the sample file
You should find AdminSettings.sample in the root of your MediaWiki install - in the same directory as LocalSettings.php, one directory up from the "maintenance" directory.
Details:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/AdminSettings.sample?view=markup
http://www.mediawiki.org/wiki/Manual:AdminSettings.php