View Single Post
Old 19th December 2009, 18:35
JosBR JosBR is offline
Junior Member
Join Date: Dec 2009
Location: The Netherlands
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default Found the solution-it all works now

First of all thanks to Falko for his commitment to help me.

I sorted all out in the meantime ( about 2 days work) and will share the solution with this forum.

Trigger for the solution was:

Chapters 10 and 11.
Very useful teaching.

MySQL problems:
1) /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read.

copy Debian.cnf to my.cnf

2) /etc/init.d/mysql: line 123: /etc/mysql/debian-start: No such file or directory
copy _etc_mysql_debian-start in /usr/share/mysql-common/internal-use-only
to: /etc/mysql/debian-start

After these action MySQL worked without a problem.

PHP5 problems:
This, in the Ubuntu server guide was critical to the solution:

Please verify if the files /etc/apache2/mods-enabled/php5.conf and /etc/apache2/mods-enabled/php5.load exist. If they do not exists, you can enable the module using a2enmod command.

I used the a2enmod to activate php5 and another, If I remember well, it was php5-mysql.

I still had some problems left with configuring the Apache server. Could not manage to set up the virtual hosts. What I did was changing the default in /etc/apache2/sites-available like this:

<VirtualHost *:80>

DirectoryIndex index.php index.html

DocumentRoot /home/blah/MySites

<Directory />
Options FollowSymLinks
AllowOverride None

<Directory /home/blah/MySites/p4u-final>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

Although I am still puzzled about the Virtual Server thing, it works now.

I installed PHPmyadmin without any problems, using the Ubuntu server guide instructions.

Hope this was helpfull,

My best,

Jos B. Rikhof
Originator of
Reply With Quote