setup.php doesn't work

Submitted by latour on 2007-05-05

Hi Michal,

Your WebIssues application looks very promising, but I have problems installing it.
When I start the setup.php script with my browser, I get a white page after pressing 'Next' when 'Configuration' is highlighted.

I am using Kubuntu Feisty and installed the following packages:
apache2
libapache2_mod_php5
MySQL server + client (version 5.0)

I performed the following actions:
mysqladmin -u root password
mysqladmin -u root -p create WebIssues
mysql -u root -p
GRANT ALL PRIVILEGES ON WebIssues.* TO 'WebIssuesUser'@'localhost' IDENTIFIED BY 'secret';
Copy the following files and subdirectories to /var/www/WebIssues/:
config/
include/
setup/
index.php
setup.php
Edit the config/config.inc file and enter database configuration.
/*
* Configuration file for the WebIssues Server.
*/

/*
* Database configuration.
*
* Create the database and set correct values before running
* the setup.php script.
*/

$config[ 'db_engine' ] = 'mysql'; // can be 'mysql' or 'pgsql'

$config[ 'db_host' ] = 'localhost'; // can be 'host', 'host:port' or '/path/to/socket'
$config[ 'db_database' ] = 'WebIssues'; // name of the database
$config[ 'db_user' ] = 'WebIssuesUser@localhost'; // database user login (if needed)
$config[ 'db_password' ] = 'secret'; // database user password (if needed)

$config[ 'db_prefix' ] = ''; // prefix of table names

/*
* Attachment storage configuration.
*
* Create the storage directory with write permissions for the HTTP server
* before running the setup.php script.
*
* The path can be absolute or relative to index.php. Set it to an empty string
* to disable storing attachments as files.
*
* Attachments smaller than min_size bytes will be stored in the database.
* Set min_size to 0 to store all attachments as files.
*/

$config[ 'storage_path' ] = 'storage';
$config[ 'storage_min_size' ] = 4000;

/*
* Logging configuration.
*
* Enter a file path to enable a log.
*
* Paths can be absolute or relative to index.php.
*/

$config[ 'log_errors' ] = 'logs/wi_error.log';
$config[ 'log_commands' ] = 'logs/wi_commands.log';
$config[ 'log_sql' ] = 'logs/wi_sql.log';

Create the storage subdirectory and make it writable by the HTTP server.
auke@notebook:/var/www/WebIssues$ pwd
/var/www/WebIssues
auke@notebook:/var/www/WebIssues$ ls -l
total 68
drwxr-xr-x 2 root root 4096 2007-05-05 17:35 config
drwxr-xr-x 2 root root 4096 2007-05-04 23:41 include
-rw-r--r-- 1 root root 39628 2007-05-04 23:41 index.php
drwxrwxr-x 2 root www-data 4096 2007-05-05 00:37 logs
drwxr-xr-x 2 root root 4096 2007-05-04 23:41 setup
-rw-r--r-- 1 root root 7846 2007-05-04 23:41 setup.php
drwxrwxr-x 2 root www-data 4096 2007-05-04 23:54 storage

Run the setup.php script using a web browser and follow the steps.
And then it goes wrong. After pressing Next, the second scree is displayed. When I press Next again, I get a white screen in my browser (empty file).

Any Ideas?

Thanks in advance !!

It looks like some PHP error. Try to enable displaying (or logging) errors in the php.ini file. Also check if the WebIssues logs contain some messages.

Regards,
Michał

No files appear in the 'WebIsses/logs'-directory.
My php errors are configured to log to the syslog, but no messages appear there either.

I did test if my php is working at all. I wrote the following php-script:

<?php
phpinfo();
?>

This works, and among others it tells that errors will be logged to syslog.
Obviously nothing happens that is recognised as an error.

Do yo understand this?

Regards,

Auke

Hmm... Do you have the MySQL extension for PHP installed? I see that you're using PHP 5 and it doesn't have MySQL support enabled by default.

Regards,
Michał

That solved the problem. Thank you!
And the client works as well.

Is it difficult to report a missing MySQL extension in the setup.php wizard?
This might be a good idea for the next version.

First impression is that the application looks nice, and it is easy to understand.

Regards,

Auke