WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LAMP environment  (Read 20186 times)

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #15 on: April 19, 2022, 05:55:44 AM »
Yes I was missing bash.

Thanks
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #16 on: April 19, 2022, 06:02:26 AM »
I get another error in my make command that said :

/bin/sh: can't open '/home/tc/apacheBuild/httpd-2.4.20/shlibtool' : No such file or directory.

Am I missing another extension ?
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #17 on: April 19, 2022, 06:57:57 AM »
OK I just needed to ./configure and then make
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #18 on: April 19, 2022, 10:19:01 AM »
How can i create a extention .tcz with apache.I saw a video on how to create a extension (link : https://www.youtube.com/watch?v=yRm-YRuLFio) but my question is how do I keep all my compiled apache because with the command make install apache's file are everywhere. Do I need to move all the apache files into one directory ?
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11661
Re: LAMP environment
« Reply #19 on: April 19, 2022, 10:40:35 AM »
Hi MrToga
The  ,build  script found here handles ./configure, compiling, and packaging for you:
http://tinycorelinux.net/8.x/armv7/tcz/src/apache2.4/

Download these files from the link:
Code: [Select]
apache2.4.build                                    08-Jul-2016 14:02                4656
apache2.4.ins                                      31-May-2016 06:36                 492
httpd-2.4.20.tar.gz                                02-May-2016 02:38             8299011
httpd-2.4.23.tar.bz2                               06-Jul-2016 08:11             6351875
httpd.conf                                         19-Oct-2015 02:00               18552
The script is currently set up to compile version  2.4.23.  Edit the script and change that to  2.4.20 (2 places)
if you want the older version for some reason.

Make the following 2 scripts executable:
Code: [Select]
chmod 775 apache2.4.build
chmod 775 apache2.4.ins

This line in the  .build  script tells  make  where to install the files so they are not scattered all over the place:
Code: [Select]
make install DESTDIR=$TMPDIR

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #20 on: April 20, 2022, 04:58:32 AM »
Hi it worked thank you.

So now I was wondering since I've got apache2.4.tcz if i could put this file in my /mnt/mmcblk0p2/tce/optimal directory but I saw a <extension name>.tcz.dep and i don't have it,
It is okay or do i really need this extension to make apache permanent on my rasp.
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #21 on: April 20, 2022, 06:57:38 AM »
OK so I run the script i put  apache2.4.tcz (also apache2.4-dev.tcz and apache2.4-doc.tcz) in /mnt/mmcblk0p2/tce/oprimal and in the onboot.lst file but I don't find the file that run my apache server.

Any tought ?
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #22 on: April 20, 2022, 08:17:57 AM »
update :

I found that in the script there are 2 line in the .build that are commented in the section service script :
#mkdir -p $TMPDIR/usr/local/etc/init.d
#cp apache2.4.srv $TMPDIR/usr/local/etc/init.d/apache2.4
 
So i tried to uncomment them and run the script but I don't find the etc repertory in /tmp/tcloop/apache2.4/usr/local/ .
Am I searching in the wrong area?
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11661
Re: LAMP environment
« Reply #23 on: April 20, 2022, 09:00:05 AM »
Hi MrToga
I found that in the script there are 2 line in the .build that are commented in the section service script : ...
You can comment those lines out again.
The file it refers to is a systemd service script and does not exist. Tinycore does not use systemd.

... I saw a <extension name>.tcz.dep and i don't have it, ...
That is the dependency file for apache. It is used by the operating system to load other extensions Apache needs
in order to run.
Place this file in your  /mnt/mmcblk0p2/tce/optional  directory.
http://tinycorelinux.net/8.x/armv7/tcz/apache2.4.tcz.dep

Run this command:
Code: [Select]
tce-load -w apr-util openssl pcre
... (also apache2.4-dev.tcz and apache2.4-doc.tcz) in /mnt/mmcblk0p2/tce/oprimal and in the onboot.lst ...
You don't need those to run apache.

Reboot your RPi and then try starting apache as mentioned here:
http://tinycorelinux.net/8.x/armv7/tcz/apache2.4.tcz.info

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #24 on: April 20, 2022, 09:38:58 AM »
Hi Rich,

After I've done what you told me I try to use the .info and saw the command to start apache but when I try the command I get this error :
sudo apachectl -k start
sudo: apachectl: command not found
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11661
Re: LAMP environment
« Reply #25 on: April 20, 2022, 09:46:58 AM »
Hi MrToga
Does this command find apachectl:
Code: [Select]
ls -l /usr/local/sbin/apachectl
Also, the build script should have created  apache2.4.tcz.list.  Please attach a copy of that to your next post.

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #26 on: April 20, 2022, 09:53:04 AM »
ls -l /usr/local/sbin/apachectl don't find apachectl
And in the apache2.4.tcz.list I don't find apachectl neither
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11661
Re: LAMP environment
« Reply #27 on: April 20, 2022, 10:05:16 AM »
Hi MrToga
Somewhere an error occurred and and nothing was built. This is what that file should look like:
http://tinycorelinux.net/8.x/armv7/tcz/apache2.4.tcz.list

Run this:
Code: [Select]
ls -l /usr/local/tce.installed > installed.txt
Attach  installed.txt  to your next post.

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: LAMP environment
« Reply #28 on: April 20, 2022, 10:09:51 AM »
Here
It's fine

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11661
Re: LAMP environment
« Reply #29 on: April 20, 2022, 10:20:04 AM »
Hi MrToga
I suspect some  -dev  extensions may be missing, possibly  openssl.  Look in the build directory for a  .log  file.
It's probably called  config.log.  Attach that to your next post.