Discussion about CustomBuild

That's because of the owner :) Do this:
Code:
chown webapps:webapps /var/www/html/phpinfo.php5
 
Chatwizrd, not to have both versions of PHP4 OR PHP5. e.g. PHP4 as CGI + PHP4 as CLI :) It won't let you to compile anything and it show you some errors.

OK I guess that makes more sense.

I got it working now.

Only thing I do notice is that this line is the same on both php4 and php5 phpinfo pages.

Loaded Configuration File /usr/local/etc/php4/cgi/php.ini

It is being called from this line in httpd-suphp.conf

suPHP_ConfigPath /usr/local/etc/php4/cgi/
 
Last edited:
If I want to upgrade to MySQL 5 and Apache 2

I change the versions in the options.conf

Then do I run this?
./build update_data
./build all d

or

./build Apache
./build MySQL

What's the correct way?
 
"./build mysql" is not included in "./build all" :) So you will need to run:
Code:
./build mysql
./build all d
 
/me tries this on a box that generates errors with every single tried way to upgrade phpMyAdmin... :o
 
First I updated phpMyAdmin via the DA way, and got something like:
Fatal Error: Call to a member function on a non-object in /var/www/html/phpMyAdmin-2.11.0-all-languages/libraries/common.inc.php 630
Then I used wael's update script, and it generated an error like:
Fatal Error: Call to a member function on a non-object in /var/www/html/phpMyAdmin-2.11.0-all-languages/libraries/common.lib.php line 3xxxx

Now I get:
Fatal error: Call to a member function getName() on a non-object in /var/www/html/phpMyAdmin-2.11.0-all-languages/libraries/common.inc.php on line 630
It has to be something with that theme-support in phpMyAdmin..
Also because I had an old version on that box: 2.6.1 (themes were introduced after this version) which works.

I did a lot of searching, and came to an unsolved bug-report related to this:
http://sourceforge.net/tracker/index.php?func=detail&aid=1453928&group_id=23067&atid=377408
:(













------------------------------------









oh dear... ^_^;
When I "installed" this script I was under the impression I would install just that script... and not update everything as well.. o_0;
That was a big risk, lol... from php4 to 5, mysql went from 4 to 5.0.45 and apache 1.3 to 2.2 o_0;
I even have roundcube on there now.. which was so not requested, lol
update script works like a charm though ;)

Could you edit your FAQ, so others won't make the same mistake ?
3. How to install custombuild?
Code:
cd /usr/local/directadmin
wget http://files.directadmin.com/services/custombuild/beta/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_data
./build all d






-------------------------------------------------

After the successfull installation, I ran:
# ./build update_versions
Which got some errors:
Updating MySQL.
Killing mysqld with pid 3972
.
.
.
02:04:40 (243.84 KB/s) - `MySQL-shared-5.0.45-0.i386.rpm' saved [1,777,644/1,777,644]

Found /usr/local/directadmin/custombuild/mysql/MySQL-client-5.0.45-0.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-devel-5.0.45-0.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-server-5.0.45-0.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-shared-5.0.45-0.i386.rpm
warning: MySQL-client-5.0.45-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [ 25%]
2:MySQL-client ########################################### [ 50%]
3:MySQL-devel ########################################### [ 75%]
4:MySQL-server ########################################### [100%]
070822 2:04:53 [Warning] Asked for 196608 thread stack, but got 126976
ERROR: 1136 Column count doesn't match value count at row 1
070822 2:04:53 [ERROR] Aborting

070822 2:04:53 [Note] /usr/sbin/mysqld: Shutdown complete

Installation of system tables failed!

And this is also a bit strange:
mysql> status
--------------
mysql Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (i686) using readline 5.0

Connection id: 11
Current database:
Current user: da_admin@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 4.1.7-standard
 
Last edited:
Duboux, about the different version numbers - recompile PHP after the MySQL upgrade. Good luck!
 
Now that ive fixed out mod_dav the frontpage extensions can be enabled inside DA without errors. However acording to one of my clients you still can't connect to the server using frontpage to upload your website like you used to be able to. I've tried altering the settings a bit but tbh i don't fully understand the config httpd-dav.conf;
Code:
Alias /uploads "/etc/httpd/uploads"

<Directory "/etc/httpd/uploads">
    Dav On

    Order Allow,Deny
    Allow from all

    AuthType Digest
    AuthName DAV-upload
    # You can use the htdigest program to create the password database:
    #   htdigest -c "/etc/httpd/user.passwd" DAV-upload admin
    AuthUserFile "/etc/httpd/user.passwd"

    # Allow universal read-access, but writes are restricted
    # to the admin user.
    <LimitExcept GET OPTIONS>
        require user admin
    </LimitExcept>
</Directory>

Does this mean that http://mydomain.com/uploads should be used to connect via frontpage? And can only certain accounts use the frontpage feature at the moment?

Any help with this is appreciated, thanks.
Chris
Did you ever figure this out?

I'll admit, I'm a bit confused about how webdav works. And if I even need to enable frontpage from the DA interface?

After building I don't actually have an http-dav.conf in /etc/httpd/conf/ Am I supposed to?

Anyway, any help would be appreciated. I'm in the process of moving all my users from my old server to a new one, and the FP users don't work yet :(

TIA
 
jw00dy, mod_dav isn't included in Apache 1.3. You can only use mod_frontpage together with Apache 1.3.
 
Right, I have Apache 2.2

After all the reading I've done, I'm guessing that mod_dav only allows you to connect to the server similar to mod_frontpage, but doesn't support all the frontpage forms etc. Is that correct?
 
The install went fine. Only apache won't start anymore.

I get this error:
> Starting httpd: Syntax error on line 30 of
> /usr/local/directadmin/data/users/scotiany/httpd.conf:
> Invalid command 'php_admin_flag', perhaps misspelled or defined by a
> module not included in the server configuration

And i readed everything on the forums, i have no custom templates.
I'm running freebsd 6.1.

Please help!
 
And what version of DirectAdmin? Aren't permissions wong of /usr/local/directadmin/data/users/scotiany/httpd.conf file?
 
Just turn allow_url_include to "On" in /usr/local/lib/php.ini and restart apache :) And you won't get the same errors.
 
Back
Top