Toggle navigation Home Store Browse All ----- Webhosting Domains Quotation (Webdesign Services) eMail Hosting SEO- Search Engine Optimisation GRAPHIC DESIGN Dedicated/ VPS Webhosting BULKSMS Mobi Applications Website Maintenance Register a New Domain Transfer Domains to Us Announcements Knowledgebase Network Status Affiliates Contact Us Account Login Register ----- Forgot Password? Categories 9 CGI Scripts 34 Databases 28 Dedicated Servers 1 DNS 15 Domains 5 eCommerce 79 eMails 27 FTP 1 General Issues 1 MX Records 1 Nameservers 28 Other 104 Scripting 254 Web Hosting Control Panel 9 Web Resources 8 Web Stats & Logs 11 Web Tools 8 Website Help and Diagnostics 4 Windows Hosting Categories CGI Scripts (9) Databases (34) Dedicated Servers (28) DNS (1) Domains (15) eCommerce (5) eMails (79) FTP (27) General Issues (1) MX Records (1) Nameservers (1) Other (28) Scripting (104) Web Hosting Control Panel (254) Web Resources (9) Web Stats & Logs (8) Web Tools (11) Website Help and Diagnostics (8) Windows Hosting (4) [WHP1.01] My CGI/ASP/PHP script is giving an error when trying to write to a file This applies to Linux hosting accounts only.This is almost certainly down to incorrect permissions on your script or file. Please see the following information on how to set permissions on files:Doing a CHMOD (changing a file's permissions) is the setting of access privileges for a file. This tutorial shows the process in one of the most common FTP applications called WS_FTP but the process is very similar with other ftp clients. Only Perl scripts need to have permissions changed to run.First connect to your hosting via FTP using the settings provided in your setup email. Click on the "public_html" directory to open the area where your website is placed.Next click on the directory and right-click on the file you would like to set permissions for. The right-click menu is then displayed, and by clicking the "CHMOD" option we get to the main part of doing a CHMOD.The new menu that appears has three columns - Owner, Group, and Other. Each column has three checkboxes below them - Read, Write, and Execute. In the "Owner" column, check all three boxes. In the "Group" column check the first and third checkboxes. In the "Other" column, check the first and third boxes.Finally, click "OK" to complete the CHMOD. Test your script again by calling it from your web browser. Everything should work correctly, but if you are still seeing an Error 500 Server Error then it is not because of your permissions but more the coding within the script itself. Was this answer helpful? Yes No Print this Article Also Read [WHP1.19] I've uploaded a compiled CGI program why does it not run? This applies to Linux hosting accounts only.If the program is a CGI binary written in a language... [WHP1.26] How to configure Mambo to handle 404 errors for search engine optimisation such as Google site maps? Sites that have been developed with the involvement of Mambo may encounter problems when... [WHP1.17] Scripts on my old server ran under permission 777 but I have so many files to alter. Is there an easy way of doing this? We do not allow scripts to run under 777 for reasons of security. Executable scripts should run... [WHP1.16] Possible issues with OSCommerce and MySQL5 We have been made aware that some customers may have issues with their OSCommerce installations... [WHP1.10] Why does my script produce a 'file permissions error'? CGI scripts need certain file permissions to be set if they are to work properly. In general CGI... Support My Support Tickets Announcements Knowledgebase Downloads Network Status Open Ticket × Close Title Loading...