Error in creating a local package repository



  • Hello,

    I want to learn who to create pfsense package. So I read the wiki. And first I try to install a local package repository. But i fail, so please help me.

    What I have done:

    1. I paste in the section „<virtualhost *:80="">“  in the file „/etc/apache2/sites-available/default“:
    AddHandler php5-script php
    AddType text/html php

    2. restart apache
    service apache2 restart

    3. dowload the xml-server and the packages
    cd /var/www
    git clone git://github.com/pfsense/xmlrpc-server.git pfSense
    git clone git://github.com/pfsense/pfsense-packages.git packages

    4. Direct download the php-files in the packages folder
    echo "AddHandler php5-script php" > /var/www/packages/.htaccess
    echo "RemoveType .php" >> /var/www/packages/.htaccess

    5. Set korrekt owner
    chown -R www-data:www-data /var/www/pfSense/
    chown -R www-data:www-data /var/www/packages/

    6a. test
    http://10.12.0.14/pfSense/test.php shows:
    Array ( [0] => foo [1] => baz )

    6b. test
    http://10.12.0.14/pfSense/pkg_tester.php shows nothing.
    With the command „$cli->setdebug(1);“ it shows:
    –-GOT---
    HTTP/1.1 200 OK
    Date: Wed, 14 May 2014 09:39:14 GMT
    Server: Apache/2.2.16 (Debian)
    X-Powered-By: PHP/5.4.0-1~dotdeb.1
    Vary: Accept-Encoding
    Content-Length: 40
    Connection: close
    Content-Type: text/html

    XML error: No pfsensepkgs object found!

    ---END---

    Informationen:
    Size of: /var/www/pfSense -> 584K
    Size of: /var/www/packages -> 202M

    So where is the error?

    Have I nice day.

    Snowyrain</virtualhost>


Log in to reply