Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Apache not starting on xUbuntu



Threaded Mode | Print  

 Apache not starting on xUbuntu, AMPPS is installed, but fails to start apache and mysql (6 Replies, Read 4577 times)
enboig
Group: Member
Post Group: Newbie
Posts: 4
Status:
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.
IP: --   

Apache not starting on xUbuntu
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
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
IP: --   

Apache not starting on xUbuntu
enboig
Group: Member
Post Group: Newbie
Posts: 4
Status:
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

IP: --   

Apache not starting on xUbuntu
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
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.


IP: --   

Apache not starting on xUbuntu
enboig
Group: Member
Post Group: Newbie
Posts: 4
Status:
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.
IP: --   

Apache not starting on xUbuntu
theluke
Group: Member
Post Group: Newbie
Posts: 1
Status:
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?
IP: --   

Apache not starting on xUbuntu
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
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/
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 29, 2024, 11:48 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.018