PDA

View Full Version : My LAMP server broke! GURU's help!



FeaRpb
05-10-2012, 01:14 PM
Here is the run down.

I am running LAMP on Ubuntu 12.04.

Last night I rebooted the server for shits and giggles. The server was at a 4 day uptime. (I just built it on the weekend)

When it came back up I couldn't access the webpage, it was giving me a 404. So I did a "/etc/init.d/apache2 restart" and received the following "How to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" "


After googling around to find a fix or reason why this would just randomly happen, I came up with nothing. So I just went ahead and uninstalled apache2,php5, and phpbb3. After reinstalling them, I am having stupid issues that I cannot figure out.

I try accessing http://www.theotter.org/forum and it downloads a file named "download"

Same thing when I try to log into http://www.theotter.org/phpmyadmin


I am stumped.

If anyone has any ideas, let me know. Or if you want to toy with it yourself, let me know too.

Alan92RTTT
05-10-2012, 01:22 PM
Its apache config related.

Apache needs to know that it needs to parse php files and not just pass them to the browser. The browser does not recognize the PHP file as something to display do you get the download box.

FeaRpb
05-10-2012, 01:56 PM
Looks like I fixed it.

Thanks for the info Alan!


Now I just need to find out how to import my sql database into the freshly installed phpbb3.

a2j
05-10-2012, 02:17 PM
couple of things... first, Linux server does not need to be rebooted for anything but hardware issues. And second, use Debian. More stable, less updates and changes that could possible brake things. this is just IMHO

FeaRpb
05-10-2012, 02:37 PM
I know, I am not new to linux.


As for Debian, I like Ubuntu more. Just my personal preference for my fuck around box.

Hence the reboot for shit's and giggles.


But, all is well and everything is coming back to normal.

Alan92RTTT
05-10-2012, 03:43 PM
Now I just need to find out how to import my sql database into the freshly installed phpbb3.Do you have an actual backup or the raw DB files?

FeaRpb
05-10-2012, 03:57 PM
I am guessing they are raw. They are .sql format.

Alan92RTTT
05-10-2012, 04:18 PM
Depending on their size you might be able to use phpmyadmin.

FeaRpb
05-10-2012, 04:30 PM
I am using webmin to back them up.

DrGonzo
05-10-2012, 04:38 PM
I hope that's not a live site and just a test box.......

phpmyadmin open & web facing = Hackers Dream

FeaRpb
05-10-2012, 04:42 PM
Its a fuck around box.

Pretty worthless.

But I am always up to learn security.

a2j
05-11-2012, 07:22 AM
Its a fuck around box.

Pretty worthless.

But I am always up to learn security.

I had one of those "f" boxes also. If I were you, I would not keep it OFF when not in use. Unless you secure it. This is from personal experience.


PS: the more you learn security the more paranoid you become :)