Hmm... No PHP?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Hmm... No PHP?

Postby SaturnsVoid » Tue Dec 25, 2012 11:11 pm

I finally got my V4 working, I installed LAMP and vsFTP.

The FTP works fine, But the LAMP server is having issues... It works fine for HTML pages but PHP does not work, I have re-installed it, Restarted it and all but nothing works... Anyone know what could be going on? I used this tutorial https://wiki.archlinux.org/index.php/LAMP for the LAMP Install.
SaturnsVoid
 
Posts: 3
Joined: Tue Dec 25, 2012 3:05 pm

Re: Hmm... No PHP?

Postby jerry0000 » Sun Dec 30, 2012 5:58 am

I followed the exact same tut, and everything worked like a charm. So try again. Though, I uninstalled, and only left apache as web server, as I am not sure if the pogo has enough muscle for LAMP. I left apache, as lighttpd gave me isues with html5 (too lazy to figure out why, as apache works just fine).
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: Hmm... No PHP?

Postby jerry0000 » Sun Dec 30, 2012 6:13 pm

sorry to hijack the thread, however anybody run LAMP on POGO/E02 for extended time and can comment if the plug has enough muscle to run LAMP?
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: Hmm... No PHP?

Postby jerry0000 » Thu Jan 03, 2013 10:43 pm

Forget about LAMP on POGO. The plug is just not up to the task. I tested again, was hoping to use as a test server before publish my websites.

The issues seems to be in mysql. The database server installs fine, however it is practical nonfunctioning to operate on any database. For example, as a test, I installed mediawiki. It works, however it is painfully slow.

So I removed the mysql and php part, and left the Apache server. I was having trouble with html5 with Lighttpd, so I just going to keep Apache. Without mysql, there seems to be little reason to have php support.
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: Hmm... No PHP?

Postby moonman » Fri Jan 04, 2013 12:02 am

There just isn't enough ram to run mysql. I would offload mysqld/mariadb to a separate machine. Say to your own computer (you said it was for testing anyway)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Hmm... No PHP?

Postby bodhi » Fri Jan 04, 2013 9:27 am

Try sqlite, very lightweight and works fine with php.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: Hmm... No PHP?

Postby jerry0000 » Tue Jan 08, 2013 5:19 am

$this->bbcode_second_pass_quote('moonman', 'T')here just isn't enough ram to run mysql. I would offload mysqld/mariadb to a separate machine. Say to your own computer (you said it was for testing anyway)


yes, it looks like. For now, I just installed a VM on my Windows box, installed LAMP, and use that as a test server. I do not like to install Xampp on Windows.
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: Hmm... No PHP?

Postby rty » Mon Feb 04, 2013 9:47 am

Actually if you don't have any plan to do heavy processing stuffs, V2 should run LAMP just fine. It works on my V2. I also have installed LEMP (Nginx instead of Apache) on V4. It works fine for simple inquiry or data entry apps even though a bit slow. It won't work for PHP scripts that do heavy stuffs, such as doing batch insert of 400 over records into MySQL table. It is too slow and will time out with "Bad Gateway" error. There may be work arounds but I haven't got time to look into it further.

By the way, if your PHP doesn't work with NGINX, make sure you start and enable PHP-FPM as well:

systemctl enable php-fpm
systemctl start php-fpm

Same with MySQL:

systemctl enable mysqld
systemctl start mysqld
Alarm + Samba + NginX + Php+ MySQL + phpMyAdmin on Raspberry Pi 3, Pogoplug 4, Pogoplug E02, Seagate Goflex Home
rty
 
Posts: 75
Joined: Sun Jun 03, 2012 8:57 am
Location: Singapore


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 490 guests