First off, thanks for a great piece of software, i've never found a piece of server software so easy to install and use on linux.
That said, i do have some problems keeping my servers up and running. It appears that especially the mysql process is killed from time to time without a apparant reason.
I run a VPS (w. lycos) with RedHat 9.0 installed (i could also install other distro's like debian if that may help). After a clean install for my machine i installed XAMPP like the instruction told me to and the server seems to be working fine. Because i use the server in a production enverioment i enabled the security. I copied my site using fptcopy to my server and imported the datbase in the sql server. After some modifcations to site (joomla, so i edited the configuration files) and testing i edited the httpd.conf and php.ini to match some settings i need.
I added the following settings:
- Code: Select all
#
# Use name-based virtual hosting.
#
NameVirtualHost my.ip.adress
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost my.ip.adress>
DocumentRoot /opt/lampp/htdocs
ServerName my.dns.name
</VirtualHost>
<VirtualHost xxx.xxx.xxx>
ServerAdmin xxx@xxx.xxx
DocumentRoot /www/dir/to/my/files
ServerName xxx.xxx.xxx
</VirtualHost>
Futhermore i edited php.ini to my needs:
- Code: Select all
Registerglobals off instead of on
Memory to 16m instead of 8m
I also changed the httpd.conf to run as the user
apache and group apache that i created (group apache already existed)
i chown my htdocs and www folder to apache:apache.
Finally i added xampp to my startup scripts as described in the FAQ
The problem is that mysql process keeps getting terminated. When i want to restart xampp it states the following:
- Code: Select all
# /opt/lampp/lampp stop
Stopping XAMPP for Linux 1.5.4a...
XAMPP: Stopping Apache with SSL...
XAMPP: XAMPP-MySQL is not running.
XAMPP: Stopping ProFTPD...
XAMPP stopped.
# /opt/lampp/lampp start
Starting XAMPP for Linux 1.5.4a...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
Sometimes it says mysql deamon already running. But my status page show the mysql server as offline!
I have no clue want could be wrong? I have no other mysql/webserver or whatever installed. After a reboot everything seems to be working fine for 10 minutes or so, then it happens all over again!
Here is my error.log:
- Code: Select all
[Mon Oct 02 12:21:41 2006] [notice] caught SIGTERM, shutting down
[Mon Oct 02 12:22:29 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Oct 02 12:22:29 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Mon Oct 02 12:22:30 2006] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 02 12:22:31 2006] [notice] Digest: done
[Mon Oct 02 12:22:33 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Oct 02 12:22:33 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Mon Oct 02 12:22:33 2006] [notice] Apache/2.2.3 (Unix) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.1.6 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations
[Mon Oct 02 12:37:26 2006] [notice] caught SIGTERM, shutting down
[Mon Oct 02 12:37:40 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Oct 02 12:37:40 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Mon Oct 02 12:37:41 2006] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 02 12:37:41 2006] [notice] Digest: done
[Mon Oct 02 12:37:42 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Oct 02 12:37:43 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Mon Oct 02 12:37:43 2006] [notice] Apache/2.2.3 (Unix) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.1.6 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations
Should the /opt/lampp dir set to anyone specfic (chmod/chown?)
I hope someone can help! Thanx in advance!