| httpd.conf editing question |
| Author |
Message |
Nameslot
Administrator
      
Posts: 1,528
Group: Administrators
      Cash: 500.50 Donate
|
|
httpd.conf editing question
I was trying to setup one parking type stuff for one of the client. On it I wanted to base some other stuff that I have had previously in mind.
The client already has the reseller account but in etc/ folder there is no httpd.conf that would be edited.
I can get other type of access if it is absolutely needed for this.
Your ideas and opinions are most welcomed.
Thanks.
Nameslot.com | Do you have a question? shoot me a PM.
|
|
| 08-20-2007 02:16 PM |
|
 |
Advertisements
|
This is an ad revenue sharing forum
|
| |
|
 |
maximum
Super Moderator
     
Posts: 35
Group: Super Moderators
 Cash: 0.00 Donate
|
|
RE: httpd.conf editing question
The client already has the reseller account but in etc/ folder there is no httpd.conf that would be edited.
I emailed you earlier today, concerning this matter:grinning-wink: As to "/etc" folder, I assume you mean inside "/home/his-username/etc/". The file "httpd.conf" is server-wide, and not found inside a user's account. He would need root/server-admin access, and have him check for it. In Apache it is by default located at /usr/local/apache/conf/httpd.conf. IF its not there, he can run the following command using SSH (logged in as root) to look for it (note: Until it returns to a user-prompt, give it a minute, as this search can take a bit of time and may find more than one listing.:
find / -name 'httpd.conf'
Play with httpd.conf carefully, as it is the instruction-set/brains for your system. Drunks should not be performing brain surgery, and newbies should avoid trying to mess with OS configurations:P
Domains for sale: www.MyDomains.net
|
|
| 08-22-2007 07:54 AM |
|
 |
nielsencl
Elder Moderator
     
Posts: 693
Group: Super Moderators
  Cash: 52.50 Donate
|
|
RE: httpd.conf editing question
I have several reseller accounts and they have /etc folders, but none with "httpd.conf" as that would be server wide. I don't think you can do that if it's a reseller account... You may need a VPS or dedicated server account.
Cheap Calls - Lists - Domainer - Park - Register
|
|
| 08-22-2007 08:11 AM |
|
 |
maximum
Super Moderator
     
Posts: 35
Group: Super Moderators
 Cash: 0.00 Donate
|
|
RE: httpd.conf editing question
I have several reseller accounts and they have /etc folders, but none with "httpd.conf" as that would be server wide. I don't think you can do that if it's a reseller account... You may need a VPS or dedicated server account.
Correct :exclamation: Smart Cookie :grinning-wink:
However, Nameslot emailed me (see my remark to that above), about this earlier on two occassions. It appears his client/friend has a dedicated server, and that Nameslot is just mentioning him already having a reseller account set-up. Problem - assuming I'm understanding everything here - is that we have a guy with a dedicated server (I assume 100% self-managed) who can't find his own httpd.conf file (for a server admin = scary thought, since that is like a user not finding "public_html").
IF I am misunderstanding something, Nameslot, please let me know:grin: IF and WHEN he finds it, and you get the docs to me I requested via email reply, we can then take this problem step-by-step:wink:
Maximum now goes off to see how bad he can screw-up the httpd.conf file of the server this foum is hosted on:evil: Just kidding :D
Domains for sale: www.MyDomains.net
|
|
| 08-22-2007 09:57 AM |
|
 |
Nameslot
Administrator
      
Posts: 1,528
Group: Administrators
      Cash: 500.50 Donate
|
|
RE: httpd.conf editing question
Yes My client does have dedicated server. But he doesn't knows what is httpd.conf or what is .htaccess
He also doesn't knows what is php and what is website. Well this sounds funny but what to do. I am getting that kind of clients and only that kind of clients do pay nicely :grin: That is why I mentioned that I can get the other kind of access :wink: Root access. But I thought it might not be needed. I understand now that it will be needed.
I did got maximum's email. Sending the things to email :grin:
Thanks a lot for your input. This was killing me as I am windows guy :crying:
Nameslot.com | Do you have a question? shoot me a PM.
|
|
| 08-22-2007 02:04 PM |
|
 |
maximum
Super Moderator
     
Posts: 35
Group: Super Moderators
 Cash: 0.00 Donate
|
|
RE: httpd.conf editing question
Your email, in part, with the steps explained a bit (As I do not have the script, I'm assuming things here basd off of the instructions they are giving that you passed along. If this dosn't work for you, let me know.):
1. Firstly, you will need to choose a "parking domain". This domain will be used by the system to park each domain on the website. The domain should be a tld (ie: myexample.com). Sub domains, add-ons etc are not supported.
In WHM, create a whole new domain (seperate from your main domain). For my explainations here we shall call them ParkingService.com (main domain) and BackendDomain.com. I don't know for sure without using the script (I have not paid fo that right..lol), but assume they set it up this way so that you have access to change the "parking pages" & the script via your main domain's CP and FTP, while not having to put the script itself in your document-root of your main domain since you would use this for getting busines to your paking service.
2. Once you have chosen your "parking domain", you will need to create an account for it on your server (in cPanel). It is recommended that this domain is given "unlimited" parked domain allowance. If your hosting is with Smartscript, then please inform us of the domain you wish to use as your "parking domain" and we will set the account up for you.
See step #1 - already done.
3. Now that you have your "parking domain", you need to change the document root of this domain to point to the "parking" folder on your main account (ie: the url in which the script is installed). This can be done by modifying the "httpd.conf" file on UNIX systems.
Using an SSH tool, like the server-admin-popular Putty, assess SSH using the root access login(s) - ie: Host may have it set-up so that you have to login under username "root"+password only, or it may be set-up where you have to login as a certain/priviledged username then use the "su -" command login to access the server at root-level. Once at root, access the httpd.conf file (assuming cPanel and default location I mentioned above), by using the command:
pico /usr/local/apache/conf/httpd.conf
You will then look for the VirtualHost entry for the parking backend (BackendDomain.com). It will look simular to the following (not always exactly line-by-line the same, as this varies by server configuration):
<VirtualHost 216.00.000.02>
ServerAlias www.backenddomain.com
ServerAdmin webmaster@backenddomain.com
DocumentRoot /home/backend/public_html
User backend
Group backend
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/backend/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/backend/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
ServerName backenddomain.com
<IfModule mod_userdir.c>
Userdir disabled
Userdir enabled backend
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup backend backend
</IfModule>
User backend
Group backend
BytesLog /usr/local/apache/domlogs/backenddomain.com-bytes_log
CustomLog /usr/local/apache/domlogs/backenddomain.com combined
ScriptAlias /cgi-bin/ /home/backend/public_html/cgi-bin/
</VirtualHost>
You need to change the following:
ServerAdmin webmaster@backenddomain.com
[color=red]change to -----
ServerAdmin webmaster@parkingservice.com
DocumentRoot /home/backend/public_html
change to -----
DocumentRoot /home/pakingservice/public_html/scriptdirectory
-------- I RECOMMEND trying the script WITHOUT changing the below first ------
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/backend/:/usr/lib/php:/usr/local/lib/php:/tmp"
change to -----
php_admin_value open_basedir "/home/parkingservice/public_html/scriptdirectory:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/backend/:/usr/lib/php:/usr/local/lib/php:/tmp"
change to -----
php_admin_value open_basedir "/home/parkingservice/public_html/sciptdirectory/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
-------------------------------------------
NOTICE: Keep what shows on one line in httpd.conf as one line! This forum thread breaks it up, but seperating lines in httpd.conf can be a big error!
4. Once you have changed the document root of your "parking domain", you will need to restart apache so that the new settings take effect.
Exit the httpd.conf file (putty instructions here), by hitting the Ctrl (Control key) + "X" at same time. It will ask you if you wish to over-write changes - yes.
Back at prompt, restart Apache with the command:
/etc/init.d/httpd restart
5. Now login to Domain Trader admin: http://www.yourdomain.com/admin
Do this one, and #'s 6 & 7, using the main domain (ParkingService.com).
6. Click "Site Settings". Scroll down the page until you reach "Parking domain". Enter your parking domain in the space provided. Below that is a field called "Parking skin". Enter your cPanel skin in the space provided (example: x, bluelagoon, monsoon etc.) Now there are two fields listed below that called "Parking username" and "Parking password". Enter the username/password used to gain cPanel access for your parking domain.
7. The domain parking module is now configured. You can now specify your XML feed account details in admin under "XML Settings"."
Have issues with this, please let me know. And, a word of advice: BE SURE to make no other changes in the httpd.conf file, other than mentioned. Messing up httpd.conf can make all websites on the server inaccessable:oops:
Domains for sale: www.MyDomains.net
|
|
| 08-22-2007 07:47 PM |
|
 |
maximum
Super Moderator
     
Posts: 35
Group: Super Moderators
 Cash: 0.00 Donate
|
|
RE: httpd.conf editing question
Yes My client does have dedicated server. But he doesn't knows what is httpd.conf or what is .htaccess
He also doesn't knows what is php and what is website. Well this sounds funny but what to do.
Like I said....scary:confused:
I am getting that kind of clients and only that kind of clients do pay nicely :grin:
Hey...run with it! Make all you can, while being honest and fair. Nothing wrong with seeing green (cash):wink: Hope for all this trouble, that it is paying VERY well:money-mouth::money-mouth:
That is why I mentioned that I can get the other kind of access :wink: Root access. But I thought it might not be needed. I understand now that it will be needed.
Just heed warnings...be careful:smile:
Thanks a lot for your input. This was killing me as I am windows guy :crying:
No problem, glad can help. Windows? Microsoft can't keep home users secure, yet some folks think they can make a server OS that can be secure while the server is opened on the web for all to try destroying- Now that is just too darn funny, IMHO:grin::P Just picking on you, my friend. I use Windows at home..lol
Domains for sale: www.MyDomains.net
This post was last modified: 08-22-2007 07:59 PM by maximum.
|
|
| 08-22-2007 07:58 PM |
|
 |
Nameslot
Administrator
      
Posts: 1,528
Group: Administrators
      Cash: 500.50 Donate
|
|
RE: httpd.conf editing question
Really nice explanation Maximum. I really appreciate it.
Thanking You :grin:
Nameslot.com | Do you have a question? shoot me a PM.
|
|
| 08-24-2007 03:40 PM |
|
 |
maximum
Super Moderator
     
Posts: 35
Group: Super Moderators
 Cash: 0.00 Donate
|
|
RE: httpd.conf editing question
No problem. Hope it works for you!
Domains for sale: www.MyDomains.net
|
|
| 08-24-2007 03:50 PM |
|
 |
Internet Concierge
Super Moderator
     
Posts: 26
Group: Super Moderators
 Cash: 0.00 Donate
|
|
RE: httpd.conf editing question
Yes My client does have dedicated server. But he doesn't knows what is httpd.conf or what is .htaccess
He also doesn't knows what is php and what is website. Well this sounds funny but what to do. I am getting that kind of clients and only that kind of clients do pay nicely :grin: That is why I mentioned that I can get the other kind of access :wink: Root access. But I thought it might not be needed. I understand now that it will be needed.
I did got maximum's email. Sending the things to email :grin:
Thanks a lot for your input. This was killing me as I am windows guy :crying:
Who is this? I hope you are not speaking about me. Because all of that would be false.
|
|
| 08-31-2007 05:55 AM |
|
 |
|
Pages (2):
« First
[1]
2
»
Last »
|