How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server?

How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server?

The basic overview.

  1. Install FreeBSD.
    How do I install FreeBSD?
  2. Update FreeBSD and download the ports tree.
    What are the first commands I run after installing FreeBSD
  3. Then install Apache + SSL.
    Installing an Apache + SSL on FreeBSD using the ports tree
  4. Then install MySQL.
    How to install MySQL on FreeBSD 7.2 or on Red Hat 5.4?
  5. Configure MySQL to be Unicode.
    How to create a UTF-8 Unicode Database on MySQL and make UTF-8 Unicode the default?Note:
  6. Secure MySQL. I don’t have a post on this, but you can follow these MySQL pages.
    Securing the Initial MySQL Accounts
    General Security Guidelines

    Note: If you know what you are doing, you can go with any database that dotProject supports, such as Postgresql.

  7. Install PHP5and PHP5-Extensions and make sure to include the MySQL extensions and the LDAP extension.
  8. How to install PHP5 and PHP5 Extensions on FreeBSD?

  9. Then install DotProject

I have previous documents about installing each of the steps above installing dotProject. Once you have gone though the above documents, you will be ready for this document. This document will only cover dotProject.

Installing dotProject 2.1.2 from Ports

  1. Install dotProject from ports using one of the following commands (I use the first one when doing virtual hosts and the second one when just using sub directories of the web root).
    #
    #
    cd /usr/ports/www/dotproject
    make install

    Note: If you Apache directory is /usr/local/www/apache22/data you may want to use this make command:

    #
    #
    cd /usr/ports/www/dotproject
    make DOTPROJECTDIR=/usr/local/www/apache22/data/dotproject install

  2. Create a database in MySQL for dotProject. Name it whatever you want. For this example, I am going to name the database dotProjDB. If you have read the articles about MySQL that I referenced above, you should know how to log into to MySQL, but just in case you forgot, I will show you again.There are lots of ways to create a database in MySQL, and I am going to give you one example using the shell and the MySQL client.
    # mysql -u root -p

    Enter your password and you should be taken to a mysql prompt.

    mysql> create database dotprojdb

    Yes it is that simple. And at the same time no it is not that simple. There is a lot more to know such as where to put the database files and how fast of drives you need, whether you need faster read speed or faster write speed or both, but this will suffice for now.

  3. Create a mysql user account for this database. We don’t want to user the root account.
    See this page in the MySQL documentation for more information on this: Adding User Accounts

    mysql> CREATE USER ‘dpuser’@’localhost’ IDENTIFIED BY ‘P@sswd!’;
    Query OK, 0 rows affected (0.01 sec)
    mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON dotprojdb.* TO ‘dpuser’@’localhost’;
    Query OK, 0 rows affected (0.01 sec)

  4. Now open a web browser to your server’s site: http://yourserver/dotprojectYou will see the following page.

    No need to do anything on this page because it should redirect you after 5 second to a dotProject configuration web page.

    Now some of the items in red need to be taken care of. Not all of them, just some of them.

    The first group of items are “Requirements” and anything not with a pretty green check mark under the “Requirements” section needs to be fixed.

    However, under the “Database Connectors” section, there are lots of red Xs. We don’t need to fix these. We just need one database, so as long as the database you want to use (in this example it’s MySQL) has a pretty green check mark, you don’t need to do add more “Database Connectors”.

  5. Fix the first error: Session Save Path writable? X Fatal: session.save_path is not setTo do this, follow these steps:
    1. Change to the directory that contains the php.ini file. On FreeBSD that directory is here: /usr/local/etc
      # cd /usr/local/etc

    2. Now by default the PHP5 port on FreeBSD doesn’t install a php.ini file, but instead provides two example php.ini files: php.ini-recommended and php.ini-dist. So copy one of them to php.ini.
      # cp php.ini-recommended php.ini

    3. Edit the php.ini file and remove the comment from this line:
      ;session.save_path = “/tmp”

      I use ee which is the command to open Easy Editor. But you can use vi or whatever.

    4. Save the file and exit.
  6. The other issue is this one: Session AutoStart = ON? X Failed Try setting to ON if you are experiencing a WhiteScreenOfDeathOk. So this issue is fixed is in that same php.ini file. So repeat the steps only this time we don’t remove a comment, we change a setting from 0 to 1. Find the following line and change it from 0 to 1, as shown.
    session.auto_start = 1
  7. Restart apache. This is required and must be done before these settings will take effect.
    # /usr/local/etc/rc.d/apache22 restart

  8. Now you are ready to click the “Start Installation” button. So go ahead and click it. The following page should appear.
  9. Enter the details as shown in the page. Hopefully you have your own database user and password to use.
  10. Should you click the “User persistent connection?” option? Well, read this. http://www.php.net/manual/en/features.persistent-connections.phpI am not going to check it.
  11. Click “Install db and write config”. It should succeed and you should see this new page.
  12. Now go back to the dotproject home page: http://yourserver/dotprojectLogin with the default user name and password and you are ready to go.

    UPDATE:
    Check out my new update to this:
    How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP?


Copyright ® Rhyous.com – Linking to this article is allowed without permission and as many as ten lines of this article can be used along with this link. Any other use of this article is allowed only by permission of Rhyous.com.

20 Comments

  1. krollqa.manifestdigital.com

    How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? | Rhyous

  2. Brandon says:

    how can i change the IP address?? i need to change it so i can configure the last part because i'm working in two places; in my house and in the school please i need help!!

  3. Dogs In School

    How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? | Rhyous

  4. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  5. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  6. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  7. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  8. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  9. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  10. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  11. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  12. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  13. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  14. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  15. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  16. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  17. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  18. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  19. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

  20. [...] How to configure dotProject 2.1.2 to authenticate using Active Directory’s LDAP? Filed under: FreeBSD — rhyous @ 12:40 am So previously I released the following post: How to install dotProject 2.1.2 on FreeBSD 7.2 with Apache 2.2, PHP5, and MySQL 5.1 Server? [...]

Leave a Reply

How to post code in comments?