How to get PHP up and running

So I have a successful webserver set up with apache. I am attempting to get php to work, but am having difficulties. I downloaded the entire web and LAMP server package and enabled mysql in system services (runlevel). Even after reinstalling the complete web and LAMP server package, my server does not seem to be executing php scripts. That is (and I know some may consider this cheating) I downloaded the phpBB 3.0.4 package, but my server refuses to run the /install/index.php. Is there something I forgot to enable, or is it a config issue? Or is this phpBB’s fault?

organman91 wrote:
> So I have a successful webserver set up with apache. I am attempting to
> get php to work, but am having difficulties. I downloaded the entire web
> and LAMP server package and enabled mysql in system services (runlevel).
> Even after reinstalling the complete web and LAMP server package, my
> server does not seem to be executing php scripts. That is (and I know
> some may consider this cheating) I downloaded the phpBB 3.0.4 package,
> but my server refuses to run the /install/index.php. Is there something
> I forgot to enable, or is it a config issue? Or is this phpBB’s fault?

Did you enable php for apache in /etc/sysconfig/apache2 ?

> # your settings
APACHE_MODULES=“actions alias auth_basic authn_file authz_host authz_groupfile
authz_default authz_user authn_dbm autoindex cgi dir env expires include
log_config mime negotiation setenvif ssl suexec userdir php5”
^^^^

LittleRedRooster wrote:
> organman91 wrote:
>> So I have a successful webserver set up with apache. I am attempting to
>> get php to work, but am having difficulties. I downloaded the entire web
>> and LAMP server package and enabled mysql in system services (runlevel).
>> Even after reinstalling the complete web and LAMP server package, my
>> server does not seem to be executing php scripts. That is (and I know
>> some may consider this cheating) I downloaded the phpBB 3.0.4 package,
>> but my server refuses to run the /install/index.php. Is there something
>> I forgot to enable, or is it a config issue? Or is this phpBB’s fault?
>
> Did you enable php for apache in /etc/sysconfig/apache2 ?
>
>> # your settings
> APACHE_MODULES=“actions alias auth_basic authn_file authz_host authz_groupfile
> authz_default authz_user authn_dbm autoindex cgi dir env expires include
> log_config mime negotiation setenvif ssl suexec userdir php5”
> ^^^^

Btw. there’s “a2enmod php5” to do just that. You’ll need to recreate the
configuration and restart apache “/etc/init.d/apache2 restart”. Check
loaded modules with “apachectl -M”.

Kind regards,
Andreas Stieger