Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/08/2009, à 14:39

CKDevelop

GAMP version 1.0 (Gnu Apache Mysql Php)

lu all!!!

pour des besoins personnel je me suis concocté une petit application qui me permet de contrôler facilement mon serveur LAMP en gros.

Le programme ce lance dans la zone de notification
et il vous propose plusieurs actions pour contrôler Apache, Mysql ou éditer les fichiers de configuration PHP

Je me suis inspirer de WAMP sur MS.

petites captures:

1250947004820.png

avec une notification après chaque action

1250947004619.png

vous pouvez si vous le souhaiter le lancer au demarrage du système

dans le menu Système>Préférences>applications au demarrage

ajouter comme commande :

gamp 30

pourquoi 30 ?

30 représente 30 Secondes on peu bien entendu mettre 1,2...10...15...60...120...bref
j'ai ajouté ce paramètre pour laisser le temps à tous les composants de votre linux de démarrer
et après 30 secondes GAMP ce lance un peu comme le notificateur de mise à jour qui ce lance 1 minute après le démarrage du système
grâce au paramètre --startup-delay=60 de la commande update-notifier

voilà sinon après l'installation, GAMP ajoute un raccourcis dans le menu Applications>Internet>GAMP.

Download GAMP (gamp.deb 1mo)

voilà ++ all

PS: n'hésité pas me donner votre avis et des commandes qui vous permette de contrôler LAMP au quotidien avec la console.
comme çà je les retranscrirais dans GAMP

Dernière modification par CKDevelop (Le 20/10/2009, à 01:59)


Home -> Debian Jessie & Home server -> Debian Wheezy
Office -> Ubuntu 14.04 & Office server -> Ubuntu 12.04
Embedded -> Raspbian / Debian Wheezy

Hors ligne

#2 Le 22/08/2009, à 15:22

erlik

Re : GAMP version 1.0 (Gnu Apache Mysql Php)

Interessant...
J'avais aussi fait un truc du style en bash, il y a qlq mois.
Tu proposes le code source qlq part?

Dernière modification par erlik (Le 22/08/2009, à 15:27)


Je ne suis pas un geek! Je suis un être humain!

Hors ligne

#3 Le 22/08/2009, à 15:33

CKDevelop

Re : GAMP version 1.0 (Gnu Apache Mysql Php)

oui dans le répertoire /usr/share/gamp une fois installé

freepascal désolé mais en gtk2 tous de même

voilà mais facilement adaptable en python

mais il est vraie que je suis un gros faignant et je préfère le développemet de gui
avec Lazarus, mais j'ai réussi à réduire le  binaire de 18MO à 2MO

Sinon vous décompressez gamp.deb et ensuite vous décompressez data.gz et vous récupèrez la source dans  /usr/share/gamp

-ouvrir gamp.lpi avec Lazarus pour obtenir toute la source avec le GUI
sinon
-ouvrir main.pas avec un éditeur de texte pour obtenir le code brut en freepascal sans le GUI

voilà je crois avoir tous dis

Dernière modification par CKDevelop (Le 22/08/2009, à 15:59)


Home -> Debian Jessie & Home server -> Debian Wheezy
Office -> Ubuntu 14.04 & Office server -> Ubuntu 12.04
Embedded -> Raspbian / Debian Wheezy

Hors ligne

#4 Le 22/08/2009, à 15:37

valAa

Re : GAMP version 1.0 (Gnu Apache Mysql Php)

erlik a écrit :

Tu proposes le code source qlq part?

+1, car même si tu ne le mets clairement nulle part, dans /usr/share/doc/gamp/copyright on lit :

Copyright: voir /usr/share/common-licenses/GPL-3

Donc ta licence, c'est bien la GPL3 ?
[edit] trop lent... mais donc c'est bien GPL ?

Sinon c'est sympa comme petit outil smile

Dernière modification par valAa (Le 22/08/2009, à 15:38)

Hors ligne

#5 Le 22/08/2009, à 15:52

CKDevelop

Re : GAMP version 1.0 (Gnu Apache Mysql Php)

valAa a écrit :

Donc ta licence, c'est bien la GPL3 ?
[edit] trop lent... mais donc c'est bien GPL ?

oui c'est bien çà donc servez smile vous et excusé mon petit oublie. roll


voilà la source

Code Initialisation GAMP gamp.lpr

program gamp;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Interfaces, // this includes the LCL widgetset
  Forms
  { you can add units after this }, main, LResources;

{$IFDEF WINDOWS}{$R gamp.rc}{$ENDIF}

begin
  Application.Title:='Gnu Apache Mysql Php';
  {$I gamp.lrs}  Application.CreateForm(Tfgamp, fgamp);
  Application.Run;
end.

Code brut main.pas

unit main;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  ExtCtrls, Process, Menus;

type

  { Tfgamp }

  Tfgamp = class(TForm)
    apache_start: TMenuItem;
    php_php5: TMenuItem;
    php_dir: TMenuItem;
    php: TMenuItem;
    mysql_stop: TMenuItem;
    mysql_restart: TMenuItem;
    mysql_reload: TMenuItem;
    mysql_forcereload: TMenuItem;
    mysql_status: TMenuItem;
    mysql_start: TMenuItem;
    apache_stop: TMenuItem;
    apache_restart: TMenuItem;
    apache_reload: TMenuItem;
    apache_forcereload: TMenuItem;
    apache_startht: TMenuItem;
    apache_stopht: TMenuItem;
    apache_status: TMenuItem;
    mysql: TMenuItem;
    s1: TMenuItem;
    quitter: TMenuItem;
    apache: TMenuItem;
    time: TTimer;
    traymenu: TPopupMenu;
    traycon: TTrayIcon;
    procedure Click(Sender: TObject);
    procedure FormActivate(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end; 

var
  fgamp: Tfgamp;
  strapache,strmysql:string;

implementation

{ Tfgamp }



procedure Tfgamp.FormActivate(Sender: TObject);
begin
   fgamp.visible:=false;
   traycon.Visible:=false;
   strapache:='gksudo /etc/init.d/apache2 ';
   strmysql:='gksudo /etc/init.d/mysql ';

   if paramstr(1)<> '' then begin
      time.Interval:=strtoint(paramstr(1))*1000;
   end else begin
       time.Interval:=250;
   end;

   time.Enabled:=true;
end;


procedure Tfgamp.Click(Sender: TObject);
var
   i:integer;
   strsortie:string;
   sortie:tstringlist;
   Process: TProcess;
begin
     Process := TProcess.Create(nil);
     Process.Options := Process.Options + [poWaitOnExit, poUsePipes];

     //============================= APACHE ====================================
     if tfgamp(sender).Name = 'apache_start' then begin
        process.CommandLine:=strapache+'start';

     end else if tfgamp(sender).Name = 'apache_stop' then begin
         process.CommandLine:=strapache+'stop';

     end else if tfgamp(sender).Name = 'apache_restart' then begin
         process.CommandLine:=strapache+'restart';

     end else if tfgamp(sender).Name = 'apache_reload' then begin
         process.CommandLine:=strapache+'reload';

     end else if tfgamp(sender).Name = 'apache_forcereload' then begin
         process.CommandLine:=strapache+'force-reload';

     end else if tfgamp(sender).Name = 'apache_startht' then begin
         process.CommandLine:=strapache+'start-htcacheclean';

     end else if tfgamp(sender).Name = 'apache_stopht' then begin
         process.CommandLine:=strapache+'stop-htcacheclean';

     end else if tfgamp(sender).Name = 'apache_status' then begin
         process.CommandLine:=strapache+'status';

     //============================= MYSQL =====================================
     end else if tfgamp(sender).Name = 'mysql_start' then begin
         process.CommandLine:=strmysql+'start';

     end else if tfgamp(sender).Name = 'mysql_stop' then begin
         process.CommandLine:=strmysql+'stop';

     end else if tfgamp(sender).Name = 'mysql_restart' then begin
         process.CommandLine:=strmysql+'restart';

     end else if tfgamp(sender).Name = 'mysql_reload' then begin
         process.CommandLine:=strmysql+'reload';

     end else if tfgamp(sender).Name = 'mysql_forcereload' then begin
         process.CommandLine:=strmysql+'force-reload';

     end else if tfgamp(sender).Name = 'mysql_status' then begin
         process.CommandLine:=strmysql+'status';

     //=============================== PHP =====================================
     end else if tfgamp(sender).Name = 'php_php5' then begin
         process.CommandLine:='sudo nano /etc/apache2/mods-enabled/php5.conf';
         Process.Options := Process.Options + [poWaitOnExit, poUsePipes, poNewConsole];
         apache_restart.Click;

     end else if tfgamp(sender).Name = 'php_dir' then begin
         process.CommandLine:='sudo nano /etc/apache2/mods-enabled/dir.conf';
         Process.Options := Process.Options + [poWaitOnExit, poUsePipes, poNewConsole];
         apache_restart.Click;

     //============================= QUITTER ===================================
     end else if tfgamp(sender).Name = 'quitter' then begin
         process.Free;
         application.Terminate;

     //============================= Timer de démarrage=============================
     end else if tfgamp(sender).Name = 'time' then begin
         traycon.Visible:=true;
         process.CommandLine:=strapache+'status';
         time.Enabled:=false;
     end;

     if tfgamp(sender).Name <> 'quitter' then begin
        process.Execute;
        sortie:=tstringlist.Create;
        sortie.LoadFromStream(process.Output);
        strsortie:='';

        for i:=0 to sortie.Count-1 do begin
            strsortie:=strsortie+sortie.Strings[i]+#10#13;
        end;

        traycon.BalloonHint:=strsortie;
        traycon.ShowBalloonHint;
        sortie.Free;
        Process.Free;

        Process := TProcess.Create(nil);
        Process.Options := Process.Options + [poWaitOnExit, poUsePipes];
        process.CommandLine:=strapache+'status';
        process.Execute;

        sortie:=tstringlist.Create;
        sortie.LoadFromStream(process.Output);
        strsortie:='';

        for i:=0 to sortie.Count-1 do begin
            strsortie:=strsortie+sortie.Strings[i]+#10#13;
        end;

        sortie.Free;
        process.free;

        if strsortie <> '' then begin
           if strsortie[1..20] = ' * Apache is running' then begin
              traycon.Icon.LoadFromFile('/usr/share/pixmaps/gampOK.ico');
           end else begin
              traycon.Icon.LoadFromFile('/usr/share/pixmaps/gampNO.ico');
           end;
        end else begin
           traycon.Icon.LoadFromFile('/usr/share/pixmaps/gampNO.ico');
        end;

     end;
  end;

initialization
  {$I main.lrs}

end.

Code GUI main.lfm

object fgamp: Tfgamp

  Left = 412

  Height = 27

  Top = 145

  Width = 255

  Caption = 'Gnu Apache Mysql Php'

  Color = clCream

  OnActivate = FormActivate

  Position = poScreenCenter

  ShowInTaskBar = stNever

  LCLVersion = '0.9.26.2'

  object traycon: TTrayIcon

    BalloonHint = 'Welcome to GAMP'

    BalloonTimeout = 0

    BalloonTitle = 'Gnu Apache Mysql Php'

    PopUpMenu = traymenu

    Hint = 'Gnu Apache Mysql Php'

    Visible = True

  end

  object traymenu: TPopupMenu

    left = 32

    object apache: TMenuItem

      Caption = 'Apache'

      Bitmap.Data = {

        36090000424D3609000000000000360000002800000018000000180000000100

        2000000000000009000064000000640000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF000000000000000000000000000000000000

        000000000000438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000

      }

      object apache_start: TMenuItem

        Caption = 'Start'

        OnClick = Click

      end

      object apache_stop: TMenuItem

        Caption = 'Stop'

        OnClick = Click

      end

      object apache_restart: TMenuItem

        Caption = 'Restart'

        OnClick = Click

      end

      object apache_reload: TMenuItem

        Caption = 'Reload'

        OnClick = Click

      end

      object apache_forcereload: TMenuItem

        Caption = 'Force reload'

        OnClick = Click

      end

      object apache_startht: TMenuItem

        Caption = 'Start htcacheclean'

        OnClick = Click

      end

      object apache_stopht: TMenuItem

        Caption = 'Stop htcacheclean'

        OnClick = Click

      end

      object apache_status: TMenuItem

        Caption = 'Status'

        OnClick = Click

      end

    end

    object mysql: TMenuItem

      Caption = 'Mysql'

      Bitmap.Data = {

        36090000424D3609000000000000360000002800000018000000180000000100

        2000000000000009000064000000640000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF000000000000000000000000000000000000

        000000000000438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000

      }

      object mysql_start: TMenuItem

        Caption = 'Start'

        OnClick = Click

      end

      object mysql_stop: TMenuItem

        Caption = 'Stop'

        OnClick = Click

      end

      object mysql_restart: TMenuItem

        Caption = 'Restart'

        OnClick = Click

      end

      object mysql_reload: TMenuItem

        Caption = 'Reload'

        OnClick = Click

      end

      object mysql_forcereload: TMenuItem

        Caption = 'Force reload'

        OnClick = Click

      end

      object mysql_status: TMenuItem

        Caption = 'Status'

        OnClick = Click

      end

    end

    object php: TMenuItem

      Caption = 'Php'

      Bitmap.Data = {

        36090000424D3609000000000000360000002800000018000000180000000100

        2000000000000009000064000000640000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF000000000000000000000000000000000000

        000000000000438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF438021FF4380

        21FF438021FF438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000438021FF4380

        21FF438021FF438021FF438021FF438021FF438021FF438021FF000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000438021FF438021FF000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000

      }

      object php_php5: TMenuItem

        Caption = 'php5.conf'

        OnClick = Click

      end

      object php_dir: TMenuItem

        Caption = 'dir.conf'

        OnClick = Click

      end

    end

    object s1: TMenuItem

      Caption = '-'

    end

    object quitter: TMenuItem

      Caption = 'Quitter'

      Bitmap.Data = {

        36090000424D3609000000000000360000002800000018000000180000000100

        2000000000000009000064000000640000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000FF0000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        00000000FF000000000000000000000000000000000000000000000000000000

        00000000000000000000000000000F0FDF001212D6001313D800000000000000

        0000000000000000000000000000000000000000000000000000000000001313

        D8001111D3000F0FDF0000000000000000000000000000000000000000000000

        000000000000000000000000FF001010D6001414D7FF1515D7FF1515D6000000

        0000000000000000D4001212D9001515D40000000000000000001515D6001616

        D7FF1616D7FF1414D60000007F00000000000000000000000000000000000000

        00000000000000000000000000001212D9001616D5FF1616D7FF1515D7FF1515

        D6001212DA001515D8001515D8FF1515D8001212DA001515D6001515D7FF1616

        D7FF1616D5FF1212CF0000000000000000000000000000000000000000000000

        0000000000000000000000000000000000001111D3001616D5FF1616D7FF1515

        D7FF1616D7FF1616D8FF1717D8FF1616D8FF1616D7FF1515D7FF1616D7FF1616

        D5FF1111D3000000000000000000000000000000000000000000000000000000

        000000000000000000000000000000000000000000001111D3001515D7FF1616

        D8FF1616D8FF1717D8FF1717D8FF1717D8FF1616D8FF1616D8FF1515D7FF1111

        D300000000000000000000000000000000000000000000000000000000000000

        000000000000000000000000000000000000000000001212DA001515D8FF1515

        D7FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1515D7FF1515D8FF1212

        DA00000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000E2001515D8001616D8FF1717

        D8FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1616D8FF1515

        D8000000E2000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000B0BD2001616D7FF1717D8FF1717

        D8FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1616

        D7FF1616DD000000000000000000000000000000000000000000000000000000

        000000000000000000000000000000000000000000001414D7001616D8FF1717

        D8FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1616D8FF1414

        D700000000000000000000000000000000000000000000000000000000000000

        00000000000000000000000000000000000000000000000000001515D9001616

        D7FF1717D8FF1717D8FF1717D8FF1717D8FF1717D8FF1616D7FF1515D9000000

        0000000000000000000000000000000000000000000000000000000000000000

        000000000000000000000000000000000000000000001515D6001515D7FF1616

        D7FF1515D6FF1717D8FF1717D8FF1717D8FF1616D8FF1616D7FF1515D7FF1515

        D600000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000001313D8001515D7FF1616D7FF1616

        D5FF1414D9001616D8FF1717D8FF1616D8FF1414D9001616D5FF1616D7FF1515

        D7FF1313D8000000000000000000000000000000000000000000000000000000

        00000000000000000000000000000E0ED4001515D7FF1515D7FF1616D5FF1111

        D300000000001414D7001616D8001414D700000000001111D3001616D5FF1515

        D7FF1515D6FF1515D40000000000000000000000000000000000000000000000

        00000000000000000000000000001010D5001515D6FF1616D5FF1111D3000000

        000000000000000000000000CC000000000000000000000000001111D3001616

        D5FF1515D6FF1010D50000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000F0FD8000C0CCE00000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        00001717D9000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000000000000000

        0000000000000000000000000000000000000000000000000000

      }

      OnClick = Click

    end

  end

  object time: TTimer

    Enabled = False

    Interval = 10000

    OnTimer = Click

    left = 64

  end

end

Code Initialisation Lazarus gamp.lpi

<?xml version="1.0"?>
<CONFIG>
  <ProjectOptions>
    <PathDelim Value="/"/>
    <Version Value="7"/>
    <General>
      <MainUnit Value="0"/>
      <TargetFileExt Value=""/>
      <Title Value="Gnu Apache Mysql Php"/>
      <UseAppBundle Value="False"/>
      <ActiveEditorIndexAtStart Value="0"/>
    </General>
    <VersionInfo>
      <ProjectVersion Value=""/>
    </VersionInfo>
    <PublishOptions>
      <Version Value="2"/>
      <IgnoreBinaries Value="False"/>
      <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
      <ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
    </PublishOptions>
    <RunParams>
      <local>
        <FormatVersion Value="1"/>
        <LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
      </local>
    </RunParams>
    <RequiredPackages Count="1">
      <Item1>
        <PackageName Value="LCL"/>
      </Item1>
    </RequiredPackages>
    <Units Count="2">
      <Unit0>
        <Filename Value="gamp.lpr"/>
        <IsPartOfProject Value="True"/>
        <UnitName Value="gamp"/>
        <CursorPos X="1" Y="1"/>
        <TopLine Value="1"/>
        <EditorIndex Value="1"/>
        <UsageCount Value="30"/>
        <Loaded Value="True"/>
      </Unit0>
      <Unit1>
        <Filename Value="main.pas"/>
        <ComponentName Value="fgamp"/>
        <IsPartOfProject Value="True"/>
        <ResourceBaseClass Value="Form"/>
        <UnitName Value="main"/>
        <CursorPos X="50" Y="132"/>
        <TopLine Value="124"/>
        <EditorIndex Value="0"/>
        <UsageCount Value="30"/>
        <Loaded Value="True"/>
      </Unit1>
    </Units>
    <JumpHistory Count="30" HistoryIndex="29">
      <Position1>
        <Filename Value="main.pas"/>
        <Caret Line="21" Column="26" TopLine="16"/>
      </Position1>
      <Position2>
        <Filename Value="main.pas"/>
        <Caret Line="22" Column="26" TopLine="16"/>
      </Position2>
      <Position3>
        <Filename Value="main.pas"/>
        <Caret Line="23" Column="26" TopLine="16"/>
      </Position3>
      <Position4>
        <Filename Value="main.pas"/>
        <Caret Line="24" Column="26" TopLine="16"/>
      </Position4>
      <Position5>
        <Filename Value="main.pas"/>
        <Caret Line="18" Column="27" TopLine="16"/>
      </Position5>
      <Position6>
        <Filename Value="main.pas"/>
        <Caret Line="19" Column="27" TopLine="16"/>
      </Position6>
      <Position7>
        <Filename Value="main.pas"/>
        <Caret Line="22" Column="12" TopLine="16"/>
      </Position7>
      <Position8>
        <Filename Value="main.pas"/>
        <Caret Line="28" Column="20" TopLine="16"/>
      </Position8>
      <Position9>
        <Filename Value="main.pas"/>
        <Caret Line="19" Column="27" TopLine="16"/>
      </Position9>
      <Position10>
        <Filename Value="main.pas"/>
        <Caret Line="18" Column="27" TopLine="16"/>
      </Position10>
      <Position11>
        <Filename Value="main.pas"/>
        <Caret Line="17" Column="26" TopLine="16"/>
      </Position11>
      <Position12>
        <Filename Value="main.pas"/>
        <Caret Line="23" Column="26" TopLine="16"/>
      </Position12>
      <Position13>
        <Filename Value="main.pas"/>
        <Caret Line="22" Column="26" TopLine="16"/>
      </Position13>
      <Position14>
        <Filename Value="main.pas"/>
        <Caret Line="21" Column="26" TopLine="16"/>
      </Position14>
      <Position15>
        <Filename Value="main.pas"/>
        <Caret Line="20" Column="26" TopLine="16"/>
      </Position15>
      <Position16>
        <Filename Value="main.pas"/>
        <Caret Line="19" Column="24" TopLine="16"/>
      </Position16>
      <Position17>
        <Filename Value="main.pas"/>
        <Caret Line="114" Column="32" TopLine="96"/>
      </Position17>
      <Position18>
        <Filename Value="main.pas"/>
        <Caret Line="140" Column="23" TopLine="61"/>
      </Position18>
      <Position19>
        <Filename Value="main.pas"/>
        <Caret Line="57" Column="21" TopLine="20"/>
      </Position19>
      <Position20>
        <Filename Value="main.pas"/>
        <Caret Line="9" Column="13" TopLine="1"/>
      </Position20>
      <Position21>
        <Filename Value="main.pas"/>
        <Caret Line="139" Column="9" TopLine="124"/>
      </Position21>
      <Position22>
        <Filename Value="main.pas"/>
        <Caret Line="141" Column="41" TopLine="125"/>
      </Position22>
      <Position23>
        <Filename Value="main.pas"/>
        <Caret Line="151" Column="17" TopLine="133"/>
      </Position23>
      <Position24>
        <Filename Value="main.pas"/>
        <Caret Line="163" Column="6" TopLine="138"/>
      </Position24>
      <Position25>
        <Filename Value="gamp.lpr"/>
        <Caret Line="16" Column="45" TopLine="1"/>
      </Position25>
      <Position26>
        <Filename Value="main.pas"/>
        <Caret Line="142" Column="22" TopLine="141"/>
      </Position26>
      <Position27>
        <Filename Value="main.pas"/>
        <Caret Line="41" Column="28" TopLine="28"/>
      </Position27>
      <Position28>
        <Filename Value="main.pas"/>
        <Caret Line="40" Column="15" TopLine="27"/>
      </Position28>
      <Position29>
        <Filename Value="main.pas"/>
        <Caret Line="69" Column="26" TopLine="55"/>
      </Position29>
      <Position30>
        <Filename Value="main.pas"/>
        <Caret Line="65" Column="31" TopLine="52"/>
      </Position30>
    </JumpHistory>
  </ProjectOptions>
  <CompilerOptions>
    <Version Value="8"/>
    <Target>
      <Filename Value="gamp"/>
    </Target>
    <SearchPaths>
      <IncludeFiles Value="$(ProjOutDir)/"/>
    </SearchPaths>
    <Parsing>
      <SyntaxOptions>
        <CStyleOperator Value="False"/>
        <AllowLabel Value="False"/>
        <CPPInline Value="False"/>
      </SyntaxOptions>
    </Parsing>
    <CodeGeneration>
      <SmartLinkUnit Value="True"/>
      <SmallerCode Value="True"/>
      <TargetCPU Value="i386"/>
      <Optimizations>
        <OptimizationLevel Value="3"/>
      </Optimizations>
      <TargetOS Value="Linux"/>
    </CodeGeneration>
    <Linking>
      <Debugging>
        <UseLineInfoUnit Value="False"/>
        <StripSymbols Value="True"/>
      </Debugging>
      <LinkSmart Value="True"/>
    </Linking>
    <Other>
      <Verbosity>
        <ShowHintsForUnusedUnitsInMainSrc Value="True"/>
        <ShowHintsForSenderNotUsed Value="True"/>
      </Verbosity>
      <WriteFPCLogo Value="False"/>
      <CompilerPath Value="$(CompPath)"/>
    </Other>
  </CompilerOptions>
  <Debugging>
    <Exceptions Count="3">
      <Item1>
        <Name Value="EAbort"/>
      </Item1>
      <Item2>
        <Name Value="ECodetoolError"/>
      </Item2>
      <Item3>
        <Name Value="EFOpenError"/>
      </Item3>
    </Exceptions>
  </Debugging>
</CONFIG>

En espérant que cela ne soit pas trops lourd pour le serveur

++

Dernière modification par CKDevelop (Le 22/08/2009, à 16:36)


Home -> Debian Jessie & Home server -> Debian Wheezy
Office -> Ubuntu 14.04 & Office server -> Ubuntu 12.04
Embedded -> Raspbian / Debian Wheezy

Hors ligne

#6 Le 22/08/2009, à 16:21

CKDevelop

Re : GAMP version 1.0 (Gnu Apache Mysql Php)

-Pour amélioré GAMP je recherche une commande qui me permettrais de détecter les module php installé sur le système et si il son activé ou pas. wink

N'hésiter pas à me signaler des répertoire ou fichiers de configuration que j'aurais pu oublier

Gamp et un nouveau née donc plus ils y auras d'infos sur la gestion de LAMP et plus GAMP pourras vous satisfaire à l'avenir.

voilà++


Home -> Debian Jessie & Home server -> Debian Wheezy
Office -> Ubuntu 14.04 & Office server -> Ubuntu 12.04
Embedded -> Raspbian / Debian Wheezy

Hors ligne