LAMP
  • [LUPA学习向导]如何成为PHP程序员 *

    learn 发布于 2007-04-04 12:52:29

    目标:成为一个合格Linux平台下的PHP程序员;
    技能要求:
    掌握PHP基本语法,掌握PHP安全基础,掌握函数及有关API操作方式,掌握mysql及Apache的相关知识.

    步骤:
    1、PHP入门的学习方法
    参见
    http://www.lupaworld.com/bbs/thread-25904-1-1.html

    2、学习PHP语法,函数及接口
    预计时间:30天
    参考书籍
    http://man.lupaworld.com/content/develop/php_manual_zh_2.chm

    3、学习PHP安全基础
    预计时间:30天
    参考书籍
    http://www.lupaworld.com/bbs/vie ... ight=%2Bxiaojie5525

    4、学习Apache相关知识
    预计时间:30天
    参考书籍
    http://man.lupaworld.com/content/manage/apache2_manual.zh-cn.chm
    http://man.lupaworld.com/content/manage/linux-Apache.pdf

    5、学习mysql相关知识
    预计时间:30天
    参考书籍
    http://man.lupaworld.com/content/manage/ringkee/mysql.htm
    http://man.lupaworld.com/content/database/mysql.chm

    6、PHP程序员一般都忽略了的几点精华
    参见
    http://www.lupaworld.com/bbs/thread-22685-1-2.html


    7、学习PHP开发框架
    参见
    http://www.lupaworld.com/bbs/thread-15010-1-4.html

    上面的只是供你入门,以后能否提高,还得看你对PHP新知识的吸收程度.....
    加油吧.....互勉之.....
    这个版块不错的.....希望你时常关注呐.....


    更多电子书请查看 http://man.lupaworld.com/
    参与讨论交流请进入http://www.lupaworld.com/bbs/forum-244-1.html
  • [LUPA学习向导]如何成为Linux平台C语言程序员 *

    learn 发布于 2007-03-28 10:14:56

    目标:
    成为合格的Linux平台C语言程序员
    技能:
    掌握C语言基本语法,掌握Linux平台系统调用,熟悉Linux平台开发流程,掌握anjuta以及glade使用方法,了解kernel结构编写高质量程序。

    步骤:
    1、学习C语言语法
    预计时间:30天
    参考书籍
    http://man.lupaworld.com/content/develop/c&c++/c/C_program_lang.zip

    2、学习linux平台系统调用
    预计时间:30天
    参考书籍
    http://man.lupaworld.com/content/develop/c&c++/linux_c/default.htm

    3、提交C编程技能
    预计时间:30天
    参考书籍
    http://man.lupaworld.com/content/develop/c&c++/c/C_program_idea.zip
    http://man.lupaworld.com/content/develop/c&c++/c/C_program_answer.zip

    4、学习开发流程
    预计时间:30天
    参考书籍
    http://man.lupaworld.com/content/manage/ringkee/linuxdev.htm

    5、学习图形界面编程初步
    预计时间:30天
    参考书籍
    http://www.scivoid.net/doc/gtk/glade/

    6、了解linux,了解kernel
    预计时间:50天
    参考书籍
    http://man.lupaworld.com/content/develop/joyfire/

    更多电子书请查看 http://man.lupaworld.com/

    参与讨论交流请进入 http://www.lupaworld.com/bbs/forum-242-1.html


  • 最基本linux c编程基础 *

    黄富强 发布于 2008-03-15 19:24:32

    例子文件:
    /*
    this is bill.c
    */
    #include  <stdio.h>
    void  bill(char *argv)
    {
        printf("bill:  %s\n",argv);
    }
    /*
    this is linus.c
    */
    #include  <stdio.h>
    void  linus(char *argv)
    {
        printf("linus:  %s\n",argv);
    }
    /*
    this is mylib.h
    */
    void bill(char  *);
    void linus(char *);
    /*
    this is main program
    */
    #include  "mylib.h"
    int main()
    {
        linus("Hello Word");
        exit(0);
    }
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ gcc -c bill.c linus.c
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ ls *.o
    bill.o  linus.o
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ ls
    bill.c  bill.o  linus.c  linus.o  main.c  mylib.h
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ gcc -c main.c
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ ls
    bill.c  bill.o  linus.c  linus.o  main.c  main.o  mylib.h
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ gcc -o main main.o linus.o
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ ./main
    linus:  Hello Word
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ ar crv libmy.a  bill.o linus.o
    a - bill.o
    a - linus.o
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ ls
    bill.c  bill.o  libmy.a  linus.c  linus.o  main  main.c  main.o  mylib.h
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ ls libmy.a
    libmy.a
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ nm main
    080494dc d _DYNAMIC
    080495b0 d _GLOBAL_OFFSET_TABLE_
    080484a8 R _IO_stdin_used
            w _Jv_RegisterClasses
    080494cc d __CTOR_END__
    080494c8 d __CTOR_LIST__
    080494d4 d __DTOR_END__
    080494d0 d __DTOR_LIST__
    080484c4 r __FRAME_END__
    080494d8 d __JCR_END__
    080494d8 d __JCR_LIST__
    080495d8 A __bss_start
    080495cc D __data_start
    08048460 t __do_global_ctors_aux
    08048350 t __do_global_dtors_aux
    080495d0 D __dso_handle
            w __gmon_start__
    0804845a T __i686.get_pc_thunk.bx
    080494c8 d __init_array_end
    080494c8 d __init_array_start
    080483f0 T __libc_csu_fini
    08048400 T __libc_csu_init
            U __libc_start_main@@GLIBC_2.0
    080495d8 A _edata
    080495dc A _end
    08048488 T _fini
    080484a4 R _fp_hw
    0804829c T _init
    08048320 T _start
    080495d8 b completed.5982
    080495cc W data_start
            U exit@@GLIBC_2.0
    08048380 t frame_dummy
    080483d0 T linus
    080483a4 T main
    080495d4 d p.5980
            U printf@@GLIBC_2.0
    fuqiang@fuqiang-laptop:~/linuxcexample/ch1$ nm libmy.a

    bill.o:
    00000000 T bill
            U printf

    linus.o:
    00000000 T linus
            U printf
  • different free software licenses *

    黄富强 发布于 2008-03-20 09:45:26

    The chart below helps illustrate some common compatibility relationships between different free software licenses:
    http://www.gnu.org/licenses/quick-guide-gplv3.html

  • LUPA社区2008实习生大招聘 *

    sanool 发布于 2008-03-03 14:13:03

    为了配合LUPA各项工作的全面开展,实现我们对开源事业的激情梦想,LUPA现在为计算机及相关专业的在校学生提供一个具有创意和激动人心的实习机会。

    如果你想参与开源社区,如果你想与顶尖的开源软件工程师一起工作,LUPA的实习项目将为你提供平台!

    如果你是——中国大学计算机科学及相关专业的在校学生

    如果你是——充满激情的程序痴迷者

    如果你希望——通过软件创作实现自我价值

    LUPA正在寻找你 !

    职位要求:

    在读的计算机及相关专业的本科、硕士及博士生;

    熟悉的软件开发流程或基本算法;

    掌握c/c++、Java、PHP中的任何一种开发技术;

    接触过Unix/Linux环境和系统API;

    熟悉TCP/IP及网络编程者或者有PHP网站开发经验者优先考虑。

    LUPA将为实习生提供:

    参与LUPA主持的各种开源项目;

    和谐舒适的办公环境和振奋人心的工作氛围;

    实习生将得到LUPA的资金奖励;

    实习地点: 杭州
  • 从源代码构建Linux服务器

    yayoo 发布于 2007-12-16 21:32:47

        本文详细描述了如何从源代码安装一个安全、高效的Linux服务器,提供一系列的服务:WEB、DATABASE、FTP、EMAIL、DNS、FIREWALL等,使用了下面的开源软件:
       
    • Linux Server:CentOS 5.0
    • Web Server: Apache 2.2.6
    • PHP 5.2.4
    • Database Server: MySQL 5.0.45
    • FTP Server: proftpd
    • Webalizer for web site statistics
        一、Linux基本系统的安装
        因为是从源代码构建整个服务器系统,所以安装了最小的系统,保证系统具备最基本的开发环境:开发工具和开发库,这样就具有了一个简洁的系统。发行版选择了 CentOS,CentOS 是从当前最流行的商业版 Linux -- Red Hat Enterprise Linux(RHEL)的源代码包重新编译而成,修正了 RHEL 已知的一些 Bug,除了没有 RHEL 一样的技术支持,其他方面与 RHEL 完成一样,所以,其稳定性值得我们信赖。

        为了便于安装,将所有文件下载到/usr/local/src,将这里作为工作目录。

        二、Apache的安装
        1.下载
            http://httpd.apache.org
        2.解压
            shell> tar xvjf httpd-VERSION.tar.bz2
        3.配置
            shell> cd httpd-VERSION
            shell> ./configure --prefix=/usr/local/apache2 --enable-module=shared
        4.编译
            shell> make
        5.安装
            shell> make install
        6.设置
            shell> cd /usr/local/apache2
            shell> emacs conf/httpd.conf
              ServerName www.example.com        #设置域名
              DocumentRoot /srv/www/example     #设置网站存放位置
              <Directory "/srv/www">            #设置目录,如果不使用虚拟主机,这里应设置为与DocumentRoot一致。
        7.启动
            shell> bin/apachectrl start

        三、Mysql的安装
        1.下载
            http://dev.mysql.com
        2.为mysqld增加一个登录用户和组
            shell> groupadd mysql
            shell> useradd -g mysql mysql
        3.解压
            shell> tar xvzf mysql-VERSION.tar.gz
        4.配置
            shell> cd mysql-VERSION
           
    shell> ./configure --prefix=/usr/local/mysql --with-charset=gb2312        #设置数据库支持中文字符集
       
    5.编译
           
    shell> make
       
    6.安装
            shell> make install
       
    7.拷贝配置文件
            shell> cp support-files/my-medium.cnf /etc/my.cnf
        8.改变所有权
            shell> cd /usr/local/mysql
            shell> chown -R mysql .
            shell> chgrp -R mysql .
           
    shell> chown -R root .
            shell> chown -R mysql var
        9.创建MySQL授权表
            shell> bin/mysql_install_db --user=mysql
        10.运行MySQL
            shell> bin/mysqld_safe --user=mysql &      #不推荐以root用户运行MySQL,用--user选项以mysql用户运行
        11.设置root密码
            shell> bin/mysqladmin -u root password yourpassword      #将password替换为你的密码
        12.自动启动和停止MySQL
            shell> cp /usr/local/src/mysql-VERSION/support-files/mysql.server /etc/init.d/mysql
            shell> chmod +x /etc/init.d/mysql
            shell> chkconfig --level 345 mysql on
        四、安装php(支持gd)
        1.下载
            php所需要的软件包:
            php: http://www.php.net
            libxml2: http://xmlsoft.org
            libxslt: http://xmlsoft.org
            GD库所需要的软件包:
           
    jpeg6: http://www.ijg.org
            png: http://www.libpng.org
            zlib: http://www.zlib.net
            freetype: http://www.freetype.org
            curl: http://curl.haxx.se
            gd: http://www.libgd.org
            Zend引擎:
            zend: http://www.zend.com
        2.安装gd库
            安装jpeg6:
            shell> mkdir /usr/local/lib/jpeg6
            shell> mkdir /usr/local/lib/jpeg6/bin
            shell> mkdir /usr/local/lib/jpeg6/lib
            shell> mkdir /usr/local/lib/jpeg6/include
            shell> mkdir /usr/local/lib/jpeg6/man
            shell> mkdir /usr/local/lib/jpeg6/man/man1
            shell> tar xvzf jpegsrc.v6b.tar.gz
            shell> cd jpeg-6b
            shell> ./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static
            shell> make
            shell> make install
            安装libpng:
            shell> tar xvjf libpng-1.2.23.tar.bz2
            shell> cd libpng-1.2.23
            shell> cp scrīpts/makefile.std makefile
            shell> make
            shell> make install
            安装freetype:
            shell> tar xvjf freetype-2.3.5.tar.bz2
            shell> cd freetype-2.3.5
            shell> ./configure --prefix=/usr/local/lib/freetype
            shell> make
            shell> make install
            安装zlib:
            shell> tar xvjf zlib-1.2.3.tar.bz2
            shell> cd zlib-1.2.3
            shell> ./configure
            shell> make
            shell> make install
            安装curl:
            shell> tar xvjf curl-7.17.1.tar.bz2
            shell> mkdir /usr/local/lib/curl
            shell> cd curl-7.17.1
            shell> ./configure --prefix=/usr/local/lib/curl
            shell> make
            shell> make install
            安装gd:
            shell> tar xvjf gd-2.0.33.tar.bz2
            shell> mkdir /usr/local/lib/gd2
            shell> cd gd-2.0.33
            shell> ./configure --prefix=/usr/local/gd2 --with-jpeg=/usr/local/jpeg6/ --with-png --with-zlib --with-freetype=/usr/local/freetype/
            shell> make
            shell> make install
        3.安装php
            安装libxml2:
            shell> tar xvzf libxml2-2.6.30.tar.gz
            shell> mkdir /usr/local/lib/libxml2
            shell> cd libxml2-2.6.30
            shell> ./configure --prefix=/usr/local/lib/libxml2
            shell> make
            shell> make install
            安装libxslt:
            shell> tar libxslt-1.1.22.tar.gz
            shell> mkdir /usr/local/lib/libxslt
            shell> cd libxslt-1.1.22
            shell> ./configure --prefix=/usr/local/lib/libxslt --with-libxml-prefix=/usr/local/lib/libxml2
            shell> make
            shell> make install
            安装php:
            shell> tar xvjf php-5.2.5.tar.bz2
            shell> cd php-5.2.5
            shell> ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-curl=/usr/local/lib/curl/ --enable-ftp --with-libxml-dir=/usr/local/lib/libxml2/ --enable-soap --with-xsl=/usr/local/lib/libxslt/  --with-jpeg-dir=/usr/local/lib/jpeg6/ --with-zlib-dir=/usr/local/lib/ --with-png-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib/freetype/ --with-gd=/usr/local/lib/gd2/ --enable-magic-quotes --enable-mbstring --with-bz2=/usr/lib
            shell> make
            shell> make install
            shell> cp php.ini-dist /usr/local/php/lib/php.ini
        4.配置apahce
            在httpd.conf找到
            AddType application/x-compress .Z
            AddType application/x-gzip .gz .tgz
            在后面添加:
            AddType application/x-httpd-php .php
            AddType application/x-httpd-php-source .phps
            找到
            <IfModule dir_module>
                DirectoryIndex index.html
            </IfModule>
            添加:
            <IfModule dir_module>
                DirectoryIndex index.html index.php
            </IfModule>
        5.安装Zend
            shell> tar xvzf ZendOptimizer-3.3.0a-linux-glibc21-i386.tar.gz
            shell> ./install
        五、安装Proftpd
        1.下载
            http://www.proftpd.org
        2.配置
            shell> tar xvjf proftpd-1.3.1.tar.bz2
            shell> cd proftpd-1.3.1
            shell> ./configure --prefix=/usr/local/proftd
        3.编译
            shell> make
        4.安装
            shell> make install
        5.设置
            shell> cd /usr/local/proftpd
            shell> emacs etc/proftpd.conf
            将
            #DefaultRoot ~
            改为
            DefaultRoot ~
       
    六、安装webalizer
        1.下载
            http://www.webalizer.org
        2.配置
            shell> tar xvjf webalizer-2.01-10-src.tar.bz2
            shell> cd webalizer-2.01-10
            shell> ./configure --prefix=/usr/local/webalizer --with-language=chinese --with-gdlib=/usr/local/lib/gd2/lib/ --with-gd=/usr/local/lib/gd2/include/
        3.编译
            shell> make
        4.安装
            shell> mkdir /usr/local/webalizer
            shell> mkdir /usr/local/webalizer/bin
            shell> mkdir /usr/local/webalizer/man
            shell> mkdir /usr/local/webalizer/man/man1
            shell> make install
Open Toolbar