Giter VIP home page Giter VIP logo

apt-mirror-admin's Introduction

aptMirrorAdmin Logo

aptMirrorAdmin

An unusual tool allowing you to control your debian mirror safely.

Firstly, apt-mirror is a small tool that provides ability to mirror any parts (or even all) of Debian and Ubuntu GNU/Linux distributions or any other apt sources which typically provided by open source developers.

Secondly, with aptMirrorAdmin you can pilot your apt-mirror by the way of a web admin panel.

apt-mirror-admin's People

Contributors

anthlasserre avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

thieryl

apt-mirror-admin's Issues

Get phpmyadmin version on index.php

I tried to get phpmyadmin version from a shell cmd on debian but no success.
I saw on phpmyadmin panel the version, so I tried to find the version variable and I think this is it in /usr/share/phpmyadmin/index.php:
PMA_printListItem(
__('Version information:') . ' ' . PMA_VERSION,
'li_pma_version',
null,
null,
null,
null,
$class
);

My issue is to put this variable into my index.php file

Can't display logs from server correctly from configuration.php

I try to display different logs on the page configuration.php.
Firstly with a simple function:
$file='/var/log/apache2/error.log';
$contenu=file_get_contents($file);
echo $contenu;

But I have a problem when the file is too big.
The lasts log lines are at the bottom of the file so I have to scroll for 20 seconds before to see the lasts logs.

So try an another function:
$fp = fopen ('/var/log/apache2/error.log','r');
$page = '';
while (!feof ($fp)) {
$page = fgets ($fp, 4096) . $page . '
';
fclose ($fp);
echo $page;
}

And it works only on syslog even if I have multiple empty lines at the end.

Can't execute the command from a script like apacheRestart.sh

I've an issue concerning a script like" apacheRestart.sh".
I made the link between the action button on the web interface "Restart Apache", and in the log of Apache an error shows I'm not authorized to restart apache2.service.
I have to find a way to execute this command "systemctl restart apache2" in my script "apacheRestart.sh" with root privileges.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.