DJJeff Posted September 20, 2012 Share Posted September 20, 2012 (edited) INSTALL THESE opkg install apache --dest usbopkg install php5-cgi php5-cli php5-mod-mysql --dest usbopkg install mysql-server --dest usb[/CODE][b]HOW TO SYMLINK[/b]root@Pineapple:/# [b]ln -s /usb/usr/bin/mysqld /usr/bin/mysqld[/b]root@Pineapple:/# [b]ln -s /usb/usr/share/mysql/ /usr/share/mysql[/b]root@Pineapple:/# [b]ln -s /usb/etc/my.cnf /etc/my.cnf[/b]root@Pineapple:/# [b]ln -s /usb/etc/init.d/mysqld /etc/init.d/mysqld[/b]root@Pineapple:/# [b]ln -s /usb/usr/bin/my_print_defaults /usr/bin/my_print_defaults[/b]root@Pineapple:/# [b]ln -s /usb/etc/php5/ /etc/php5[/b]root@Pineapple:/# [b]ln -s /usb/usr/lib/php/ /usr/lib/php[/b]root@Pineapple:/# [b]ln -s /usb/etc/apache/ /etc/apache[/b]root@Pineapple:/# [b]ln -s /usb/usr/sbin/httpd /usr/sbin/httpd[/b][b]CREATE THESE[/b]root@Pineapple:/# [b]mkdir /usb/data[/b]root@Pineapple:/# [b]mkdir /usb/data/mysql[/b][b]TIME TO EDIT[/b]CTRL+X to Save & Press Y for Yes & Press Enter To Saveroot@Pineapple:/# [b]nano /etc/apache/httpd.conf[/b][b]Listen 80[/b] to [b]Listen 0.0.0.0:[some other port][/b]ErrorDocument 404 /error.phproot@Pineapple:/# [b]nano /etc/my.cnf[/b]datadir = /usb/data/mysqltmpdir = /tmproot@Pineapple:/# [b]mysql_install_db --force[/b]Installing MySQL system tables...OKFilling help tables...OK[b]START THE SERVICES[/b]root@Pineapple:/# [b]mysqld[/b]to put in the background runroot@Pineapple:/# [b]mysqld &[/b]root@Pineapple:/# [b]mysqladmin -u root password 'new-password'[/b]root@Pineapple:/# [b]apachectl start[/b][b]ERRORS / FAQ[/b][b]httpd: apr_sockaddr_info_get() failed for Pineapple[/b]Check /etc/apache/httpd.confListen 0.0.0.0:PORT[b]httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName[/b]Check /etc/apache/httpd.confUncomment ServerName and set to something else[b]Where Are My Logs!!!!!![/b]/var/log has been linked to /tmp/log check in here :)[b]How do I check to see if its running[/b][CODE]root@Pineapple:/# netstat -npltuwActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN [ PID ]/mysqldtcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN [ PID ]/uhttpdtcp 1 0 0.0.0.0:[ PORT ] 0.0.0.0:* LISTEN [ PID ]/httpdtcp 0 0 0.0.0.0:1471 0.0.0.0:* LISTEN [ PID ]/uhttpd[/CODE] Edited September 20, 2012 by DJJeff Quote Link to comment Share on other sites More sharing options...
loozr Posted September 20, 2012 Share Posted September 20, 2012 Nice guide! B) But could you please explain to me why I should do this? Why would I need a LAMP server when the pineapples builtin alternative doe's the work for me? Quote Link to comment Share on other sites More sharing options...
DJJeff Posted September 20, 2012 Author Share Posted September 20, 2012 its optional todo this, I find I have more features with this setup the pineapple uses PHP4 this allows for PHP5 also you can have some mysql to php interactions with this setup Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.