It is currently Sat May 27, 2017 4:28 am



Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 12:40 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
@Dave
It do not works
and I have an error in the lines when I restart the PC...

Folder Web => ok
I replaced
Code:
DocumentRoot /var/www/html/
        <Directory /var/www/html/>

with
Code:
ServerAdmin [email protected]  => [i]this line was already in the file[/i]
   DocumentRoot /home/dan/Web
        <Directory /home/dan/Web>


I created /Web/test (folder)
I created an index.php in test
Code:
<?php
echo 'Hello world';
?>


localhost/Web/test/index.php => nothing (404)

localhost/test.index/php => nothing (404)

What' about ?


Last edited by tremeur53 on Sat Oct 08, 2016 12:53 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 12:52 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
I tried
Code:
# ServerAdmin [email protected] 
   DocumentRoot /home/dan/Web
        <Directory /home/dan/Web>


It does not work
I restarted apache


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 1:05 pm 
Offline

Joined: Thu Jan 21, 2010 12:36 am
Posts: 1040
Ls -l /home/dan/Web?

Cat /var/log/apache/apache-error.log?

_________________
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 1:12 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
Your commands dont work ?
Code:
[email protected]:/home/dan# Ls -l /home/dan/Web?
bash: Ls : commande introuvable
[email protected]:/home/dan# Cat /var/log/apache/apache-error.log?
bash: Cat : commande introuvable
[email protected]:/home/dan#


While starting the computer I can see => start apache FAILED
Yesterday it worked.


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 3:56 pm 
Offline

Joined: Thu Jan 21, 2010 12:36 am
Posts: 1040
Sorry.
Ls = ls
Cat = cat

I think apache2 does not start because the directory is missing.
Would like to see... so cat is to read the log file

_________________
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 4:58 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
Code:
[email protected]:~
$ ls -l /home/dan/Web?
ls: impossible d'accéder à /home/dan/Web?: Aucun fichier ou dossier de ce type
[email protected]:~
$
[email protected]:~
$ cat /var/log/apache/apache-error.log?
cat: /var/log/apache/apache-error.log?: Aucun fichier ou dossier de ce type
[email protected]:~
$


Translation : No files or folders of this type for the 2 commands !

What ? dan/Web/ really exists !

It's not important.
I do not really need to use PHP on my laptop.
If it's too difficult...

But How to uninstal the package ??
I do not like the error messages while starting the computer !
It's apache2
I tried
Code:
ls var/log/apache2

No files or folders of this type ! !


Attachments:
glop.jpg
glop.jpg [ 18.76 KiB | Viewed 305 times ]
Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 6:04 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
It is the folder home/dan/
Web is there !


Attachments:
screenshot2.jpg
screenshot2.jpg [ 14.65 KiB | Viewed 304 times ]
Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 6:12 pm 
Offline

Joined: Thu Jan 21, 2010 12:36 am
Posts: 1040
I wish I could write french! I only know how to read / listen a little, you are much farther in english than I am in French.
I am making exact instructions on the computer now. It is very easy to do.

I see now I gave the wrong name for apache error log
try: cat /var/log/apache2/error.log

_________________
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 6:16 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
Code:
[email protected]:/home/dan# cat /var/log/apache2/error.log
[Thu Oct 06 20:43:22.528984 2016] [mpm_event:notice] [pid 8285:tid 3074967360] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Thu Oct 06 20:43:22.529212 2016] [core:notice] [pid 8285:tid 3074967360] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 06 20:43:56.232447 2016] [mpm_event:notice] [pid 8285:tid 3074967360] AH00491: caught SIGTERM, shutting down
[Thu Oct 06 20:43:57.622540 2016] [mpm_prefork:notice] [pid 10348] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Thu Oct 06 20:43:57.623749 2016] [core:notice] [pid 10348] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 06 20:43:59.406183 2016] [mpm_prefork:notice] [pid 10348] AH00169: caught SIGTERM, shutting down
[Thu Oct 06 20:44:00.959188 2016] [mpm_prefork:notice] [pid 10452] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Thu Oct 06 20:44:00.959975 2016] [core:notice] [pid 10452] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 06 21:46:40.213248 2016] [mpm_prefork:notice] [pid 10452] AH00169: caught SIGTERM, shutting down
[Thu Oct 06 23:48:06.387432 2016] [mpm_prefork:notice] [pid 1800] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Thu Oct 06 23:48:06.410182 2016] [core:notice] [pid 1800] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 07 11:03:27.220754 2016] [mpm_prefork:notice] [pid 1800] AH00169: caught SIGTERM, shutting down
[Fri Oct 07 16:34:35.669092 2016] [mpm_prefork:notice] [pid 1919] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Oct 07 16:34:35.692506 2016] [core:notice] [pid 1919] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 07 17:19:47.467650 2016] [mpm_prefork:notice] [pid 1919] AH00169: caught SIGTERM, shutting down
[Fri Oct 07 18:10:06.302808 2016] [mpm_prefork:notice] [pid 1800] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Fri Oct 07 18:10:06.321671 2016] [core:notice] [pid 1800] AH00094: Command line: '/usr/sbin/apache2'
[Sat Oct 08 00:02:10.006493 2016] [mpm_prefork:notice] [pid 1800] AH00169: caught SIGTERM, shutting down
[Sat Oct 08 11:59:15.258195 2016] [mpm_prefork:notice] [pid 1799] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Sat Oct 08 11:59:15.277712 2016] [core:notice] [pid 1799] AH00094: Command line: '/usr/sbin/apache2'
[Sat Oct 08 12:00:26.943326 2016] [:error] [pid 3538] [client 127.0.0.1:32882] script '/var/www/html/getSegment.php' not found or unable to stat, referer: http://antix.freeforums.org/post48542.html
[Sat Oct 08 12:01:18.386585 2016] [:error] [pid 3540] [client 127.0.0.1:32958] script '/var/www/html/getSegment.php' not found or unable to stat, referer: http://antix.freeforums.org/post48536.html
[Sat Oct 08 12:01:37.559876 2016] [:error] [pid 3540] [client 127.0.0.1:33020] script '/var/www/html/getSegment.php' not found or unable to stat, referer: http://antix.freeforums.org/acceder-a-worgroup-t6627.html
[Sat Oct 08 12:19:54.599345 2016] [:error] [pid 1804] [client 127.0.0.1:33228] script '/var/www/html/getSegment.php' not found or unable to stat, referer: http://antix.freeforums.org/viewtopic.php?f=31&t=6627
[Sat Oct 08 12:20:20.049663 2016] [mpm_prefork:notice] [pid 1799] AH00169: caught SIGTERM, shutting down
[email protected]:/home/dan#


For me it's CHINESE language ! ! ! :mrgreen: :shock:

May be I restore the apache config like it was, and you give me a command to transform www/html with r-w rights ??? With a right clic it's not possible


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 6:44 pm 
Offline

Joined: Thu Jan 21, 2010 12:36 am
Posts: 1040
type: service apache2 status
type: cat /etc/apache2/sites-enabled/000-default

I think it says
start @ 11:59
using command /usr/sbin/apache2 @ 11:59
not familiar with errors from 12:00 - 12:19
told to shutdown 12:20


Other:
as root: apt-get -f install bluefish
to install bluefish

_________________
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 6:50 pm 
Offline

Joined: Thu Jan 21, 2010 12:36 am
Posts: 1040
instructions from new install.

open terminal
type: mkdir /home/dan/Web
type: su root
type: ROOT PASSWORD
type: apt-get -f install apache2 php5 mysql-server
type: leafpad /etc/apache2/site-enabled/000-default
Old:
Code:
<VirtualHost *:80>
   ServerAdmin [email protected]

   DocumentRoot /var/www
   <Directory />
      Options FollowSymLinks
      AllowOverride None
   </Directory>
   <Directory /var/www/>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride None
      Order allow,deny
      allow from all
   </Directory>

   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
   <Directory "/usr/lib/cgi-bin">
      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
   </Directory>

   ErrorLog ${APACHE_LOG_DIR}/error.log

   # Possible values include: debug, info, notice, warn, error, crit,
   # alert, emerg.
   LogLevel warn

   CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Change to:
Code:
<VirtualHost *:80>
   ServerAdmin [email protected]

   DocumentRoot /home/dan/Web
   <Directory />
      Options FollowSymLinks
      AllowOverride None
   </Directory>
   <Directory /home/dan/Web>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride None
      Order allow,deny
      allow from all
   </Directory>

   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
   <Directory "/usr/lib/cgi-bin">
      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
   </Directory>

   ErrorLog ${APACHE_LOG_DIR}/error.log

   # Possible values include: debug, info, notice, warn, error, crit,
   # alert, emerg.
   LogLevel warn

   CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

save and close:
type: service apache2 restart
type: exit
type: leafpad /home/dan/Web/index.html
Write:
Code:
<html>
<body>
This is a test page
</body>
</html>

save and close:
type: exit
open web browser.
type: http://localhost

Does it work?

_________________
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 6:58 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
Problem ! !
The forum says FORBIDDEN
You do not have permission access posting.php

With the small PC


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 7:01 pm 
Offline

Joined: Thu Jan 21, 2010 12:36 am
Posts: 1040
OK. Bug in the forum.
It is because of /etc
type a space between / and etc
or type like:
Code:
[i]/[/i]etc

_________________
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 7:03 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
NO the error when I try to post a response !
Whith My big PC (Windows 7) it's works.

I try to restart the small one ?


Top
 Profile  
 
 Post subject: Re: Accéder à Worgroup
PostPosted: Sat Oct 08, 2016 7:10 pm 
Offline

Joined: Thu Sep 29, 2016 7:51 pm
Posts: 76
I have restarted !
I try ....

Ok it seems working....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred