DirectAdmin Forums

Go Back   DirectAdmin Forums > Technical Discussion > CustomBuild

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2007, 09:36 AM
jlasman's Avatar
jlasman jlasman is offline
NoBaloney
 
Join Date: Jun 2003
Location: Riverside, Calif., USA
Posts: 20,706
Discussion about CustomBuild

Martynas,

How about a nice description somewhere of what CustomBuild does and why we should use it?

And also ...

Anything we have to know special when switching to it and running it the first time.

I want to try it on a testbed soon .

Jeff
__________________

Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345
Third-Party DirectAdmin administration and support
Dedicated Servers, Dedicated Reseller Accounts
NoBaloney Internet Services
P.O. Box 52200
Riverside, Calif. 92517
Reply With Quote
  #2  
Old 06-07-2007, 01:03 PM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
Nothing special to know I've just edited my 1st post.
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #3  
Old 06-08-2007, 01:49 AM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
FAQ has been updated
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #4  
Old 06-18-2007, 03:34 AM
GMT GMT is offline
Registered User
 
Join Date: Jun 2007
Posts: 1
Apache 1.3

Is there a way I can install this using apache 1.3. Possibly using ./build versions?

I'd really like the functionallity of running php4 and 5 concurrently but have already found out the hard way that my system is incconpatable with apache 2?

I don;t want to try an install without being able to make sure the apache doesn't get upgraded!

Last edited by GMT; 06-18-2007 at 03:36 AM.
Reply With Quote
  #5  
Old 06-18-2007, 04:41 AM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
I'm sure it's compatible But.. if you want apache 1.3, set apache_ver to 1.3 (instead of 2.2) in options.conf.
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #6  
Old 06-28-2007, 09:26 AM
admonet admonet is offline
Verified User
 
Join Date: Oct 2005
Posts: 35
In my honest opinion there needs to be a pros and cons of PHP CLI and PHP CGI. I was a tard and forgot to build with php as a CGI and was scratching my head for a long while as to why it was not working even though I manually uncommented the Addmodule line etc etc....

P.S.
Maybe throw a file in logrotate.d to auto-rotate suphp.log

Just my 2c

Adam
Reply With Quote
  #7  
Old 06-29-2007, 01:25 AM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
John added it to the apache logrotate and the freebsd /etc/syslog.conf.
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #8  
Old 07-06-2007, 11:23 AM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
FAQ has been updated.
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #9  
Old 07-07-2007, 11:08 AM
mirage mirage is offline
Verified User
 
Join Date: Jan 2005
Posts: 16
Fresh CentOs installation with DA. I tried this script.

10. I have installed PHP5 (or PHP4) as CGI. How do I need configure them?
PHP4 configuration file is located here: /usr/local/etc/php4/cgi/php.ini
PHP5 configuration file is located here: /usr/local/etc/php5/cgi/php.ini

10. I have installed PHP5 (or PHP4) as CGI. Where can I find the bin file?
PHP4: /usr/local/php4/bin/php
PHP5: /usr/local/php5/bin/php


I get none of the above files after everything is compiled. DA wont restart. Apache wont restart.

My options.conf
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
apache_ver=2.2
mail-header-patch=yes
dovecot=no
Reply With Quote
  #10  
Old 07-07-2007, 11:21 AM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
Because you have PHP as CLI Your php.ini file is here: /usr/local/lib/php.ini. What error do you get?
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #11  
Old 07-07-2007, 11:32 AM
mirage mirage is offline
Verified User
 
Join Date: Jan 2005
Posts: 16
Thanks for your response. I tried to run the script again because none of my mysql/php based forums are working. Now I have ran it again and directadmin starts but http does not start.

" [warn] module php5_module is already loaded, skipping
Syntax error on line 29 of /etc/httpd/conf/extra/httpd-vhosts.conf:
The address or port is invalid"

This did not happen the first time I ran the script though.
Reply With Quote
  #12  
Old 07-07-2007, 11:49 AM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
What version of custombuild are you using? Please post me 29 line of /etc/httpd/conf/extra/httpd-vhosts.conf file.
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #13  
Old 07-07-2007, 11:57 AM
mirage mirage is offline
Verified User
 
Join Date: Jan 2005
Posts: 16
Quote:
Originally Posted by smtalk View Post
What version of custombuild are you using? Please post me 29 line of /etc/httpd/conf/extra/httpd-vhosts.conf file.
I got it from the first post you made here. http://www.directadmin.com/forum/sho...ht=custombuild


the conf file

<VirtualHost :80> ServerAdmin webmaster@localhost
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /var/www/html
ServerName localhost"
ScriptAlias /cgi-bin/ /var/www/cgi-bin/"
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>
Reply With Quote
  #14  
Old 07-07-2007, 01:38 PM
admonet admonet is offline
Verified User
 
Join Date: Oct 2005
Posts: 35
Just a quick question- Why doesn't custombuild use --with-imap ? How do I get imap installed with the new custombuild script?

Adam
Reply With Quote
  #15  
Old 07-07-2007, 01:40 PM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
You need to have <VirtualHost IP:80>.
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #16  
Old 07-07-2007, 01:45 PM
mirage mirage is offline
Verified User
 
Join Date: Jan 2005
Posts: 16
Quote:
Originally Posted by smtalk View Post
You need to have <VirtualHost IP:80>.
But it is there. IApache was working before I installed the script, so I don't know what changed or what I should change without breaking everything.



Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 29 of /etc/httpd/conf/extra/httpd-vhosts.conf:
The address or port is invalid
[FAILED]


<VirtualHost :80>
ServerAdmin webmaster@localhost
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /var/www/html
ServerName localhost"
ScriptAlias /cgi-bin/ /var/www/cgi-bin/"
CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

How can I roll back?
Reply With Quote
  #17  
Old 07-07-2007, 02:11 PM
smtalk's Avatar
smtalk smtalk is offline
Verified User
 
Join Date: Aug 2006
Location: Lithuania, EU
Posts: 4,353
Try:
Code:
./build rewrite_confs
P.S. make sure you have your hostname in /etc/hosts (with an IP of it) before running this command.
__________________
Martynas Bendorius
Feel free to contact me if you need monthly management, migrations or have one-time jobs. Thank you!
Darwin skin for DirectAdmin
Reply With Quote
  #18  
Old 07-07-2007, 02:40 PM
admonet admonet is offline
Verified User
 
Join Date: Oct 2005
Posts: 35
Anyone have an idea for my question?

Quote:
Originally Posted by admonet View Post
Just a quick question- Why doesn't custombuild use --with-imap ? How do I get imap installed with the new custombuild script?

Adam
Reply With Quote
  #19  
Old 07-07-2007, 03:04 PM
jjbakker jjbakker is offline
Verified User
 
Join Date: Apr 2006
Posts: 55
When i run the ./build update_all d command within a VPS.
The ssh session is terminated when php5 is compiled.

Any idea why?
Reply With Quote
  #20  
Old 07-07-2007, 03:35 PM
iceuk626 iceuk626 is offline
Verified User
 
Join Date: May 2006
Location: United Kingdom
Posts: 261
Quote:
Originally Posted by jjbakker View Post
When i run the ./build update_all d command within a VPS.
The ssh session is terminated when php5 is compiled.

Any idea why?
ive run this script over 10 times now and this has happend to me twice, so your not on your own. i actually have to reboot the server to gain access to it again.
Reply With Quote
Reply

Tags
custombuild

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
DirectAdmin © 2007 JBMC Software