Requires this library, if you don't have it yet (420 kb, 1 MB extracted):
http://puppyfiles.org/dotpupsde/dotpups/Internet/Apache-1.3.37-Puppy-2/Libdb-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/Internet/Apache-1.3.37-Puppy-2/Libphp4-for-Apache-1.1.37-and-dependencies.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).

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.

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.

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.

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

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.

When I go to my browser and call http://127.0.0.1/cgi-bin/demo.php I get:

Quote:

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, 05:57; edited 1 time in total

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.

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?

I looked for the gdbm.3 file at:
http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pupget_packages-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?

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum