LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 08-08-2006, 01:42 PM   #1
fatum112
Member
 
Registered: Nov 2005
Location: The Netherlands
Posts: 66

Rep: Reputation: 15
Freebsd Webservice problems


Hi,

i am new to freebsd, i used fedora, suse, debian, ubuntu, etc in the past as a server system..

now ofcourse freebsd is totally different..
now what i'm trying to do is:
VHCS with:
postfix,
mysql server 4.x
courier,
proftpd,
apache 2
php4.x
php4-extensions

now, all are listed, but onmoste all services contain problems...

all services however are listed, except pop3 pop3s imap and secure imap..

so that is the first problem,

now mysql has 2 problems,
there does not exist my.cnf in /etc
and i can not login on a remote mashine

proftpd have no clue about that one, there is a ftp service listed, webmin does not pick it up.. it says it could not located the module,

smtp (postfix) works on the server, but not on any local mashine.

apache2, does work, atleast i think it does..

php looks like it works, atleast <?php phpinfo() ?> works correct..

VHCS gives me this error, which i do not understand:
Warning: Unknown(/usr/local/www/vhcs2/gui/index.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)() [function.include]: Failed opening '/usr/local/www/vhcs2/gui/index.php' for inclusion (include_path='.:') in Unknown on line 0



can anyone help me out? even if it's only with 1 program which you know..

thanks..
Marco
 
Old 08-09-2006, 04:33 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
Quote:
now mysql has 2 problems,
there does not exist my.cnf in /etc
try here, /usr/local/share/mysql, you would need to copy it to /etc/my.cnf

Quote:
and i can not login on a remote mashine
what is this supposed to mean?

Quote:
proftpd have no clue about that one, there is a ftp service listed, webmin does not pick it up.. it says it could not located the module,
try this command
sockstat -4
see if you see the port 21, try ftp localhost and check.

Quote:
smtp (postfix) works on the server, but not on any local mashine.
you probably need to allow relay on the network or to specific machines. I am not good with postfix.
 
Old 08-09-2006, 06:07 AM   #3
fatum
LQ Newbie
 
Registered: Jan 2004
Location: The Netherlands
Posts: 19

Rep: Reputation: 0
thanks for your reply,
mysql as you told is in place now..
the remote login on my sql, example: i got mysql administrator setup on a local windows pc, it's impossible to connect from that pc, while locally works fine..

proftpd is listed, i found out that i forgot to enable it at rc.d, now it is running, but i do not know how to create usernames for it.. i usually used webmin for it, however, webmin sees it as if it isn't installed (probably wrong paths.. )

do you know the console command for user names ?
or how to configure webmin for proftpd?

postfix, well i think i finally got that one running..
 
Old 08-09-2006, 09:00 AM   #4
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
to create new ftp users. jus add new users using
useradd ftpuser1
passwd ftpuser1
chsh /sbin/nologin
 
Old 08-09-2006, 05:52 PM   #5
fatum
LQ Newbie
 
Registered: Jan 2004
Location: The Netherlands
Posts: 19

Rep: Reputation: 0
ok it says command not found
 
Old 08-09-2006, 07:53 PM   #6
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
for which command does it say that?
 
Old 08-14-2006, 12:24 PM   #7
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Rep: Reputation: 15
For MySQL remote connection:

You have to add remote user and machine as well before you connect from any workstation.

Something like this for root user.
# grant all on database.* to 'root'@'machine.ip' identified by 'password';

Didn't use MySQL for a long time. Here is grant command syntax.


GRANT priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON {tbl_name | * | *.* | db_name.*}
TO user [IDENTIFIED BY [PASSWORD] 'password']
[, user [IDENTIFIED BY [PASSWORD] 'password']] ...
[REQUIRE
NONE |
[{SSL| X509}]
[CIPHER 'cipher' [AND]]
[ISSUER 'issuer' [AND]]
[SUBJECT 'subject']]
[WITH with_option [with_option] ...]

with_option =
GRANT OPTION
| MAX_QUERIES_PER_HOUR count
| MAX_UPDATES_PER_HOUR count
| MAX_CONNECTIONS_PER_HOUR count
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Objects to a Webservice (Java) megabot Programming 4 07-03-2006 07:38 AM
problems installing FreeBSD asilentmurmur *BSD 1 10-16-2005 11:58 AM
freebsd install problems.......... Manny1337 *BSD 4 08-05-2005 10:09 PM
freebsd problems after installation provkitir *BSD 8 12-30-2004 11:09 AM
Problems with FreeBSD 5.2 xyther4523 *BSD 2 01-30-2004 07:14 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration