PDA

View Full Version : installation RPM


exocet
03-08-05, 07:13 PM
Does somebody compiled an i386.rpm to install Dotproject?
I need it badly, can't do it by myselve :roll:

cyberhorse
03-08-05, 11:46 PM
rpm would be pointless ... and more complex ....

here is a shell script (not tested) for you:
----

#!/bin/bash
yum -y install php-mysql # optional
cd /var/www/html # assuming that's your webdir - could be /var/www/apache/htdocs or something else
wget http://jaist.dl.sourceforge.net/sourceforge/dotproject/dotproject_2.0.1.tar.gz
tar xvzf dotproject_2.0.1.tar.gz
mv dotproject_2.0.1 dotproject
chown -R apache:apache dotproject
chmod -R 666 dotproject # should work with 600 and 400 for files?
chmod -R 776 dotproject/files # should work with 700
chmod 776 dotproject/includes # needed only during installation of config.php file is not created properly
firefox http://localhost/dotproject/install/
rm -rf dotproject/install
chmod -R a-w dotproject/includes
#after install:
firefox http://localhost/dotproject/
echo "Login with admin:passwd"


follow the prompts ... during installation and you should be alright

if you get an error about not being able to create a database, on the command line do:
mysql -u root -p
--
mysql> create database dotproject;
mysql> grant all on dotproject.* to dotproject_user identified by 'dotprojectrocks';
mysql> flush privileges;


you can also try something like that instead:

#!/bin/bash

#create dp database
echo "create database dotproject;" > tmpfile
echo "grant all on dotproject.* to dotproject_user identified by 'dotprojectrocks'" >> tmpfile
echo "flush privileges;" >> tmpfile
mysql -u root -p < tmpfile



Well, these are probably not functional (not tried), but should give you enough hints to get you started.

Karen, if you read this, the above won't be a bad entry for the tikiwiki site I think :)

exocet
04-08-05, 01:23 AM
Hi cyberhorse,
this is what i've done:

mysql> create database dotproject;
Query OK, 1 row affected (0.20 sec)
mysql> grant all on dotproject.* to dotproject_user identified by 'dotprojectrocks'
-> ;
Query OK, 0 rows affected (0.20 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.15 sec)
mysql> Aborted
cd /var/www/html
wget http://jaist.dl.sourceforge.net/sou...ct_2.0.1.tar.gz
tar xvzf dotproject_2.0.1.tar.gz
[root@faxserver html]# mv dotproject_2.0.1 dotproject
mv: cannot stat `dotproject_2.0.1': No such file or directory
[root@faxserver html]# mv dotproject_2.0.1 /dotproject
mv: cannot stat `dotproject_2.0.1': No such file or directory
[root@faxserver html]# mv dotproject_2.0.1 /dotproject/
mv: cannot stat `dotproject_2.0.1': No such file or directory
[root@faxserver html]# mv dotproject_2.0.1. /dotproject/
mv: cannot stat `dotproject_2.0.1.': No such file or directory
[root@faxserver html]# mv dotproject /dotproject/
[root@faxserver html]# chown -R apache:apache dotproject
chown: getting attributes of `dotproject': No such file or directory
[root@faxserver html]# chown -R apache:apache /dotproject/
[root@faxserver html]# chmod -R 666 /dotproject/
[root@faxserver html]# chmod -R 776 /dotproject/files
[root@faxserver html]# chmod -R 776 /dotproject/files/
[root@faxserver html]# chmod 776 /dotproject/includes
[root@faxserver html]# chmod 776 /dotproject/includes/
[root@faxserver html]# lynx http://192.168.0.254/dotproject/
[root@faxserver html]# rm -rf dotproject/install
[root@faxserver html]# rm -rf /dotproject/install
[root@faxserver html]# chmod -R a-w dotproject/includes
chmod: getting attributes of `dotproject/includes': No such file or directory
[root@faxserver html]# chmod -R a-w /dotproject/includes

but i can't acces the http (error 404)

thanks

exocet
04-08-05, 03:03 AM
ok, i'm working with a sme mitel 6.0.1 server from contribs.
i'v installed dotproject on an i-bay and now i get the install interface.

I still have some problems with the db and config file.

seems i don't meet the requirements for GD and ibase

exocet
04-08-05, 08:41 PM
ok, i'm a step further now.
I can borwse to the install html, but i can't create a config file...
Help please...

Check for Requirements

PHP Version >= 4.1 OK (4.1.2)
Server API OK (apache)
GD Support (for GANTT Charts) OK
Zlib compression Support OK
File Uploads OK (Max File Upload Size: 10M)
Session Save Path writable? OK (/tmp)
Database Connectors

The next tests check for database support compiled with php. We use the ADODB database abstraction layer which
comes with drivers for many databases. Consult the ADODB documentation for details.

For the moment only MySQL is fully supported, so you need to make sure it is available.

iBase Support Failed Not available
Informix Support Failed Not available
LDAP Support OK
mSQL Support Failed Not available
MSSQL Server Support Failed Not available
MySQL Support OK ()
ODBC Support Failed Not available
Oracle Support Failed Not available
PostgreSQL Support Failed Not available
SQLite Support Failed Not available
Sybase Support Failed Not available
Check for Directory and File Permissions
If the message 'World Writable' appears after a file/directory, then Permissions for this File have been set to
allow all users to write to this file/directory. Consider changing this to a more restrictive setting to improve
security. You will need to do this manually.
./includes/config.php writable? OK
./files writable? OK World Writable
./files/temp writable? Failed PDF report generation will be disabled
./locales/en writable? Failed Translation files cannot be saved. Check /locales and subdirectories for permissions.
Recommended PHP Settings
Safe Mode = OFF? OK
Register Globals = OFF? Failed There are security risks with this turned ON
Session AutoStart = ON? Failed Try setting to ON if you are experiencing a WhiteScreenOfDeath
Session Use Cookies = ON? OK
Session Use Trans Sid = OFF? Failed There are security risks with this turned ON
Other Recommendations

The dotProject team openly recommend Free Open Source software (FOSS). This is not just because dotProject is a
FOSS application, but because we believe that the FOSS development method results in better software, with a lower
Total Cost of Ownership (TCO).

These recommendations reflect that belief, and the fact that as FOSS developers, we develop on FOSS systems, so
they will have better support sooner than other non-FOSS systems.
Free Operating System? OK (Linux sme60build 2.4.20-18.7 #1 Thu May 29 08:32:50 EDT 2003 i686 unknown)
Supported Web Server? OK (Apache)
Standards Compliant Browser? OK (Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6b)

cyberhorse
04-08-05, 09:25 PM
ok, above there was something very strange - you moved dotproject to the root directory? I assume you've fixed that and it's now in /var/www/html again to get the install going. for includes/config.php to be writable, you need to have apache being able to create files in includes/ (if config.php doesn't exist yet, as it shouldn't on a new install). so make includes a+w (chmod a+w includes).

How do you know you can't create config.php file? the log above looks all fine - did you go to the next step? Try seeing the page from a graphical browser, lynx may be missing a button or something.

exocet
04-08-05, 09:30 PM
Hi,
i've installed everything in an i-bay, the browser works,
but when i want to create config file with the browser i get a blanc screen.
I did it with the commend line and get following errors..

[root@faxserver install]# ./do_install_db.php
./do_install_db.php: ?php: No such file or directory
./do_install_db.php: line 3: syntax error near unexpected token `"../includes/config.php"'
./do_install_db.php: line 3: `if ($_POST['mode'] == 'install' && is_file( "../includes/config.php" ) )'

cyberhorse
04-08-05, 09:41 PM
to do it from the command line, you have to execute 'php do_install_db.php', but although it might work, it was never tested. Your website address for example may be broken.

If all this fails, here are the manual steps of installation:
- copy the includes/config-dist.php to includes/config.php and edit it to fit your site
- insert all sql statements from db/dotproject.sql to the newly created database you did before
- go to http://localhost/dotproject/db/upgrade_permissions.php

from then on everything should work normally - try it on http://localhost/dotproject/index.php

exocet
04-08-05, 11:10 PM
i've made the config file, no problem
inserting the statements is a lot of work....
been checking the browser at http://localhost/dotproject/
and get already another warning:

Fatal error: Failed opening required '/home/e-smith/files/ibays/dotproject/html/lib/adodb/adodb.inc.php' (include_path='.:/usr/share/php') in /home/e-smith/files/ibays/dotproject/html/includes/db_adodb.php on line 12

I don't think it is usefull setting it up (or try) on a sme mitel server.

For which server is the program designed and tested?
Maybe easier setting up a new server just for dotproject.

Grtz