Problem when new install

d2thanh

New member
Joined
May 11, 2010
Messages
2
Code:
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file

When I run ./setup.sh and choose all default: apache2, php5 cli, when it run to there, it show that mysql doesn't installed, because that php can't be compiled.

After that, I go to custombuild folder and run below command:
  • ./build update
  • ./build clean
  • ./build mysql

It show me some error that I realize that mysql has problem:

Code:
[root@shared001 custombuild]# ./build mysql d 
Cannot find /usr/bin/mysqldump
Found /usr/local/directadmin/custombuild/mysql/MySQL-client-5.1.46-1.glibc23.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-devel-5.1.46-1.glibc23.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-server-5.1.46-1.glibc23.i386.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-shared-5.1.46-1.glibc23.i386.rpm
Stopping mysqld ...
mysqld: unrecognized service
Cannot find /usr/bin/mysql, installing MySQL
error: MySQL-shared-5.1.46-1.glibc23.i386.rpm: headerRead failed: hdr blob(23312): BAD, read returned 5196
error: MySQL-shared-5.1.46-1.glibc23.i386.rpm cannot be installed
mysqld: unrecognized service
Giving mysqld a few seconds to start up...
Restarting MySQL.
./build: line 2747: /etc/init.d/mysqld: No such file or directory
It is recommended to do "./build php n" after MySQL update.


Please tell me know how can I fix it? I think file "MySQL-shared-5.1.46-1.glibc23.i386.rpm" has some error here. But I don't know how to repair it.
 
Last edited:
it's look like the mysql does'nt installed beacuse the errors
your should do:
./buld clean
./build update
./build mysql
 
It seem that file 'MySQL-shared-5.1.46-1.glibc23.i386.rpm' has error. Because our server only has 128kbps connect to foreign Internet (same connect to directadmin server), we download and upload it to our server manual.

Anyway, thank for your reply.
 
how can I create a user account in a second hard disk?

I've found some informations in how to change the /home location but none in how to setup only one aco**** in another HD.

any help?
 
For CentOS5:

1. mount second drive as /home2
2. Update your /etc/default/useradd. Change

Code:
HOME=/home

with

Code:
HOME=/home2


That's it. That should work fine.




I've checked it, here is my extract of httpd.conf:

Code:
	ServerName www.test.it
	ServerAlias www.test.it test.it 
	ServerAdmin [email protected]
	DocumentRoot /home2/testit/domains/test.it/public_html
	ScriptAlias /cgi-bin/ /home2/testit/domains/test.it/public_html/cgi-bin/


and

Code:
# cat /etc/virtual/test.it/passwd
mail:*:508:12::/home2/testit/imap/test.it/mail:/bin/false

So I've got /home2 in there.


After you finish with the creation, you might want to roll back with changes done to /etc/default/useradd.
 
Back
Top