Tips for fixing common problems….-I’ve deleted /home, how do I recreate the directories?
Tips for fixing common problems….-I’ve deleted /home, how do I recreate the directories?–Generally, this isn’t the best thing to have happen because all of the data is stored there.
You will need to recreate all of the directory structures, as well as a few files requiring for DA to run:
1) Create the DA tmp directory so you can log into DA again:
mkdir -p /home/tmp
chmod 1777 /home/tmp
2) Create the /home/username directories and sub-directories:
cd /home
vi make_dirs.sh
press ‘i’ to go into “insert mode” then paste the following script (right click)
#!/bin/sh
for i in `ls /usr/local/directadmin/data/users`; do
{
for d in `cat /usr/local/directadmin/data/users/${i}/domains.list`; do
{
};
done;
mkdir -p /home/${i}/backups
chown -R $i:$i /home/${i}
chmod -R 755 /home/${i}
};
done;
exit 0;
Press “ctrl-c” to exit “insert mode”, then press “shift-Z” twice to save and exit. Once the file is saved, type:
chmod 755 make_dirs.sh
./make_dirs.sh
Installing DBD::mysql from source
To install DBI and DBD:mysql from source, run the following:
wget http://www.cpan.org/modules/by-module/DBD/DBI-1.634.tar.gz
tar xvzf DBI-1.634.tar.gz
cd DBI-1.634
unset LANG;
perl Makefile.PL
make
make install
cd ..
wget http://www.cpan.org/modules/by-module/DBD/DBD-mysql-4.033.tar.gz
tar xvzf DBD-mysql-4.033.tar.gz
cd DBD-mysql-4.033
unset LANG;
perl Makefile.PL
make
make install
to install it from cpan, use this:
perl -MCPAN -e ‘install Bundle::DBD::mysql’
If there you get testing errors (root denied) with the cpan install, try:
cd /root/.cpan/build/DBD-mysql-4.033
perl Makefile.PL –testuser=da_admin –testpassword=`grep ^passwd= /usr/local/directadmin/conf/mysql.conf | cut -d= -f2`
make && make install
where you might need to adjust 4.033 to the version is being installed.
Frontpage on FreeBSD 5.x
FrontPage has discontinued. Do not use it.
From year 2006:
If there you get the following error when installing the Frontpage Extensions to a domain:
Error setting up your web: /usr/libexec/ld-elf.so.1: /usr/lib/libc_r.so.4: Undefined symbol “_flockfile”
or
Error setting up your web: /usr/libexec/ld-elf.so.1: Shared object
“libc.so.4” not found, requiring by “owsadm.exe”
then you will need to do the following:
pkg_add -r compat4x
cd /usr/lib
mv libc_r.so.4 libc_r.so.4.old
ln -s /usr/local/lib/compat/libc_r.so.4.compat4x libc_r.so.4
If pkg_add fails, try this:
cd /usr/ports/misc/compat4x
cd /usr/lib
mv libc_r.so.4 libc_r.so.4.old
ln -s /usr/local/lib/compat/libc_r.so.4.compat4x libc_r.so.4
For FreeBSD 6.0, try this code
cd /usr/lib
ln -s /usr/local/lib/compat/libcrypt.so.2
ln -s /usr/local/lib/compat/libm.so.2
mv libc.so.4 libc.so.4.old
ln -s /usr/local/lib/compat/libc.so.4
On one 6.1 system, after the compat libraries is setup, you had to run
cd /lib
ln -s libcrypt.so.3 libcrypt.so.2
which did not actually use the compat libaries in the end.