Current time: 12-28-2024, 05:11 AM Hello There, Guest! (LoginRegister)


Post Reply 
A bunch of small questions ..
Author Message
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #11
RE: A bunch of small questions ..
Couldn't find that script.

But now I can't even get this to work:
http://vhcs.puuhis.net/wiki/index.php/Te...to_domains

It worked fine in VHCS. Now I just get a 404, and nothing in the logs.

/E
05-24-2007 11:08 PM
Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #12
RE: A bunch of small questions ..
Oh, it was the DNS Cash spooking again. That's sorted out, but now I have this error:

"The requested URL /php4/php4-fcgi-starter/index.php was not found on this server"

...when trying to reach userdir.domain.com.

This is my userdir.conf:

<VirtualHost userdir.domian.com:80>
ServerName userdir.domain.com

DocumentRoot /var/www/ispcp/gui
<Directory /var/www/ispcp/gui>

Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all


</Directory>


<IfModule mod_userdir.c>

UserDir /var/www/virtual/*/htdocs
UserDir disabled root

<Directory /var/www/virtual/*/htdocs>

AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

</Directory>

</IfModule>
</VirtualHost>




/E
(This post was last modified: 05-24-2007 11:39 PM by Eminos.)
05-24-2007 11:37 PM
Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #13
RE: A bunch of small questions ..
I've tried to add the ScriptAlias line, like this:

<IfModule mod_userdir.c>

ScriptAlias /php4 /var/www/fcgi/hostingdomain.com/

UserDir /var/www/virtual/*/htdocs
UserDir disabled root
...
---

Then I get like a timeout, and error 500.

Error log:

[Thu May 24 17:22:33 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/hostingdomain.com/php4-fcgi-starter" (uid 0, gid 0) restarted (pid 26207)
[Thu May 24 17:22:33 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/hostingdomain.com/php4-fcgi-starter" (pid 26207) terminated by calling exit with status '107'
[Thu May 24 17:22:39 2007] [warn] FastCGI: (dynamic) server "/var/www/fcgi/hostingdomain.com/php4-fcgi-starter" (uid 0, gid 0) restarted (pid 26208)

...

FastCGI: (dynamic) server "/var/www/fcgi/hostingdomain.com/php4-fcgi-starter" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds

----

A get a whole bunch of these.

/E
05-25-2007 01:28 AM
Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #14
RE: A bunch of small questions ..
Whata hell !
I can't even get it to work if I put an Alias to my ispcp.conf under my domain, like:

Alias /userdomain.com /var/www/virtual/userdomain.com/htdocs/

I get a 404 Sad
I'm sure it's the fcgi. I don't know how to fix it Sad

Is there ANY WAY at all that I can give my customers a way to see their webpage without using THEIR domain ??

/E
05-25-2007 02:42 AM
Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #15
RE: A bunch of small questions ..
No one ? Sad
Maybe it's a user rights problem ?
Since the files in my customers domain folder are vu2054, maybe that's why I'm getting the 404 ? But I should have got a 403 then ? Hmmm...

I really need a way to give some of my customers a "subdomain" or alias or whatever you wanna call it.

/E
05-25-2007 03:46 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #16
RE: A bunch of small questions ..
I'm sure you can put som more Serveralias Names in the apache config...
(but also in /etc/ispcp/apache/working..)

instead of only
ServerName domain.ch
ServerAlias http://www.domain.ch domain.ch *.domain.ch
you make
ServerName domain.ch
ServerAlias http://www.domain.ch domain.ch *.domain.ch domain.cust.mydomain.tld

or something like that - of course the DNS fro *.cust.yourdomain.tld must point to the ispcp server. It's a manual way but should work... (until there is a better solution integrated)...

Maybe you can adapt the tpl files which are used to create new entries in the conf file..
05-25-2007 04:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #17
RE: A bunch of small questions ..
Hmm, thanks for the tip joximu, but I don't really understand.
First, I don't understand under what domain I should edit that ServerName and ServerAlias, under mycustomer.com or hostingcompany.com ?

Could you please make the same example as in your post above, but please use mycustomer.com and hostingcompany.com. Foolproof Big Grin

Thanks man ..

/E
05-25-2007 04:40 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #18
RE: A bunch of small questions ..
Since you have to add this for every customer domain its like this:

old:
Code:
ServerName mycustomer.com
ServerAlias www.mycustomer.com mycustomer.com *.mycustomer.com

new:
Code:
ServerName mycustomer.com
ServerAlias www.mycustomer.com mycustomer.com  *.mycustomer.com mycustomer.cust.hostingcompany.com


the part ".cust." is only for the case a cusomer is named www oder mail - that would be a problem... :-)
(This post was last modified: 05-25-2007 04:54 AM by joximu.)
05-25-2007 04:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #19
RE: A bunch of small questions ..
Alright, I changed that, still no go.
You said something about bind/dns as well ?

--

Oh I see.
I put the "customer" to myhostingcompany.com.db (bind file)

customer IN A ***.***.***.***

/E
(This post was last modified: 05-25-2007 05:11 AM by Eminos.)
05-25-2007 05:04 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #20
RE: A bunch of small questions ..
Yes - of course the urls

mycustomer.cust.hostingcompany.com must resolve to the ip of the ispcp server.

so in the dns zone file of hostingcompany.com I' add something like this:

*.cust.hostingcompany.com 1D IN CNAME admin.hostingcompany.com.

or similar...
05-25-2007 05:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 7 Guest(s)