No windows no gates apache inside

Hi,

#1 2007-03-16 20:03:34

Jirka
Member
From: Czech Rep.
Registered: 2007-03-13
Posts: 21

Error 23: Error while parsing number (solved)

Hi,

I have an old notebook which has no cd-rom. So I have joined the notebook’s disc via USB to my computer and I’m trying to install the system from CD-ROM on my PC.
But may be I have a mess in hda, hdb, sdb etc.

When I have installed the system already three times, I get the error while Archlinux is booting:

Error 23: Error while parsing number

What I have done wrong?

Thank you.

Last edited by Jirka (2007-03-17 20:04:37)


Linux is like a teepee. No Windows, no Gates, Apache inside!!!

#2 2007-03-16 20:06:48

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Error 23: Error while parsing number (solved)

Looks like a boot loader error, can you post the contents of your boot loader (grub or lilo) config?

#3 2007-03-16 20:23:57

Jirka
Member
From: Czech Rep.
Registered: 2007-03-13
Posts: 21

Re: Error 23: Error while parsing number (solved)

phrakture wrote:

Looks like a boot loader error, can you post the contents of your boot loader (grub or lilo) config?

ok, which file? I have found these:

grub-terminfo
grub-set-default
grub-md5-crypt
grub-install
grub


Linux is like a teepee. No Windows, no Gates, Apache inside!!!

#4 2007-03-16 21:13:28

Jirka
Member
From: Czech Rep.
Registered: 2007-03-13
Posts: 21

Re: Error 23: Error while parsing number (solved)

phrakture wrote:

Looks like a boot loader error, can you post the contents of your boot loader (grub or lilo) config?

I have now readed documentation and there is written, that naming schema of GRUB is different of UNIX naming. That means, that discs are hd0, hd1, etc.

Conversion table is:

/dev/fd0   (fd0)
/dev/hda   (hd0)
/dev/hdb2  (hd1,1)
/dev/hda3  (hd0,2)

But what if the disc on which I install the system is connected via USB?

Last edited by Jirka (2007-03-16 23:02:28)


Linux is like a teepee. No Windows, no Gates, Apache inside!!!

#5 2007-03-16 23:01:49

fishonadish
Member
Registered: 2006-11-04
Posts: 125

Re: Error 23: Error while parsing number (solved)

USB disks will be /dev/sda etc to Linux (and therefore may be separate from internal drives that are labelled hda etc), but Grub counts them all as hd0,hd1 etc.

Grub will see the drives in the order the BIOS boots them, I think. 
In my case I have Grub on the MBR of my external USB hd and BIOS set to boot first the external drive, then the internal HD.  That means the USB drive is hd0 and the internal HD is hd1 as far as grub is concerned.
Alternatively, if Grub were on the MBR of my internal drive and BIOS set to boot that first, then the USB drive would be hd1, and the internal hd0.

Also, if you’re booting from USB you’ll need to have the USB hook in your mkinitcpio.
I also need to use ‘rootdelay=[number]’ (8 in my case) so that it’ll wait for my USB device to appear before trying to mount the root partition from it — I don’t know if this is always needed or if my USB HD is particularly slow, but bear it in mind if you get a kernel panic because the root device can’t be found.

#6 2007-03-17 07:36:43

Jirka
Member
From: Czech Rep.
Registered: 2007-03-13
Posts: 21

Re: Error 23: Error while parsing number (solved)

fishonadish wrote:

USB disks will be /dev/sda etc to Linux (and therefore may be separate from internal drives that are labelled hda etc), but Grub counts them all as hd0,hd1 etc.

Grub will see the drives in the order the BIOS boots them, I think. 
In my case I have Grub on the MBR of my external USB hd and BIOS set to boot first the external drive, then the internal HD.  That means the USB drive is hd0 and the internal HD is hd1 as far as grub is concerned.
Alternatively, if Grub were on the MBR of my internal drive and BIOS set to boot that first, then the USB drive would be hd1, and the internal hd0.

Also, if you’re booting from USB you’ll need to have the USB hook in your mkinitcpio.
I also need to use ‘rootdelay=[number]’ (8 in my case) so that it’ll wait for my USB device to appear before trying to mount the root partition from it — I don’t know if this is always needed or if my USB HD is particularly slow, but bear it in mind if you get a kernel panic because the root device can’t be found.

Ok, thanks. And how GRUB counts partitions? I have it on disc via USB and partitions are:

1. partition — boot
2. partition — swap
3. partition — root and others….

So which number should I use? Because there is it in format (hd0,1), (hd2,0) etc.

And what depends ‘rootdelay=[number]’ (in your case 8)? Which number should I use?

Many thanks


Linux is like a teepee. No Windows, no Gates, Apache inside!!!

#7 2007-03-17 09:23:15

fishonadish
Member
Registered: 2006-11-04
Posts: 125

Re: Error 23: Error while parsing number (solved)

Grub starts from 0, whereas linux devices name partitions from 1.

Thus /dev/hda1 = (hd0,0)

In your case it’ll be (hd#,0) because your boot partition is the first partition.

The rootdelay thing might not be necessary — it’s just in case your devices don’t appear in time when you boot.  The number is the number of seconds to wait for the device, so you want it to be as low as possible.  So, 8 works for me, but any lower and I get a kernel panic because the USB device hasn’t appeared yet.  I wouldn’t worry about rootdelay until you have your grub entries sorted out and tested without it first, though.

More importantly, be sure you have the USB hook in your initcpio, because it definitely won’t boot without it.

#8 2007-03-17 13:50:20

Jirka
Member
From: Czech Rep.
Registered: 2007-03-13
Posts: 21

Re: Error 23: Error while parsing number (solved)

I’m on the good way with your help!

Now I got Kernel panic, because root directory was not found, but I have at least been booted!

I have a two stupid questions, which could solve it (I really hope so!):

on which partition should I bootloader install? I know, I it’s a stupid rookie question, but I have it install on my first partition where is the boot (I have it set up in the configuration of bootloader install). Is it right?

And the second question is: right before install it asks where to install and gives this possibilities:

/dev/sda
/dev/sda1
/dev/sda2
/dev/sda3

and my partitions are:

1. boot
2. swap
3. root and others

Thank you all


Linux is like a teepee. No Windows, no Gates, Apache inside!!!

#9 2007-03-17 19:52:00

fishonadish
Member
Registered: 2006-11-04
Posts: 125

Re: Error 23: Error while parsing number (solved)

If you’re getting as far as a kernel panic, then you’re getting past the bootloader, so where ever you have it now is fine, if you’re happy with it.

Can you post the contents of your /boot/grub/menu.lst file?  Might be able to see why you’re getting a kernel panic.

Last edited by fishonadish (2007-03-17 20:00:19)

#10 2007-03-17 20:04:20

Jirka
Member
From: Czech Rep.
Registered: 2007-03-13
Posts: 21

Re: Error 23: Error while parsing number (solved)

fishonadish wrote:

If you’re getting as far as a kernel panic, then you’re getting past the bootloader, so where ever you have it now is fine, if you’re happy with it.

Can you post the contents of your /boot/grub/menu.lst file?  Might be able to see why you’re getting a kernel panic.

I have used the LILO instead the GRUB, so it’s solved now.

But I thank you all.


Linux is like a teepee. No Windows, no Gates, Apache inside!!!

Любимые цитаты юниксоида

  1. Две вещи, изменившие миp, были созданы в Беpкли: LSD и Unix. Вряд ли это случайное совпадение // Jeremy S. Anderson
  2. Linux is like a wigwam — no windows, no gates, apache inside.
  3. An NT box can be administered by an idiot, and usually is.
  4. Don’t drive faster than your angel can fly.
  5. Contrary to popular belief, Unix is user friendly. It just happens to be very selective about who it decides to make friends with.
  6. Unix is very simple, but it takes a genius to understand the simplicity
  7. The bus station is the place where the bus stops. The train station is the place where the train stops. So if I have a workstation…
  8. All computers wait at the same speed.
  9. Great minds discuss ideas, Average minds discuss events, Small minds discuss people.
  10. /var/log/messages: «Warning! /var running out of spac»
  11. War is God’s way of teaching geography to Americans
  12. Being a System Administrator is like being the phone company. Nobody ever calls up to say «You know, this thing works great. Thanks!»
  13. IF YOU CAN’T SSH TO IT, IT’S NOT THERE, GOT THAT?
  14. Any setuid root program that does an exec() somewhere is just a less user friendly version of su.
  15. All programs are poems, it’s just that not all programmers are poets.
  16. It is simple to make things. It is hard to make things simple.

Junior-а пустили на production по SSH под root-ом

Junior-а пустили на production по SSH под root-ом

Posted in Цитатник.

05.08.2009

[SOLVED]Apache problem

  • Reply with quote

[SOLVED]Apache problem

Probably after lust upgrade (i dont know exactly is it true or not) my http server does not want to start. I am not expert in that so can anybody help me?
My system is M4 32 bit

Logs below. If any other info will be necessery, I send it ASAP:

Code: Select all
[root@mackowiak ~]# service httpd restart         
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root@mackowiak ~]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: signal) since pon 2015-03-16 10:34:41 CET; 16s ago
  Process: 9029 ExecStop=/usr/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 9028 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=SEGV)
 Main PID: 9028 (code=killed, signal=SEGV)

mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Failed to start The Apache HTTP Server.
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Unit httpd.service entered failed state.
[root@mackowiak ~]# journalctl -xn
-- Logs begin at nie 2015-02-08 08:56:43 CET, end at pon 2015-03-16 10:34:42 CET. --
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Starting The Apache HTTP Server...
mar 16 10:34:41 mackowiak.no-ip.org kernel: httpd[9028]: segfault at f ip b54c71a9 sp bfb5a8f0 error 6 in apc-mmap.so[b54b00
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Failed to start The Apache HTTP Server.
mar 16 10:34:41 mackowiak.no-ip.org systemd[1]: Unit httpd.service entered failed state.

And httpd log:

Code: Select all
[root@mackowiak httpd]# cat error_log
[Mon Mar 16 10:47:00.428573 2015] [ssl:warn] [pid 9685] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Mar 16 10:47:00.428722 2015] [ssl:warn] [pid 9685] AH01909: RSA certificate configured for mackowiak.ddns.net:443 does NOT include an ID which matches the server name
[Mon Mar 16 10:47:00.481727 2015] [auth_digest:notice] [pid 9685] AH01757: generating secret for digest authentication ...
[Mon Mar 16 10:47:00.483539 2015] [lbmethod_heartbeat:notice] [pid 9685] AH02282: No slotmem from mod_heartmonitor
[Mon Mar 16 10:47:00.484720 2015] [ssl:warn] [pid 9685] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Mon Mar 16 10:47:00.484754 2015] [ssl:warn] [pid 9685] AH01909: RSA certificate configured for mackowiak.ddns.net:443 does NOT include an ID which matches the server name
PHP Fatal error:  PHP Startup: apc_mmap: mkstemp on /var/lib/php-apc/apc.I4jPHY failed: in Unknown on line 0
PHP Fatal error:  PHP Startup: apc_fcntl_create: open(/var/lib/php-apc/.apc.HUmWOZ, O_RDWR|O_CREAT, 0666) failed: in Unknown on line 0

Please help me, becuse my http based OwnCloud is extrimely necessery for me!

[EDIT]

I wanted reinstall httpd but I got VERY strange result:

Code: Select all
[root@mackowiak ~]# urpme httpd
unknown package: httpd

Last edited by mackowiakp on Mar 17th, ’15, 08:23, edited 1 time in total.

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby jkerr82508 » Mar 16th, ’15, 14:08

I’m no expert, but my apache server is still functioning correctly on my 64 bit mga4 system.

I’m not sure that it will help, but try

Code: Select all
systemctl start httpd

The apache packages are named «apache»

Code: Select all
$ rpm -qa | grep apache
apache-commons-lang-2.6-11.mga4
apache-doc-2.4.7-5.6.mga4
apache-commons-codec-1.8-1.mga4
apache-mod_userdir-2.4.7-5.6.mga4
apache-2.4.7-5.6.mga4
apache-commons-logging-1.1.3-2.mga4

It should not be necessary and is unlikely to help, but to re-install packages one would use:

Code: Select all
urpmi --replacepkgs

You might want to check the updates that you have installed since the server was last functioning correctly to see if you can identify one that may have caused the problem:

http://advisories.mageia.org/

Jim

jkerr82508
 
Posts: 946
Joined: Mar 26th, ’11, 01:34
Location: Fife, Scotland

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 14:15

So my outputs:

Code: Select all
[root@mackowiak ~]# systemctl start httpd
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
Code: Select all
[root@mackowiak ~]# rpm -qa | grep apache
[root@mackowiak ~]#

Totally strange because physically Apache is installed but not listed from CLI and MCC.

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby jkerr82508 » Mar 16th, ’15, 14:57

mackowiakp wrote:

Code: Select all
[root@mackowiak ~]# rpm -qa | grep apache
[root@mackowiak ~]#

Totally strange because physically Apache is installed but not listed from CLI and MCC.

Try rebuilding the rpm data base

Code: Select all
# rm -f /var/lib/rpm/__db*
# rpm --rebuilddb

Jim

jkerr82508
 
Posts: 946
Joined: Mar 26th, ’11, 01:34
Location: Fife, Scotland

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 15:42

I try:

Code: Select all
# rm -f /var/lib/rpm/__db*
# rpm --rebuilddb

and the result is the same:

Code: Select all
[root@mackowiak ~]# rpm -qa | grep apache
[root@mackowiak ~]#

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby jkerr82508 » Mar 16th, ’15, 17:27

Are you sure that apache is still installed? It seems that it may not be.

What is the result of

Code: Select all
urpmi --test apache

I expect it to report that apache is installable, which would suggest that somehow apache may have been removed. I can’t think of any other explanation. Have you executed «urpme —auto-orphans» recently, or removed any other packages?

At this point re-installing apache may be appropriate, but we really need a more competent troubleshooter than I, to help find out how/why it was removed.

Jim

jkerr82508
 
Posts: 946
Joined: Mar 26th, ’11, 01:34
Location: Fife, Scotland

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 17:40

Now I know. Problem is with apache-mod_php-3:5.5.22-1.2.mga4.i586. If I urpme this module, http server starts normaly. If I install it — crashes. Any idea why?

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland


  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 18:05

Similar but not the same. It is Couldron bug. Is any workaround? How to live without PHP in Apache?

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby jkerr82508 » Mar 16th, ’15, 18:26

As stated in the whiteboard it also applies to mga4. Have you tried the work-around described regarding opcache?

Jim

jkerr82508
 
Posts: 946
Joined: Mar 26th, ’11, 01:34
Location: Fife, Scotland

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 18:30

No. Any link how can I do it? Or is any previously working version of php_mod?

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 18:34

But when I install owncloud, it still wants to install current repo php_mod. So my basic WEB app does not work. Tragedy….

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby jkerr82508 » Mar 16th, ’15, 18:41

I missed this line earlier:

mar 16 10:34:41 mackowiak.no-ip.org kernel: httpd[9028]: segfault at f ip b54c71a9 sp bfb5a8f0 error 6 in apc-mmap.so[b54b00

I’m not familiar with php-apc (which installs the file apc-mmap.so) but it seems to be related to caching:

APC was conceived of to provide a way of boosting the performance of PHP on
heavily loaded sites by providing a way for scripts to be cached in a compiled
state, so that the overhead of parsing and compiling can be almost completely
eliminated.

Jim

jkerr82508
 
Posts: 946
Joined: Mar 26th, ’11, 01:34
Location: Fife, Scotland

  • Reply with quote

Re: Apache problem

Postby jkerr82508 » Mar 16th, ’15, 18:46

mackowiakp wrote:No. Any link how can I do it? Or is any previously working version of php_mod?

I assume that one would remove php-opcache and install php-fpm.

Jim

jkerr82508
 
Posts: 946
Joined: Mar 26th, ’11, 01:34
Location: Fife, Scotland

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 18:50

After fresh instalation of Apache with php_mod I got such results in logs:

Code: Select all
[root@mackowiak ~]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: signal) since pon 2015-03-16 17:47:07 CET; 1min 19s ago
  Process: 10103 ExecStop=/usr/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 10102 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=SEGV)
 Main PID: 10102 (code=killed, signal=SEGV)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"

mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Starting The Apache HTTP Server...
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Failed to start The Apache HTTP Server.
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Unit httpd.service entered failed state.
[root@mackowiak ~]# journalctl -xn
-- Logs begin at nie 2015-02-08 08:56:43 CET, end at pon 2015-03-16 17:48:01 CET. --
mar 16 17:46:58 mackowiak.no-ip.org urpmi[10071]: transaction on / (remove=0, install=0, upgrade=1)
mar 16 17:46:59 mackowiak.no-ip.org perl[10071]: [RPM] apache-mod_php-3:5.5.22-1.2.mga4.i586 installed
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Starting The Apache HTTP Server...
mar 16 17:47:07 mackowiak.no-ip.org kernel: httpd[10102]: segfault at f ip b553b1a9 sp bfc43e50 error 6 in apc-mma
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Failed to start The Apache HTTP Server.
mar 16 17:47:07 mackowiak.no-ip.org systemd[1]: Unit httpd.service entered failed state.

Any idea to get Apache working on M4?

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby lula » Mar 16th, ’15, 20:18

mackowiakp wrote:

Code: Select all
PHP Fatal error:  PHP Startup: apc_mmap: mkstemp on /var/lib/php-apc/apc.I4jPHY failed: in Unknown on line 0

Did you check if the directory/var/lib/php-apc exists and is writable for the webserver?

lula
 
Posts: 12
Joined: Feb 10th, ’12, 21:32

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 20:26

No such dir …. :-(

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby lula » Mar 16th, ’15, 20:31

Just create it as root and chown it to the webserver’s user (don’t know by heart on Mageia, might be httpd or wwwrun, not quite sure). And by the way, the package containing the webserver is not httpd but apache.

lula
 
Posts: 12
Joined: Feb 10th, ’12, 21:32

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 20:44

I just urpme/urpmi php-apc ;-)

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby doktor5000 » Mar 16th, ’15, 21:39

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks

User avatar
doktor5000
 
Posts: 17196
Joined: Jun 4th, ’11, 10:10
Location: Leipzig, Germany
  • ICQ
  • YIM

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 16th, ’15, 21:47

At this moment is not solved yet. Tomorrow I will try to recover my OwnCloud instance. If it will work, the thread will be marked as solved.

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland

  • Reply with quote

Re: Apache problem

Postby doktor5000 » Mar 16th, ’15, 22:19

That’s a matter for a separate thread — this one is about apache itself not starting due to some PHP modules.

Does your apache start now or not?

User avatar
doktor5000
 
Posts: 17196
Joined: Jun 4th, ’11, 10:10
Location: Leipzig, Germany
  • ICQ
  • YIM

  • Reply with quote

Re: Apache problem

Postby mackowiakp » Mar 17th, ’15, 08:23

Yep. You are right (as always ;-) ). So — SOLVED

Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause

mackowiakp
 
Posts: 601
Joined: May 23rd, ’13, 07:32
Location: Gdynia, Poland


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

This question is left open because it was historically allowed, but it is not considered a good, on-topic question for this site and would be closed if asked today.

More info: https://unix.stackexchange.com/faq

I saw a t-shirt reading ‘anything you say gets piped to /dev/null’, not incredibly funny but amusing at least.

Does anyone else have any good one-liner *nix jokes?

  • untagged

1

  • these are amusing :) i love the way us geeks have the rather awesome sense of humour! fsk the win!

    – user4806

    Feb 16, 2011 at 9:39

Comments disabled on deleted / locked posts / reviews
 | 

32 Answers

Linux is like a wigwam. No windows, no gates, apache inside!

Linux comes from the community, Windows comes from a box.

View previous topic :: View next topic  
Author Message
Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Sat Feb 11, 2012 6:40 am    Post subject: [SOLVED] How to set PORT_LOGDIR_CLEAN variable? Reply with quote

How to set PORT_LOGDIR_CLEAN variable properly ?

The man page

Code:
PORT_LOGDIR_CLEAN

              This variable should contain a command for portage to call in order to clean PORT_LOGDIR.  The  command  string  should  contain  a  ${PORT_LOGDIR}

              place-holder that will be substituted with the value of that variable. This variable will have no effect unless clean-logs is enabled in FEATURES.

my make.conf:

Code:
FEATURES=»distlocks parallel-fetch ccache candy fail-clean clean-logs compress-build-logs ebuild-locks parallel-install»

GENTOO_MIRRORS=»http://gentoo.osuosl.org http://mirrors.ludost.net/gentoo/ ftp://mirrors.ludost.net/gentoo/ http://gentoo.osuosl.org http://mirror.gentoo.no/ http://gentoo.ynet.sk/pub http://www.ibiblio.org/pub/Linux/distributions/gentoo http://distfiles.gentoo.bg/ http://ftp.gentoo.bg/»

SYNC=»rsync://rsync.gentoo.org/gentoo-portage»

CCACHE_SIZE=»5G»

PORTAGE_TMPDIR=/var/tmp/

PORTAGE_COMPRESS = «bzip2»

PORTAGE_COMPRESS_FLAGS = «-9»

AUTOCLEAN=»yes»

PORT_LOGDIR=»/var/log/portage/buildlog»

PORT_LOGDIR_CLEAN=»${PORT_LOGDIR}»

PORTAGE_ELOG_SYSTEM=»save»

PORTAGE_ELOG_CLASSES=»warn error info log qa»

The error i receive:

Code:

* PORT_LOGDIR_CLEAN returned 127

 * See the make.conf(5) man page for PORT_LOGDIR_CLEAN usage instructions.

The error is the same with :

Code:
PORT_LOGDIR_CLEAN=»/var/log/portage/buildlog»

What am i doing wrong? :?
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Last edited by Kollin on Sun Feb 12, 2012 12:57 am; edited 1 time in total

Back to top

View user's profile Send private message

sebaro
Veteran
Veteran

Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Sat Feb 11, 2012 10:17 am    Post subject: Reply with quote

The PORT_LOGDIR_CLEAN variable should contain a command, eg:

PORT_LOGDIR_CLEAN=»cat /dev/null > ${PORT_LOGDIR}».
Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Sat Feb 11, 2012 10:34 am    Post subject: Reply with quote

sebaro wrote:
The PORT_LOGDIR_CLEAN variable should contain a command, eg:

PORT_LOGDIR_CLEAN=»cat /dev/null > ${PORT_LOGDIR}».

Thank you!

What exactly «cat /dev/null > ${PORT_LOGDIR}» does?

Empties ${PORT_LOGDIR} may be ?
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

sebaro
Veteran
Veteran

Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Sat Feb 11, 2012 4:31 pm    Post subject: Reply with quote

Kollin wrote:
What exactly «cat /dev/null > ${PORT_LOGDIR}» does?

Empties ${PORT_LOGDIR} may be ?

Yes.

Back to top

View user's profile Send private message

dol-sen
Developer
Developer

Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Feb 11, 2012 4:44 pm    Post subject: Reply with quote

The PORT_LOGIR_CLEAN command is defaulted if it is not defined. This is the default value. Edit it and save in make.conf if you need it to be different. Otherwise leave it undefined so it will use the default.

Code:
PORT_LOGDIR_CLEAN = ‘find «${PORT_LOGDIR}» -type f ! -name «summary.log*» -mtime +7 -delete’

What it does is find all files in «${PORT_LOGDIR}» except summary.log that are older than 7 days and deletes them.

If you want/need more flexibility than that. I have an emaint re-write waiting for merge into portage. In that re-write I moved this auto log cleaning code out of emerge and into an emaint module where it belongs. I have added options to adjust the the number of days or remove it completely if you want all pkg-logs deleted. There is also a pretend option so you can see what it would delete. Emerge will then run that new emaint module at the end of every emerge run using the default values.

You can try it out if you like. git clone https://github.com/dol-sen/portage

It does not need to be installled, you can run it from the checkout if you set the PATH & PYTHON_PATH so it can find any of the bin, pym modules.
_________________
Brian

Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog

layman, gentoolkit, CoreBuilder, esearch…

Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Sun Feb 12, 2012 12:57 am    Post subject: Reply with quote

dol-sen wrote:
The PORT_LOGIR_CLEAN command is defaulted if it is not defined. This is the default value. Edit it and save in make.conf if you need it to be different. Otherwise leave it undefined so it will use the default.

Code:
PORT_LOGDIR_CLEAN = ‘find «${PORT_LOGDIR}» -type f ! -name «summary.log*» -mtime +7 -delete’

What it does is find all files in «${PORT_LOGDIR}» except summary.log that are older than 7 days and deletes them.

If you want/need more flexibility than that. I have an emaint re-write waiting for merge into portage. In that re-write I moved this auto log cleaning code out of emerge and into an emaint module where it belongs. I have added options to adjust the the number of days or remove it completely if you want all pkg-logs deleted. There is also a pretend option so you can see what it would delete. Emerge will then run that new emaint module at the end of every emerge run using the default values.

You can try it out if you like. git clone https://github.com/dol-sen/portage

It does not need to be installled, you can run it from the checkout if you set the PATH & PYTHON_PATH so it can find any of the bin, pym modules.

Thank you dol-sen for the good explanation! Now PORT_LOGDIR_CLEAN works.

I may give emaint a try but isn’t it ‘eselect python set python3’ enough for running it ?
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

dol-sen
Developer
Developer

Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sun Feb 12, 2012 10:50 pm    Post subject: Reply with quote

No, it doesn’t require a specific python. Changing the PATH and PYTHONPATH environment variables just makes it so that the emaint script and the python modules can be found since they are not installed in a path where they could be found.

Like portage it will work in any python >=2.6
_________________
Brian

Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog

layman, gentoolkit, CoreBuilder, esearch…

Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Mon Feb 13, 2012 3:33 pm    Post subject: Reply with quote

dol-sen wrote:
No, it doesn’t require a specific python. Changing the PATH and PYTHONPATH environment variables just makes it so that the emaint script and the python modules can be found since they are not installed in a path where they could be found.

Like portage it will work in any python >=2.6

I made git clone, now what to do next ? :)
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

dol-sen
Developer
Developer

Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Mon Feb 13, 2012 3:54 pm    Post subject: Reply with quote

I created a file: testpath

Code:

export PATH=»/home/brian/Dev/git/portage/bin:/home/brian/Dev/git/layman/bin:${PATH}»

export PYTHONPATH=»/home/brian/Dev/git/portage/pym:/home/brian/Dev/git/layman/pym:${PYTHONPATH}»

Edit it for your locations and save it in the base directory of the checkout. Then in a terminal

Code:
cd to/the/checkout

source ./testpath

emaint -h

emaint -p logs


_________________
Brian

Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog

layman, gentoolkit, CoreBuilder, esearch…

Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Mon Feb 13, 2012 4:24 pm    Post subject: Reply with quote

dol-sen wrote:
I created a file: testpath

Code:

export PATH=»/home/brian/Dev/git/portage/bin:/home/brian/Dev/git/layman/bin:${PATH}»

export PYTHONPATH=»/home/brian/Dev/git/portage/pym:/home/brian/Dev/git/layman/pym:${PYTHONPATH}»

Edit it for your locations and save it in the base directory of the checkout. Then in a terminal

Code:
cd to/the/checkout

source ./testpath

emaint -h

emaint -p logs

Something is not right!

I don’t have ./layman directory in my clone and i don’t have ./testpath file also :?

when i run ./emaint from console i get:

Code:
# ./emaint

  File «./emaint», line 36

    print osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), «pym»)

            ^

SyntaxError: invalid syntax


_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

dol-sen
Developer
Developer

Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Mon Feb 13, 2012 4:48 pm    Post subject: Reply with quote

That file is not in the clone, make the file, remove the layman portion. it is not finding the python modules in the checkout until you add it to the pythonpath.
_________________
Brian

Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog

layman, gentoolkit, CoreBuilder, esearch…
Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Mon Feb 13, 2012 4:59 pm    Post subject: Reply with quote

dol-sen wrote:
That file is not in the clone, make the file, remove the layman portion. it is not finding the python modules in the checkout until you add it to the pythonpath.

May be I’m too dumb for this!

Here is the testpath file that i created into /home/kollin/git:

Code:

export PATH=»/home/kollin/git/portage/bin:/home/kollin/git/portage/bin:${PATH}»

export PYTHONPATH=»/home/kollin/git/portage/pym:/home/kollin/git/portage/pym:${PYTHONPATH}»

now I can run emaint without ./ in front of it but the error is the same .
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

dol-sen
Developer
Developer

Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Feb 14, 2012 12:12 am    Post subject: Reply with quote

I appologize for not looking closer at your error. It turned out i missed a few things for python-3 compatibility.

Fixed. Thank you for testing it. It is for that reason I am asking people to test it.

So, update your checkout with git pull, then try testing it again.

As for the testpath file it can be shortened a bit, there is no need for the same path to be twice.

Code:
export PATH=»/home/kollin/git/portage/bin:${PATH}»

export PYTHONPATH=»/home/kollin/git/portage/pym:${PYTHONPATH}»


_________________
Brian

Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog

layman, gentoolkit, CoreBuilder, esearch…

Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Tue Feb 14, 2012 12:24 am    Post subject: Reply with quote

dol-sen wrote:

So, update your checkout with git pull, then try testing it again.

Now it works!

Here is the result of emaint -c all

Code:
# emaint  -c all

/home/kollin/git/portage/pym

Checking binhost for problems

    [ <=>                                                                      ]

Finished

Checking cleanconfig for problems

100% [========================================================================>]

Checksums did not match:

  /etc/conf.d/consolefont

  /etc/conf.d/modules

  /etc/conf.d/ntpd

  /etc/conf.d/xdm

  /etc/default/grub

  /etc/denyhosts.conf

  /etc/dhcpcd.conf

  /etc/hosts

  /etc/init.d/noip

  /etc/inittab

  /etc/locale.gen

  /etc/ntp.conf

  /etc/portage/savedconfig/sys-apps/busybox-1.19.3-r1

  /etc/rc.conf

  /etc/sysctl.conf

  /usr/share/config/kdm/kdmrc

————————————

  Total 16 Checksums did not match

Finished

Checking cleanresume for problems

100% [========================================================================>]

resume list ‘resume’ contains 141 packages

resume list ‘resume_backup’ contains 475 packages

Finished

Checking logs for problems

Finished

Checking movebin for problems

    [   <=>                                                                    ]

Finished

Checking moveinst for problems

100% [========================================================================>]

‘app-crypt/gnupg-2.0.18’ has outdated metadata

‘app-text/convertlit-1.8-r1’ has outdated metadata

‘x11-libs/qt-core-4.8.0-r1’ has outdated metadata

Finished

Checking vdbkeys for problems

    [<=>                                                                       ]

Finished

Checking world for problems

100% [========================================================================>]

Should i be concerned for «Checksums did not match:» or » outdated metadata» parts ?

I’ll try fixing things after i finish my world update.
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

dol-sen
Developer
Developer

Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Feb 14, 2012 4:17 am    Post subject: Reply with quote

The checksums did not match can be cleaned up using -f, —fix. It is a new module prompted into creation from a user that found a bunch of mismatches in his. They are not critical, but cleaning them up is good. I had over 40 on mine. Another dev that had a very old install had nearly 200 to clean out.

The metadata isn’t critical, but can also be fixed. It is normally due to changes in the ebuild.
_________________
Brian

Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog

layman, gentoolkit, CoreBuilder, esearch…

Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Tue Feb 14, 2012 11:28 am    Post subject: Reply with quote

dol-sen wrote:
The checksums did not match can be cleaned up using -f, —fix. It is a new module prompted into creation from a user that found a bunch of mismatches in his. They are not critical, but cleaning them up is good. I had over 40 on mine. Another dev that had a very old install had nearly 200 to clean out.

The metadata isn’t critical, but can also be fixed. It is normally due to changes in the ebuild.

My concern with chekcsums is that all this files have personalized settings. I’m afraid to lose my personalized configs. What exactly those checksums are?
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

dol-sen
Developer
Developer

Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Feb 14, 2012 3:12 pm    Post subject: Reply with quote

That file is what emerge uses to track the files in CONFIG_PROTECT to help eliminate duplicating files waiting to be updated. The md5sums that do not match what is actually installed are ready to be cleaned. Even if you deleted the whole file, it would not kill your system. Just give you a lot more files for etc-update/dispatch-config processing.
_________________
Brian

Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog

layman, gentoolkit, CoreBuilder, esearch…
Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Tue Feb 14, 2012 3:39 pm    Post subject: Reply with quote

dol-sen wrote:
That file is what emerge uses to track the files in CONFIG_PROTECT to help eliminate duplicating files waiting to be updated. The md5sums that do not match what is actually installed are ready to be cleaned. Even if you deleted the whole file, it would not kill your system. Just give you a lot more files for etc-update/dispatch-config processing.

I did emaint -f all and it worked perfectly! No config drama!

Very useful tool, thank you.

I hope it’ll soon hit the portage :D
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

dol-sen
Developer
Developer

Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Feb 14, 2012 4:28 pm    Post subject: Reply with quote

emaint is already in portage. This is a rewrite to modularize it better. I also added 2 new modules that are not in portage, cleanconfig and logs (which I moved from from inside emerge).
_________________
Brian

Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog

layman, gentoolkit, CoreBuilder, esearch…
Back to top

View user's profile Send private message

Kollin
Veteran
Veteran

Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Tue Feb 14, 2012 10:22 pm    Post subject: Reply with quote

dol-sen wrote:
emaint is already in portage. This is a rewrite to modularize it better. I also added 2 new modules that are not in portage, cleanconfig and logs (which I moved from from inside emerge).

You are really great with your work, I hope that pothole will get further development also ;)
_________________
«Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment.»

«Linux is like a wigwam — no windows, no gates, apache inside…»

Back to top

View user's profile Send private message

Display posts from previous:   

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 vote in polls in this forum

Понравилась статья? Поделить с друзьями:
  • No suitable graphics card found terraria как исправить windows 7
  • No such partition grub rescue исправить windows 10
  • No such file при загрузке windows
  • No speakers or headphones are plugged in windows 10 что делать
  • No sound device detected windows 10