Page 1 of 2
[Solved] LAMP Server?
Posted: 03 Jan 2013, 18:34
by Bogdan
Hi i'm currently downloading Porteus, and I want to know is there instructions on how to install functional localhost server with apache, php, mysql and phpmyadmin. I tried searching forum but i can't find it... Thanks
Re: LAMP Server?
Posted: 03 Jan 2013, 19:31
by Hamza
Clean slacky pkgs
Update local repository
Download httpd (apache)
Download mysql
Download php
Install everything (optional)
Make a final module xzm for future boot
Code: Select all
mkdir -p /tmp/lamp && installpkg -root /tmp/lamp /var/slackyd/*.txz && dir2xzm /tmp/lamp /tmp/lamp-server.xzm && rm -Rf /tmp/lamp /var/slackyd/*.txz
Your xzm module will be put into /tmp.
Must be do from root.
Re: LAMP Server?
Posted: 03 Jan 2013, 21:23
by Bogdan
thanks for quick answer, i have one more problem i can't go to internet in porteus because i have a mobile broadband 3g modem and when i click on "Add new mobile broadband connection" i get an error something like "Cannot add mobile broadband" and "apn 32" error or something like that...
Re: LAMP Server?
Posted: 03 Jan 2013, 21:27
by Hamza
You're welcome
This is about another subject. Please make a new topic about this. I would suggests you to follows
this thread
Re: LAMP Server?
Posted: 03 Jan 2013, 21:44
by Bogdan
Nevermind, i solved it. Thanks again!
Re: LAMP Server?
Posted: 03 Jan 2013, 21:57
by Bogdan
Just one more thing Hamza, i will need a phpmyadmin, is it included in packages you listed for LAMP Server
Re: LAMP Server?
Posted: 03 Jan 2013, 22:05
by Hamza
No but here's sample commands to get it from editors.
I'm assuming phpMyAdmin 3.5.5 is the last version and you want PMA to be reach-able from your-domain.net/phpmyadmin
Go to default web root directory. This could change depending on your configuration.
Download phpMyAdmin 3.5.5
Code: Select all
wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/3.5.5/phpMyAdmin-3.5.5-english.zip
Unzip the archive
Code: Select all
unzip phpMyAdmin-3.5.5-english.zip
Rename the folder to phpmyadmin
Code: Select all
mv phpMyAdmin-3.5.5-english phpmyadmin
Remove the downloaded archive to free the disk space (optional)
Code: Select all
rm -Rf phpMyAdmin-3.5.5-english.zip
Re: [Solved] LAMP Server?
Posted: 03 Jan 2013, 23:12
by Bogdan
I have installed everything, but can't start httpd... i've tried various commands that i use on many other linux systems before and nothing
Re: [Solved] LAMP Server?
Posted: 03 Jan 2013, 23:30
by Hamza
You'll not get it running because it seems dependencies are missing.
Clean slacky pkgs
Search dependencies for httpd (should apr)
Make a module from found deps
Code: Select all
mkdir /tmp/httpd-deps && installpkg -root /tmp/httpd-deps /var/slackyd/*.txz
Make the xzm module
Code: Select all
dir2xzm /tmp/httpd-deps /tmp/httpd-deps.xzm
Clean unnecessary files (optional)
Code: Select all
rm -Rf /tmp/httpd-deps /var/slackyd/*.txz
Final should be in /tmp as httpd-deps.xzm
About httpd, there's actually an error in the package coming from Slackware.
Please do these steps in order to fix the issue permanently.
Create temporary folder into /tmp
Extracting lamp module
Code: Select all
xzm2dir /path/to/lamp.xzm /tmp/lamp-fix
Applying fixes
Code: Select all
chmod +x /tmp/lamp-fix/etc/rc.d/rc.*
Repacking lamp module
Code: Select all
dir2xzm /tmp/lamp-fix /tmp/lamp.xzm
Clean unnecessary files (optional)
You'll get a new module. /tmp/lamp.xzm with fixes applied.
In order to boot up httpd. Please run this command:
Re: LAMP Server?
Posted: 04 Jan 2013, 13:23
by Bogdan
yes this fix httpd, i got the famous It works! message, and phpmyadmin should be in /var/www/htdocs insted of var/www, but now i have my php files rendered as a plain text
Re: LAMP Server?
Posted: 04 Jan 2013, 15:36
by Hamza
Please apply these steps in order to run PHP correctly from httpd.
Clean slacky pkgs
Download all php deps
Make a temporary directory
Install pkgs into a fake directory
Code: Select all
installpkg -root /tmp/php-deps /var/slackyd/*.txz
Apply some fixes
- Open the file /tmp/php-deps/etc/mod_php.conf
- Search the line
Code: Select all
SetHandler application/x-httpd-php
- You should have a "#" at begin of this line, remove it
- Save and exit
Make the final module
Code: Select all
dir2xzm /tmp/php-deps /tmp/php-deps.xzm
Activate the module
Don't forget to move it on modules folder if you want to have it on the next boot.
Reload httpd
Optionally, you can remove unnecessary files
Re: [Solved] LAMP Server?
Posted: 18 Feb 2013, 06:00
by tadatma
when I execute this "/etc/rc.d/rc.httpd start" I get a "Permission Denied" reply. What should I do about it? I am in the root console.
Re: [Solved] LAMP Server?
Posted: 18 Feb 2013, 07:10
by Hamza
Executes this before your command.
Re: [Solved] LAMP Server?
Posted: 19 Feb 2013, 12:23
by tadatma
Interestingly, I am not able to find rc.httpd! I wonder if I have missed some step.
I would like to place a request though. If you can release a (L)AMPP module that activates on startup that would be really useful for me. I hear version 2.0 is likely to be released tomorrow. If that module can also be made compatible with the release version, that would be an icing on the cake!!
Thank you.
Re: [Solved] LAMP Server?
Posted: 19 Feb 2013, 12:36
by Hamza
Simply make a module request in the relevant sub forum.