Softaculous


Topic : Apache not starting on xUbuntu


Posted By: enboig on April 9, 2015, 1:49 pm
1. OS Name with Version
Xubuntu 14.04 updated to latest LTS stack

2. AMPPS Version
3.0

Optional:
3. Logs (Apache, MySQL)
When try to start apache, console outputs:
root@usuari-VirtualBox:/usr/local/ampps# ./Ampps

(Ampps:3145): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed

(Ampps:3145): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed

(Ampps:3145): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed

(Ampps:3145): Gtk-CRITICAL **: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed
[Ampps::exec] "/usr/local/ampps/apache/bin/httpd-k start"


4. Steps to reproduce the error
Create a virtual machine (I userd virtualbox), install xubuntu 14.04, install AMPPS 3.0 and try to run it.

5. Expected Result
Apache running

6. Your modified apache, php or mysql conf files(if you have changed and can share with us)
No modifications made.

Posted By: Rishi_P on April 9, 2015, 2:20 pm | Post: 1
Hi enboig,
       

Run this two command in Terminal and let me know the output.

/usr/local/ampps/apache/bin/httpd

/usr/local/ampps/mysql/bin/mysqld

Posted By: enboig on April 10, 2015, 8:52 am | Post: 2
Code

root@usuari-VirtualBox:~# /usr/local/ampps/apache/bin/httpd
/usr/local/ampps/apache/bin/httpd: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory

I have installed libexpat but it provides libexpat.so.1; and there is no package providing libexpat.so.0


Code
root@usuari-VirtualBox:~# /usr/local/ampps/mysql/bin/mysqld
2015-04-10 10:44:25 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2015-04-10 10:44:25 4683 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'
2015-04-10 10:44:25 4683 [Warning] lower_case_table_names was set to 2, even though your the file system '/usr/local/ampps/var/' is case sensitive.  Now setting lower_case_table_names to 0 to avoid future problems.


I tried specifying the config file without luck
Code

/usr/local/ampps/mysql/bin/mysqld --defaults-file /usr/local/ampps/mysql/etc/my.cnf


Posted By: Rishi_P on April 10, 2015, 9:35 am | Post: 3
Hi enboiq,

Try this

Run following commands in Terminal

ln -s /usr/local/ampps/extra/lib/libexpat.so.1 /usr/local/ampps/apache/lib/libexpat.so.0

ln -s /usr/local/ampps/mysql/share/english/errmsg.sys /usr/share/mysql/errmsg.sys



If /usr/share/mysql folder is not present, please create one.



Posted By: enboig on April 10, 2015, 10:08 am | Post: 4
Apache now working, I created the symlink for .0 equal to the one for .1:

libexpat.so -> libexpat.so.1.6.0
libexpat.so.0 -> libexpat.so.1.6.0
libexpat.so.1 -> libexpat.so.1.6.0

This could be added for future releases.

For mysql I was searching for a way to solve this inside ampps, and adding this line to my.cnf at [mysqld] section allow mysql to start

language=/usr/local/ampps/mysql/share/english

Thanks for your help; I hope this changes get inside ampps so new users don't have to deal with these problems.

Posted By: theluke on April 16, 2015, 3:00 am | Post: 5
Can you specify what you did exactly? I am pretty new to this, and I am running into the same problem.

I ran the following line without a problem:
ln -s /usr/local/ampps/extra/lib/libexpat.so.1 /usr/local/ampps/apache/lib/libexpat.so.0

However, I could not get this to work:
ln -s /usr/local/ampps/mysql/share/english/errmsg.sys /usr/share/mysql/errmsg.sys

Even after running the first line, I still am getting the same error:
/usr/local/ampps/apache/bin/httpd: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory


I apologize, but can you help me out and let me know the exact commands you ran to get it working and apache started?

Posted By: Rishi_P on April 16, 2015, 8:32 am | Post: 6
Hi theluke,

For Apache

ln -s /usr/local/ampps/extra/lib/libexpat.so.1 /usr/local/ampps/apache/lib/libexpat.so.0

if above command not worked then just copy libexpat.so.1 to /usr/local/ampps/apache/lib/ and rename it to libexpat.so.0

For MySQL

ln -s /usr/local/ampps/mysql/share/english/errmsg.sys /usr/share/mysql/errmsg.sys

If /usr/share/mysql folder is not present, please create one.

OR

Open mysql.ini file(AMPPS-->MySQL-->Configuration) in [mysqld] section
add this line and save it.



lc-messages-dir = /usr/local/mysql/share



If you are still getting the same error then please open support ticket.
https://www.softaculous.com/support/

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.