.

Tuesday, April 14, 2020

Setting Up a Custom Web Hosting Account

Setting Up a Custom Web Hosting AccountYou've just installed a custom web hosting account, and you're looking forward to starting using it, but when you try to configure the cgi-bin or any other file for writing, the error 'RuntimeError: Writing custom site.cfg failed! %s' pops up. Why is this? The answer is simple: your site.cfg file is not yet fully loaded, and there is not enough memory to hold it all.You should also not worry about writing more than one site.cfg file. You need only to write the first one for the domain name you are going to use. This is necessary because if your domain name changes, you will have to re-write your site.cfg and if you already wrote the domain name, all you will need to do is replace the site.cfg with the new one.If you forget to remove the domain name from the command line and use a file name, you will receive a RuntimeError, as explained above. Do not add a domain name as the default domain name for the CGI script.Next, you may get a RuntimeError if you do not remove the address of the user from the domain name. The reason is that your PHP does not read the address of the user for the.htaccess file and you must have a valid domain name in order to make your users identify themselves. In order to force the PHP to read your domain name in the.htaccess file, you can create a section that contains the address of the user, or you can remove the.htaccess file altogether and then just put the address of the user into the IP address in the code.If you want to change the domain name in the.htaccess file, you need to create a section that contains the domain name. Then replace the address with the same value. You should also add this section to the end of the file.After the user address is written to the file, you need to change it back to what you want and put the file back into the directory of the domain name. Finally, run the PHP and all should be fine. Of course, when you install the custom web hosting accounts, they have to come with built-in scripts, which can be configured and managed by the site administrator.If you want to test your scripts for compatibility, you can use the PHP variable 'true' to show that the script address should be written as a domain name. This is good for compatibility with scripts that do not have a.htaccess file, but is not an option if you will be publishing your website. In this case, you need to use the PHP variable 'false'.The best way to solve the RuntimeError problem caused by writing custom site.cfg files is to install your custom web hosting accounts with complete PHP scripts. Then use the PHP 'true'false' statements to change the address of the user.

No comments:

Post a Comment