View Full Version : Subdomain Via Wildcards On A Raq4
Lynks
May 26th, 2001, 13:26
I have tried numberous scripts to get subdomains via wildcarding working. I have the $99 plan from tera-byte but none of the scripts work! (Well Not How They Are Supposed to)
EG:
Download The Redirect from http://www.ericscgi.com
Works comes up with black screen. Then when I click the link to the admin: http://admin.mydomain.net it comes back to the original screen. The author doesnt know the problem.
I have tried ones at hotscripts with no avail. So i am looking for some help, any help greatly appreciated
Lynks
Chicken
May 26th, 2001, 13:33
It is really hard to tell what you have done/didn't do etc., to solve this. Did you wildcard the domain in the DNS? Can you call the script directly (http://www.domain.com/index.cgi)? Permissions, configuration, etc.???
If it has a read me, read it and follow it closely.
Ted S
May 26th, 2001, 19:43
Lynks - To enable subdomains, you will need to add a dns record similar to the following:
* IN A 123.456.789.012
While I haven't used a raq4i, I know that with the raq2 & raq3, it was not possible to enable wildcards via control panel so a manuel modification had to be made (be warned, if you alter dns files by hand you cna not use the web panel to access them again or the alterations will be lost).
With this modification complete, you will then need to edit httpd.conf to point the default VirtualHost OR *.yourdomain.com to your script. Alternately, you can add a perl script to your MAIN directory and call it index.pl so that ALL requets are redirected (however this idea would not work on sub folders).
If any of this doesnt make sense, let me know....
Lynks
May 26th, 2001, 21:52
Thankyou Chicken & Ted,
I have done the following downloaded the script from the site mentioned. I then uploading cgilb + index.cgi in ascii mode as stated. The permissions are change to 755 and everything seems right.
It then asks to change the default index.html page to something else so that index.cgi is your main page. I did this then got a directory listing. There was a .htaccess page at the site above which I download and installed.
Then when i type: http://www.mydomain.com I got the black screen that said click here to enter the admin screen with a link to: http://admin.mydomain.com. When I click this it just returns me back to the index.cgi script without going anywhere.
Wildcards are on: if I type http://dlgjsjgs.mydomain.com it goes to my main index page. (or anything else)
The author (Eric) does not know what the problem is, as I have tried to figure it out with him over emails.
Any help greatly appreciated :)
Lynks
Lynks
May 26th, 2001, 21:54
Forgot one thing ted,
* IN A 123.456.789.012
does 123.456.789.012
represent my IP number?
Ted S
May 26th, 2001, 22:00
Yes, you will need to replace that number with the ip you use for that virtualhost.
Lynks
May 26th, 2001, 23:45
Got one more question unrelated though.
Where do I put my sql files on a raq4 ?
I want to install PHP nuke and some tables need to be created but I do not know where to put the sql file.
Thankyou
Lynks
Ted S
May 26th, 2001, 23:51
I'm not sure if raq4i's come with sql or not. TO check telnet to your box and type 'mysql'... if you get an error along the lines of being denied (or if you get the mysql>) promt then you're good to go. If not, go to cobalt's knowladge base and get the rpm and install it.
Once sql is installed, create the database that your script(s) require and eitehr copy and paste their table structure into sql or use whatever tool they have to build the strucutre for you. Configure the scripts accordingly and youre good to go...
Lynks
May 27th, 2001, 00:40
Thanks ted got it working ;)
Just having a minor PHP problem now...
Warning: fopen("config.php","w") - Permission denied in admin/settings.php on line 443
Warning: Supplied argument is not a valid File-Handle resource in admin/settings.php on line 752
Warning: Supplied argument is not a valid File-Handle resource in admin/settings.php on line 753
Warning: Cannot add header information - headers already sent by (output started at admin/settings.php:443) in admin/settings.php on line 754
How do I fix this?
Thankyou Lynks ;)
Ted S
May 27th, 2001, 00:47
Like the error says.... php is having permisions problems which normally means there's some sort of wrapper stopping it form working or the file isn't writeable. You can try looking in httpd.conf for a php wrapper and check the file permisions on settings.php (it should be writeable - 666)
Cael
May 27th, 2001, 06:49
Lynks, have you fixed it yet? If you did, mind to post out the steps you took to fix it? I am having similar problems over here.
***Edited***
I meant my subdomains forwarding is not working well. I am not having the MySQL problem.
***End***
Chicken
May 27th, 2001, 16:52
Originally posted by Lynks
Thanks ted got it working ;)
Just having a minor PHP problem now...
Warning: fopen("config.php","w") - Permission denied in admin/settings.php on line 443
Warning: Supplied argument is not a valid File-Handle resource in admin/settings.php on line 752
Warning: Supplied argument is not a valid File-Handle resource in admin/settings.php on line 753
Warning: Cannot add header information - headers already sent by (output started at admin/settings.php:443) in admin/settings.php on line 754
How do I fix this?
Thankyou Lynks ;)
I've recently gotten the same error Lynkx. There was a post at WHT about this but I havne't made the change to see if that fixes it or not.
This is what was posted (not by me), try it and tell me how it goes!
I think you're all looking in the wrong direction. When you get the "function undefined" error message in PHP, it cannot (!) have anything to do with your MySQL installation.
As this is a RaQ XtR, the correct thing to do is:
1. Edit /etc/httpd/php.ini and insert this line:
extension=mysql.so
2. Restart Apache using this command:
/etc/rc.d/init.d/httpd restart
That should correct the problem.
This procedure can be used on a RaQ4 too, if you've got a PHP compiled with MySQL as a shared library module.
Lynks
May 28th, 2001, 02:59
Hehe Simple mistake :)
Ok the PHP problem was solved by chmodding the config file to 666. This fixed that problem.
Donovan the problem with the subdomains I have not worked out. I talked to NOC @ tera-byte's IRC room and he said they don't know whats wrong but most likely it is the server setup of the cobalt machine.
He also said there is a script that was designed for cobalt's but he couldnt remeber where it is or what the name of it is. So I guess thats some good/bads news!
Some more goods news is that I am a 200 League Poster ;)
Lynks
Cael
May 30th, 2001, 05:41
Well, I got a friend which successfully added a similar script to his RaQ 3, from 4ws as well. If you can send me your ICQ UIN, I can have him contact with you.
I am not most likely to spend anything for a forwarding script, I just wish that someone can tell me about how to use mod_rewrite for forwarding sub-domains. It's enough for my needs already as I am not starting any URL forwarding services. I just want to make the works to forward my clients' sub-domains more easier.
Currently I am using another method for sub-domains, it's still ok for me right now.
Toefur
May 30th, 2001, 11:15
Just thought i'd mention; that I got subdomains working with my $99 tera-byte plan.
All I did was set the name servers to Zoneedit.com, and then with that you add a zone for your domain and set that domain to point at the IP address tera-byte gives you; everything with the domain works as it would normally then.
From Zoneedit you can then add subdomains in the webforward section.
Cael
May 30th, 2001, 11:46
Emm.... Don't know about it. But I don't like the ideas. Sounds like complicating. But I know it's not. Just lazy to deal with any 3rd party...
Lynks
June 4th, 2001, 08:45
Does POP 3 Work with your domain toefur
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.