Apache 1.3.37 + modphp 4.4.4 for Puppy 2

Browsers, email, chat, etc.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Apache 1.3.37 + modphp 4.4.4 for Puppy 2

#1 Post by MU »

Apache 1.3 is a old, but small webserver.
Though there already is Apache 2, the version still is used by many professional hosters like the german Forum-Provider http://parsimony.net .

Download (1.3 MB, 8 MB extracted):
http://puppyfiles.org/dotpupsde/dotpups ... 2-only.pup

Requires this library, if you don't have it yet (420 kb, 1 MB extracted):
http://puppyfiles.org/dotpupsde/dotpups ... 4.4.so.pup

If you want to use it to run PHP-scripts, you also need Libphp (2.5 MB, 7 MB extracted):
http://puppyfiles.org/dotpupsde/dotpups ... encies.pup


If you need mysql, install it with gslapt, as the dotpups above were created from the Slackware packages:
http://www.murga-linux.com/puppy/viewtopic.php?t=11929
But I did not try that, to use MySQL it would be easier to use XAMPP (see replies to this message).
My Apache 1 dotpup primarily is intended only to give you a small PHP-capable webserver for simple scripts.

The PHP dotpup has only libphp, but not the CLI-version of PHP.
You can install the full Php 4.4.4 with gslapt, too.

Here is a list of all files in the PHP-dotpup, pay attention when it want to overwrite existing libraries (in a fresh Puppy 2.11 that does not happen, but maybe if you installedother packages).
/etc/apache/mod_php.conf
lib
lib/libdb-4.2.so
lib/libdb-4.4.so
usr
usr/libexec
usr/libexec/apache
usr/libexec/apache/libphp4.so
usr/lib
usr/lib/sasl2
usr/lib/sasl2/libotp.la
usr/lib/sasl2/liblogin.so.2.0.22
usr/lib/sasl2/libsasldb.la
usr/lib/sasl2/libotp.so.2.0.22
usr/lib/sasl2/libplain.la
usr/lib/sasl2/liblogin.la
usr/lib/sasl2/libcrammd5.so.2.0.22
usr/lib/sasl2/libdigestmd5.la
usr/lib/sasl2/libcrammd5.la
usr/lib/sasl2/libplain.so.2.0.22
usr/lib/sasl2/libdigestmd5.so.2.0.22
usr/lib/sasl2/libsasldb.so.2.0.22
usr/lib/sasl2/libotp.so.2
usr/lib/sasl2/libdigestmd5.so.2
usr/lib/sasl2/libotp.so
usr/lib/sasl2/liblogin.so.2
usr/lib/sasl2/libsasldb.so
usr/lib/sasl2/libcrammd5.so.2
usr/lib/sasl2/libplain.so
usr/lib/sasl2/liblogin.so
usr/lib/sasl2/libsasldb.so.2
usr/lib/sasl2/libdigestmd5.so
usr/lib/sasl2/libcrammd5.so
usr/lib/sasl2/libplain.so.2
usr/lib/libmm.so
usr/lib/libmm.so.14
usr/lib/libmm.so.14.0.22
usr/lib/libsasl2.so
usr/lib/libsasl2.so.2
usr/lib/libsasl2.so.2.0.22
usr/lib/libmhash.so
usr/lib/libmhash.so.2
usr/lib/libmhash.so.2.0.0
usr/lib/libgmp.so
usr/lib/libgmp.so.3
usr/lib/libgmp.so.3.4.1
usr/lib/libldap-2.3.so.0
usr/lib/libldap-2.3.so.0.2.15
usr/lib/liblber-2.3.so.0
usr/lib/liblber-2.3.so.0.2.15
usr/bin
usr/bin/mm-config
To use PHP, you must edit /etc/apache/httpd.conf

Uncomment the line
#Include /etc/apache/mod_php.conf

Then restart apache:
apachectl stop
apachectl start

Type in your webbrowser:
http://localhost
and you should see the Apache welcome page.

The www folder is
/var/www/htdocs

Mark
Last edited by MU on Sat 31 Mar 2007, 18:04, edited 3 times in total.

Canadianpride
Posts: 78
Joined: Fri 09 Jun 2006, 21:51

#2 Post by Canadianpride »

Wow, Thanks MU. This is awesome I've been wanting to teach myself php for awhile but never had a server to try it on. One thing though.... I downloaded mysql gslapt but I don't understand how to install it. Anyone have any advice I don't really know what I'm doing.

Thanks
Matthew.

Canadianpride
Posts: 78
Joined: Fri 09 Jun 2006, 21:51

#3 Post by Canadianpride »

Hmmmm, No response. Well here's the problem. I installed mysql using gslapt. It said that the install worked by It doesn't seem to be working? Any help would be appreciated. I don't know anything about mysql really but I need it for something I'm working on. Any help would be appreciated.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

One reason that I did not include mysql is, that I am (was) a "professional database-developer".
So I really hate fiddling with databases in my spare time, it can be quite timeconsuming to get the basic setup running, and often they are used for stuff that better would be solved with textfiles.
If you need mysql, run it from the console to set it up (you usually will have to create some tables and set up a password) or look for missing libraries, and consult a MySQL-manual with basic instructions (there are cheap books and tons of free documentation in the web).

You also could try http://www.mysql-admin.org/ , but I don't know if it supports the PHP-library of Apache 1.

If you need a simple solution, it might be wiser to use XAMPP, that includes Apache 2 and MySQL, and was announced in this forum, too.

Mark

Canadianpride
Posts: 78
Joined: Fri 09 Jun 2006, 21:51

#5 Post by Canadianpride »

Alright. Thanks I'll try that. I had tried something like that call phpadmin after I tried installing mysql but it said it couldn't find mysql. Maybe I'll try XAMPP
Thanks

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#6 Post by GuestToo »

Xampp is very easy to install and run

go to:
http://www.apachefriends.org/en/xampp.html

download the Linux package ... unzip it in /opt ... or unzip it in any Linux file system, and symlink lampp to /opt/lampp ... and it should run

or there is a dotpup package that will download and install a slightly older version of Xampp
http://murga-linux.com/puppy/viewtopic.php?&t=5126
and the Xampp link should now be working in the dotpup downloader program

Canadianpride
Posts: 78
Joined: Fri 09 Jun 2006, 21:51

#7 Post by Canadianpride »

AHHHHH!!!!

I've tried to install xampp both ways. Apache always works fine and has php support. Unfortunately mysql never works, It says it can't connect to the database or something. Could it be something with my puppy? Maybe I'll try it with a clean install tomorrow.

User avatar
debernardis
Posts: 180
Joined: Sat 12 Nov 2005, 08:01
Contact:

#8 Post by debernardis »

Hi Mu and fellow puppy fans,
I have loaded the needed dotpups, edited /etc/apache/httpd.conf , but php seems not to work. Of course I am doing something wrong...

In my /var/www/cgi-bin directory I have a demo.php file which contains

Code: Select all

<html>
 <head>
  <title>Test PHP</title>
 </head>
 <body>
 <?php echo "Hello World!<p>"; ?>
</body>
</html>
When I go to my browser and call http://127.0.0.1/cgi-bin/demo.php I get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@tree.slackware.lan and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/1.3.37 Server at 127.0.0.1 Port 80
Thinking of a permissions problem, I chmodded it to 777 but still doesn't work.
Normal web pages seems to work well, as well as the test-cgi (a shell script) included in the apache package. Any hint?
Last edited by debernardis on Fri 30 Mar 2007, 09:57, edited 1 time in total.

User avatar
Gekko
Posts: 443
Joined: Sat 22 Jul 2006, 09:57
Location: Sydney, New South Wales

#9 Post by Gekko »

does the file work as demo.html?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#10 Post by MU »

no, PHP-scripts are not CGI scripts.

A CGI-script can be written in any language like PHP, Basic or C. Most common is Perl.
But CGI-programs must send their own HTTP-headers.
In contrast, PHP-programs are usually associated to libphp.so, the Apache PHP-module.
These don't send the required headers, as the PHP-module sends own ones.

To use PHP-scripts, save them in:
/var/www/htdocs

I just tried yours as:
/var/www/htdocs/demo1.php

Then in your webbrowser enter the URL:
http://localhost/demo1.php

Works here.
Mark

User avatar
debernardis
Posts: 180
Joined: Sat 12 Nov 2005, 08:01
Contact:

#11 Post by debernardis »

MU wrote:To use PHP-scripts, save them in:
/var/www/htdocs
You're right Mu, thanks a lot :P

User avatar
paullecorde
Posts: 62
Joined: Fri 17 Jun 2005, 11:52
Location: Lexington, KY USA
Contact:

#12 Post by paullecorde »

It think this apache app is a great idea. I am looking for a very small web server with php.

I am working with puppy 2.13. i installed the .pup, uncommented the mod_php line and started apachectl. i get this error message

"Syntax error on line 6 of /etc/apache/mod_php.conf:
Cannot load /usr/libexec/apache/libphp4.so into server: libgdbm.so.3: cannot open shared object file: No such file or directory
/usr/bin/apachectl start: httpd could not be started.

When I look in /usr/ libexec/apache/libphp4.so is there. I don't see libgdbm.so.3. Should it be in the same directory? Where can I download this file? Do you see any other things i could do to get this server with php to work?

Thanks for your help.

Paul

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#13 Post by MU »

There is in Pupget/Petget a gdbm3.pet or gdbm3.tar.gz.
That should do it.
If not, I can make a dotpup.
Mark

User avatar
paullecorde
Posts: 62
Joined: Fri 17 Jun 2005, 11:52
Location: Lexington, KY USA
Contact:

#14 Post by paullecorde »

MU,

Thank you for responding so quickly.

I looked for the gdbm.3 file at:
http://distro.ibiblio.org/pub/linux/dis ... ackages-1/
and
at http://puppyfiles.org/dotpupsde/dotpups/
I also tried seaching this forum for it, but I haven't found it. Do you know other sites for .pet, .pup storage?

Thanks again.
Paul

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#15 Post by MU »

sorry, it is this:
http://distro.ibiblio.org/pub/linux/dis ... 8.3.tar.gz

It includes:
gdbm-1.8.3/usr/lib/libgdbm.so.3
gdbm-1.8.3/usr/lib/libgdbm.so.3.0.0
gdbm-1.8.3/usr/lib/libgdbm_compat.so.3
gdbm-1.8.3/usr/lib/libgdbm_compat.so.3.0.0
Mark

User avatar
paullecorde
Posts: 62
Joined: Fri 17 Jun 2005, 11:52
Location: Lexington, KY USA
Contact:

#16 Post by paullecorde »

That worked!!!

The server is running and my php pages are working.

Thanks again for your help. :D

Paul

bianchi
Posts: 23
Joined: Fri 26 Mar 2010, 04:56

#17 Post by bianchi »

may be we can use httpd for puppy
Visit here...

Post Reply