Visit Our UNIX and Linux User Community


Setting up Apache/mySQL/PHP in Jail


 
Thread Tools Search this Thread
Operating Systems BSD Setting up Apache/mySQL/PHP in Jail
# 1  
Old 08-11-2009
Setting up Apache/mySQL/PHP in Jail

Server: FreeBSD 7.2-Release

Previously I admin a website that uses IP.Board as a forum. It was on a FreeBSD server but there were some issues with some other people on the server so the whole server has been resetup. It is has been set up as a Unix Jail and I was given root access. Apache has been installed I've been told but I'm not sure how to configure it so that it points to the domain but I'm waiting to hear back from him on that.

Right now I'm trying to install mySQL. However the base commands like groupadd and useradd that I would use to set up my mysql user aren't working. I'm not sure if that is because of the Unix Jail or something else.

Can anyone direct me on what I need to do to set up mySQL?
# 2  
Old 08-11-2009
Why not just install it via ports?

Code:
cd /usr/ports/databases/mysql50-server
make install clean

If you dont have ports already you can do:

Code:
cd /usr/src
fetch "ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz"
tar xvfz ports.tar.gz -C /usr

Then repeat the commands above.

To keep your ports updated you can do:

Code:
portsnap fetch
portsnap update

# 3  
Old 08-11-2009
Because I didn't know I could install it that way. Thank you, that seems to have made that part painless at least. I suppose the same thing can also be done to install PHP.

By chance do you also know how I can find out which folder apache is set up as the public or the www folder for the domain?

Edit: Ok I'm still having trouble with setting up my sql group and users.

groupadd mysql
useradd -g mysql mysql

Last edited by Dark Severance; 08-11-2009 at 07:53 PM..
# 4  
Old 08-13-2009
Issue resolved now.

Previous Thread | Next Thread
Test Your Knowledge in Computers #12
Difficulty: Easy
CPU stands for 'Computer Processing Unit' and controls all of a computer's functions, acting as the brain(s) of computers.
True or False?

9 More Discussions You Might Find Interesting

1. Ubuntu

Mysql apache installation

on ubuntu lamp server how to install mysql and apache? any instructions? (1 Reply)
Discussion started by: srinathk
1 Replies

2. UNIX for Dummies Questions & Answers

Setting up HTTPS in Apache with Linux

I have recently setup a HTTP server using Apache. This was my first install of Apache, so I am very new to it. What I would now like to do is setup HTTPS for my server. Unfortunately, the official Apache 2.2 manual doesn't cover setting up HTTPS, and using Google search engine I have found... (2 Replies)
Discussion started by: SSL
2 Replies

3. Red Hat

Apache,php,mysql, and jdk 1.6 update 20 installation on RHEL 5.5

I want to install Apache (version 2.2.X), php (version 5.3.X),mysql (version 5.5.X) on RHEL 5.5. Guide re. site address for download all rpm. X = latest version. Thanks in advance. (1 Reply)
Discussion started by: vasdaax
1 Replies

4. Red Hat

Wordpress + Apache,PHP,MySQL = blankpage

Hi, This is my problem: - I install and configure apache,php,mysql-server - configure database on mysql and wp-config od Wordpress - upload files wordpress in to public_html and... i see results "blank page". What is it? Where is problem? (PS. I install and configure wordpress few... (1 Reply)
Discussion started by: gripek
1 Replies

5. Web Development

Problem setting up apache

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use : http://localhost:8022/ in my browser. The problem is that I wanted to be able to acces it from somewere else through the internet. I read some instruction and help sites related to this problem, like :... (2 Replies)
Discussion started by: spiriad
2 Replies

6. UNIX for Dummies Questions & Answers

setting up ACL in Apache

Folks; How can i setup ACL in Apache so i can give a group of users (defined by their emails (all users under *@red.com) access to a web page? (10 Replies)
Discussion started by: moe2266
10 Replies

7. UNIX for Dummies Questions & Answers

Setting Last-Modified Bit in Apache

Hi, I have a co-worker that uses javascript code to generate the last-modified date on a file. The problem is our server does not properly send this date so javascript can display it. I know that it is better to use server-side scripting to generate this but she has already put it on multiple... (1 Reply)
Discussion started by: robbieg
1 Replies

8. UNIX for Dummies Questions & Answers

Apache and MySQL as services?

What is the best way to run Apache2 and MySQL as daemons that run on startup? Can anyone give me some scenarios/examples. Thanks in advance! (3 Replies)
Discussion started by: ezekiel61
3 Replies

9. UNIX for Dummies Questions & Answers

PHP & Apache & MySQL install how-to ?

how do i install php & mysql with apache on suse linux ??? apache was installed and configured when i installed linux. all its files are in different folders. e.g http files in usr/local/httpd/htdocs/ and its configs are in etc/httpd/ so how do i install php and get it to work with apache and... (4 Replies)
Discussion started by: perleo
4 Replies

Featured Tech Videos