http://docs.joomla.org/Configuring_a_XAMPP_server_for_joomla_development

sudo /opt/lampp/lampp start


Location of files and uploading

XAMPP by default uses /opt/lampp/htdocs as the root web directory. The easiest way to start working on files is to link a folder in your home directory into this directory.
My user name is peter so I have /home/peter/public_html linked to /opt/lampp/htdocs/peter. So if I navigate to http://localhost/peter/ I get a listing of all the files/folders in that directory. (As long is there isn't a index.php/html/etc file)
To set this up, run in a terminal:
  1. Make public_html directory in home directory:
    Code:
    mkdir ~/public_html
  2. Link to /opt/lampp/htdocs
    Code:
    sudo ln -s ~/public_html /opt/lampp/htdocs/$USER
Now any files and folders you place in ~/public_html will be published to your personal webserver. 

Bookmark http://localhost/username to make this easy to access.
Aside | Posted on by | Leave a comment

Linux services – useful commands

ifconfig

netstat -tulpn (list all services with sockets, ports, program)

sudo service XXXXX start/stop/restart    (apache2, mysql, vsftpd)

Posted in Uncategorized | Leave a comment

Unnecessary…just chown folders (Running eclipse as user but project as superuser)

1. Download a jre from the Java site
2. extract it in a folder (e.g. /usr/lib/jre-1.6.0_27)
3. in Eclipse: Window->Preferences->Java->Installed JREs->Add…->ecc…
4. create the script below for this jre

. Rename your java application:

sudo mv /usr/lib/jvm/java-6-openjdk/jre/bin/java /usr/lib/jvm/java-6-openjdk/jre/bin/java.ori

2. Create the script /usr/lib/jvm/java-6-openjdk/jre/bin/java with the following content:

#!/bin/bash
gksudo "/usr/lib/jvm/java-6-openjdk/jre/bin/java.ori $*"

3. Change the permissions to make it executable:

sudo cmod 0755 /usr/lib/jvm/java-6-openjdk/jre/bin/java

In this way, the java application asks always the root password and it starts with root privileges.

Posted in Uncategorized | Leave a comment

Unnecessary…. just use zend?? eclipse (with Xdebug)

Eclipse – help -install::  install PHP PDT + webtools + data tools??

Configure PHP to Load Xdebug

You will need to add these two lines to your php.ini file (which may live at /etc/php.ini or c:\xampp\php\php.ini or somewhere else depending on your platform):

  1. zend_extension=”/absolute/path/to/xdebug.so”
  2. xdebug.remote_enable = 1

Once that’s done, restart your Apache server. There are many other options you can configure later that are explained in the xdebug documentation, but that should be enough to get you started.

http://wp.tutsplus.com/tutorials/creative-coding/debugging-wordpress-themes-and-plugins-with-eclipse-and-xdebug/

Posted in Uncategorized | Leave a comment

Answering that question of database security

mysql -u root -p

be aware of prompts + finish with semicolon….     \c = cancel \q = quit

SHOW DATABASES;  use mysql; delete from user where User=”; \q

mysqlqdmin -u root -p reload    [now no more anonymous users]

[nb: make sure you also protect wp-config.php and .htaccess 644 + special entries in .htaccess]

for both files:
<files wp-config.php>
    order allow,deny
    deny from all
</files>
[note can also get plugin to change table prefix] + should also enter ‘salts’ whatever they are
Aside | Posted on by | 2 Comments

handy linux commands

 ifconfig eth0 | grep inet | awk ‘{ print $2 }’

netstat -a | grep ftp

mysql -u root -p

 

Posted in Uncategorized | Leave a comment

FPT

vsfptd

http://www.noob2geek.com/linux/setup-vsftpd-debian-ubuntu/

edit:  /etc/vsftpd.conf    –no anon  – local users allowed etc

(consider jailing users  – chroot_local_user=YES chroot_list_enable=NO)

ADD fpt USER:

sudo addgroup ftpusers

sudo usermod -G ftpusers ftpuser

MAKE dir for users -ie. change ownership

 chmod 750 /home/ftp-docs  
chown root:ftp-users /home/ftp-docs

+ restart ftp service
+ ftp ip.add.res.s
+ ls, put filenameX, get filenameY

Posted in Uncategorized | Leave a comment