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 php2. restart apache
service apache2 restart3. 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 packages4. Direct download the php-files in the packages folder
echo "AddHandler php5-script php" > /var/www/packages/.htaccess
echo "RemoveType .php" >> /var/www/packages/.htaccess5. 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/htmlXML error: No pfsensepkgs object found!
---END---
Informationen:
Size of: /var/www/pfSense -> 584K
Size of: /var/www/packages -> 202MSo where is the error?
Have I nice day.
Snowyrain</virtualhost>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy