Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2008, 05:33 PM
zeeshandoit zeeshandoit is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default HOW TO SETUP APACHE, PHP, MYSQL ON PCBSD
Hi,

How to setup apache, php5 and mysql5 on pcbsd? Rigth now i cant find any pbi files for these.

Zeeshan
Reply With Quote
  #2  
Old 06-06-2008, 06:09 PM
Cujo Cujo is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: HOW TO SETUP APACHE, PHP, MYSQL ON PCBSD
If you installed the port tree, you can cd to /usr/ports/www/apache22.

Install as sudo or su.

"sudo make -i install clean"

You need the -i (for ignore) or it will error out due to a conflict to another package install.

It appears not to cause any ill effect on any operation.

As for starting Apache on boot up, I am still working on this. Maybe someone can beat me to the answer.

As for PHP, MySQL, I have not done this yet.

OpenSSL will install so you need to comment out the module in the httpd.conf unless you have a cert ready to go. Once OpenSSL is commented out - sudo httpd -k start will start Apache.
Reply With Quote
  #3  
Old 06-06-2008, 08:24 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: HOW TO SETUP APACHE, PHP, MYSQL ON PCBSD
And mysql is in ports as /usr/ports/databases/mysqlNN-server where NN is the version, e.g. 50 or 51 etc.

httpd (apache) and mysql should be able to be started through /etc/rc.conf (or if you use it, /etc/rc.conf.local).

there should be scripts in /usr/local/etc/rc.d/ for starting them manually as well, plus mysqld_safe and apachectl should be within the $PATH.


the lines to add to your rc.conf to start apache automagically on boot would be:


Code:
apache22_enable="YES"

mysqld I'm not so sure about without installing it, my MySQL database is working off OpenBSD so I start it a bit differently.
Reply With Quote
  #4  
Old 06-07-2008, 08:19 AM
zeeshandoit zeeshandoit is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to install port tree for apache, mysql and php
How to install port tree for apache, mysql and php?
Reply With Quote
  #5  
Old 06-07-2008, 06:06 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: HOW TO SETUP APACHE, PHP, MYSQL ON PCBSD
http://docs.pcbsd.org/guide/chap4.1.html

look for the section on ports, it'll give a better explanation then I can while eating lunch ;-)
Reply With Quote
  #6  
Old 07-02-2008, 08:29 PM
graedus graedus is offline
Senior Member
 
Join Date: Jul 2006
Location: .mx
Posts: 606
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: HOW TO SETUP APACHE, PHP, MYSQL ON PCBSD
FYI, the latest PAMP PBI still works (and quite fine) with 1.5.1, such a shame its no longer mantained/available on PBIdir.
Reply With Quote
  #7  
Old 07-02-2008, 11:20 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: HOW TO SETUP APACHE, PHP, MYSQL ON PCBSD
On the subject of PAMP, you might also try AMP, it's similar in concept to what pamp should have been at first lol.


PS

Long time no see graedus.
Reply With Quote
  #8  
Old 07-03-2008, 12:57 PM
graedus graedus is offline
Senior Member
 
Join Date: Jul 2006
Location: .mx
Posts: 606
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: HOW TO SETUP APACHE, PHP, MYSQL ON PCBSD
Originally Posted by TerryP
On the subject of PAMP, you might also try AMP, it's similar in concept to what pamp should have been at first lol.


PS

Long time no see graedus.
Been out of town. Have lots to catch up.

Missed the Jail implementation, looks superb.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How tO uSe MYSQL in PCBSD? jhaztine General Questions 4 12-15-2006 09:52 AM
Apache/PHP/MySQL version question jdarnold PBI Discussion 0 09-26-2006 06:13 PM
Apache/php/mysql in production environment pcbsdks General Questions 5 09-05-2006 08:54 PM
AMP: Apache + MySQL + PHP nhat PBI Discussion 12 04-30-2006 06:52 PM
Apache+MySql+Php ? Bodyweb General Questions 5 04-03-2006 06:27 PM


All times are GMT. The time now is 08:22 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.