Stuck on the splash screen . . . [Solved]

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Stuck on the splash screen . . . [Solved]

Postby snakey » 01. December 2011 21:06

Howdy,

I managed to get XAMPP installed on Xubuntu Maverick, (after a little futzing with the ownership of the mysql directory.)

Now, however, I'm stuck on the splash.php page, and clicking on 'english' does nothing. Any ideas of what I'm doing wrong here? I'm so close, and yet so far. . .
User avatar
snakey
 
Posts: 9
Joined: 01. December 2011 19:48
Operating System: Xubuntu 10.10 Maverick

Re: Stuck on the splash screen . . .

Postby JonB » 01. December 2011 22:19

You should not have had to do any futzing.
What change did you make???

(that 'might' tell us what's wrong)

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Stuck on the splash screen . . .

Postby snakey » 02. December 2011 05:15

After installing, I had to set the owner of the mysql directory manually.


I found this thread, in which someone else had the same problem. http://community.apachefriends.org/f/viewtopic.php?p=162795

The 'fix' (basically repeat the installation) didn't work for me, though. I'm still stuck on the splash screen.
User avatar
snakey
 
Posts: 9
Joined: 01. December 2011 19:48
Operating System: Xubuntu 10.10 Maverick

Re: Stuck on the splash screen . . .

Postby snakey » 02. December 2011 05:29

Oh and I had to set the permissions with :

sudo chown nobody.root -R /opt/lampp/var/mysql/

before MySQL would run.
User avatar
snakey
 
Posts: 9
Joined: 01. December 2011 19:48
Operating System: Xubuntu 10.10 Maverick

Re: Stuck on the splash screen . . .

Postby snakey » 02. December 2011 06:23

OK, so guessing it was more ownership stuff, I chowned the whole enchilada:

sudo chown -R nobody.root /opt/lampp

Success?! well, I managed to get a 'success' page with the following errors:

Welcome to XAMPP for Linux
Warning: include(.version) [function.include]: failed to open stream: No such file or directory in /opt/lampp/htdocs/xampp/start.php on line 12

Warning: include() [function.include]: Failed opening '.version' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/xampp/start.php on line 12
!


which I'm just now about to go look up. Just keep putting one foot in front of the other!
User avatar
snakey
 
Posts: 9
Joined: 01. December 2011 19:48
Operating System: Xubuntu 10.10 Maverick

Re: Stuck on the splash screen . . .

Postby JonB » 02. December 2011 10:49

well - I don't "know" if you did exactly what you typed in your post -

BUT - the syntax actually is

sudo chown -R nobody:root /opt/lampp

nobody{colon}root

the easiest thing MIGHT be to just remove XAMPP, and try again.
http://www.apachefriends.org/en/xampp-linux.html
To uninstall XAMPP just type in this command:

rm -rf /opt/lampp



Be sure to install lampp as 'root' -

If you extract LAMPP correctly and install as root - the permissions should be set correctly on the files.

Good Luck.
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Stuck on the splash screen . . .

Postby snakey » 02. December 2011 18:27

I've reinstalled several times, always with the same problems. I'll walk you through it. Maybe you can point out where I'm going wrong.

The first problem is that the installation instructions (http://www.apachefriends.org/en/xampp-linux.html) assume an active administrative root account. But Ubuntu doesn't have root enabled by default! That's why we use sudo:
Code: Select all
sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt


then, to be safe, run the security command and set our passwords on everything:
Code: Select all
sudo /opt/lampp/lampp security


okay, let's run this sucker:
[sudo] password for snakey:
Starting XAMPP for Linux 1.7.7...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Hm. MySQL is not working. So we get the error log (/opt/var/mysql/[hostname].err) :

111202 08:15:14 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
111202 8:15:14 [Note] Plugin 'FEDERATED' is disabled.
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
111202 8:15:14 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
111202 8:15:14 InnoDB: The InnoDB memory heap is disabled
111202 8:15:14 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
111202 8:15:14 InnoDB: Compressed tables use zlib 1.2.3
111202 8:15:14 InnoDB: Initializing buffer pool, size = 16.0M
111202 8:15:14 InnoDB: Completed initialization of buffer pool
111202 8:15:14 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.



OK -- first things first! the .err file says to run "mysql upgrade" so we need to run mysql upgrade, eh?
Code: Select all
sudo mysql upgrade

Nope, you can't get there from here:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Now, I'm no mysql expert, but it seems that if I can't connect to the mysql server, it's because it isn't running! Seems a regular catch-22, that.

So moving through the .err file, down near the bottom, there's something about 'access rights' -- so, let's go ahead, with the approved syntax from JonB:

Code: Select all
sudo chown -R nobody:root /opt/lampp


then we'll stop xampp:
Code: Select all
sudo /opt/lampp/lampp stop


and then start xampp again:
Code: Select all
 sudo /opt/lampp/lampp start



and we get:
Starting XAMPP for Linux 1.7.7...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Looks good! So let's take a look at the shiny new install in firefox. Nope. What a drag! What's with all the errors?
Warning: include(.version) [function.include]: failed to open stream: No such file or directory in /opt/lampp/htdocs/xampp/start.php on line 12

Warning: include() [function.include]: Failed opening '.version' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/xampp/start.php on line 12
!


So that brings us up to date. If I were to guess, I'd say it looks like the ghost is in the mysql upgrade error -- or maybe it's a weird PHP thing. But the whole reason I installed xampp was to teach myself some PHP/MySQL, so, I'm still kinda scratching my head about this one.
User avatar
snakey
 
Posts: 9
Joined: 01. December 2011 19:48
Operating System: Xubuntu 10.10 Maverick

Re: Stuck on the splash screen . . .

Postby JonB » 02. December 2011 23:19

Before you re-installed, did you use the Remove command as outlined in the instructions???

To uninstall XAMPP just type in this command (as root):

rm -rf /opt/lampp

Try re-installing ONE more time BUT do not do the /opt/lampp/lampp security 'thing' this time, and lets see what errors we get.

Don't make changes - just try to start it and see what happens -

thanks
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Stuck on the splash screen . . .

Postby snakey » 03. December 2011 08:31

Yes, I removed lampp completely, using:
Code: Select all
 sudo rm -r -f lampp


After reinstalling, not applying any security, and starting it all over again, the errors remain exactly the same (except for the timestamp, of course.)

I think we can safely say that reinstalling is not the solution here.
User avatar
snakey
 
Posts: 9
Joined: 01. December 2011 19:48
Operating System: Xubuntu 10.10 Maverick

Re: Stuck on the splash screen . . .

Postby JonB » 05. December 2011 05:19

I'm not all that sure you actually uninstalled lampp if this was the command you used:

sudo rm -r -f lampp

Did you use 'ls ' to check afterward???

I'm also unsure if you can change the ownership of a file that may be open.
(order of events with chown)

It could also be the permissions; this is what an 'ls' should output on
Code: Select all
[root@localhost mysql]# pwd
/opt/lampp/var/mysql
ls -l
...
-rw-rw----. 1 nobody root   35651584 Dec  1 14:33 ibdata1
-rw-rw----. 1 nobody root    5242880 Dec  1 16:53 ib_logfile0
-rw-rw----. 1 nobody root    5242880 Dec  1 16:53 ib_logfile1
...


Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Stuck on the splash screen . . .

Postby DimmestLemming » 05. December 2011 07:19

@snakey: I had the same bug and followed all your steps up through

Code: Select all
sudo chown -R nobody:root /opt/lampp


Then I rechecked the splash screen. It all works perfectly for me now.

So, thanks! You provided a set of perfectly good instructions and my XAMPP download is fully up and running now. Unless the XAMPP download has been updated since two days ago, I imagine your problem is just leftover files from your previous downloads.
DimmestLemming
 
Posts: 3
Joined: 04. December 2011 21:00
Operating System: Linux

Re: Stuck on the splash screen . . .

Postby snakey » 05. December 2011 08:09

@DimmestLemming:

What Distro are you running? What flavor of Linux? Just curious.
User avatar
snakey
 
Posts: 9
Joined: 01. December 2011 19:48
Operating System: Xubuntu 10.10 Maverick

Re: Stuck on the splash screen . . .

Postby Sharley » 05. December 2011 08:13

@DimmestLemming
Would you please add your distro to your profile:
viewtopic.php?f=17&t=48626

Thanks. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Stuck on the splash screen . . .

Postby snakey » 05. December 2011 09:29

@JonB:

Nope, I didn't use ls afterward . . . but I *did* use pwd beforehand! ; )

Anyway, thanks for the permissions info. That's the kind of stuff I'm looking for. And interestingly enough, my permissions for that directory don't match up with yours. In fact, there are no logfiles at all (other than the .err file generated earlier)

Are you working from a fresh install?
User avatar
snakey
 
Posts: 9
Joined: 01. December 2011 19:48
Operating System: Xubuntu 10.10 Maverick

Re: Stuck on the splash screen . . .

Postby JonB » 05. December 2011 15:36

@ snakey -

No, that is a 'production testing' server.

However, when I installed XAMPP, I kept a careful log of issues.
When I first installed, the only error I encountered was to not use the exact syntax recommended to start LAMPP - i.e. I didn't type 'exactly'

/opt/lampp/lampp start

Upon some reflection, and discovering that lampp was actually a bash script, I hooked on to the issue - lampp is not at all like a 'standard' lmap stack you build from repositories with 'apt-get' or 'yum' - where everything goes 'where it belongs' for that distribution. In order for LAMPP to work across distributions, that all has to be tossed out - there aren't 'right places' or 'standard owners & permissions' that are governed by the distirbtuon any longer - there has to be ONE right place - in /opt/lampp and ONE right set of permissions 'nobody:root' if you dig through all the scripts with something like geany - there are lots of notes as to why things are teh way they are.

In the end I did much experimenting with ownership and permissions and discovered that for any new projects, I always start with the folders being owned by 'nobody:root', Folders set to 755 and the files set to 644 for 'starters'.

I have a lot of custom PHP code and third party scripts and discovered the session variables can be an issue also. As a remedy, I created writable 'tmp' folders under the folders with the scripts and used directives that pointed to them with 'sets' at run time.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Next

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 29 guests