You might want to set up phpinfo()
Put the following code in a script called phpinfo.php
<?php
phpinfo()
?>
and run it. If you get the script as the output then you need to add something or modify your setup. If you see the out put page that tells you about your PHP setup then PHP is working just fine.
I setup a LAMP server 4 or 5 years ago using Debian Potato. I do not recall the apt commands I used as provided by Harry (who has a photographic memory)
Personally when troubleshooting something I get down to the most basic part and start testing. Once something works I continue to add to what I have.
Seemes the big question here is : is where the problem is.
First place to stat is with a plain HTML page. If that displays ok your Apache server is working. Then run a simple PHP script if that works than you have isolated the issue to the application you are trying to install.
Just keep pealing back the layers and sooner or later you will find what is holding you back.
Just a suggestion - You might try a distro that is easier to use to get started. Debian is for the person who is advanced and wants to tinker.
I personally quit using Debian because I do not have the time to mess with it. Recently I did a full install of Fedora Core 5 on my dev server, to include X, and it setup as a LAMP server and has some real nice GUI tools.
I know the die hards will not believe I am saying this, however the GUI tools make it so easy to configure the network, Samba, Apache, and other servers/services.
I love Linux however I do not always have the time to configure it. Linux for me is a tool and I need it to be as effective as possible.
So if you want to learn, do a Linux From Scratch. If you need a tool and want to learn use Mandrake or Fedora or some distro that is more helpful in it's configuration.
I would not recommend using Suse due to the current state of Novell.
Please no flames,
Keith
eric© <
ericlists@gmail.com> wrote: I don't do any scripts...I'm just trying to run the install script for Gallery. I don't have the slightest clue how to actually write stuff with php....
eric
On 1/20/07, keith smith <
klsmith2020@yahoo.com> wrote: Do you start your script with "<?php" and end it with "?>" leaving odd the quotes?
eric© <
ericlists@gmail.com> wrote:
First off, I'm still a Linux n00b...while I've got the basics of Linux down, venturing beyond basic confs and apt-get is still beyond me, and I seem to have found myself in that "beyond me" area.
My ultimate goal is to get Gallery2 running, so that I can gracefully do photos on my webserver. I have Apache2, mysql-server, php5, and Gallery2 installed (whatever apt-get grabs). This is on a Debian etch system (installed about a week ago) Apache2 _appears_ to work correctly, and my page is visible at
www.urbexgrp.com from the outside. I was able to successfully create a gallery2 database using mysqladmin. But regardless of what I do, I can't get .php files to execute in a browser (always just shows the source code). I've spent the past week attempting to get php and apache to play nicely together, and well, I'm lost. I've spent so many nights awake, and tried so many things, I've lost track of what I did.
Should I be not messing with apt-get with all this? Should I be installing/compiling from source code?
eric
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Keith Smith
A link from my website to yours
Submit Your Metro Phoenix Website __________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Keith Smith
A link from my website to yours
Submit Your Metro Phoenix Website
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com ---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss