Jump to content

Configuring Apache with PHP

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
11 replies to this topic

#1
arxh

arxh

    Newbie

  • Members
  • PipPip
  • 24 posts
i am on win XP

i installed apache and php..... and followed the instructions i saw on a website.
HTML files run ok , but when i run php files i get this message:

Forbidden

You don't have permission to access /php/php/Gert hough/1/account.php on this server.

Plsss help

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
The easiest way to set it up is using XAMPP or WAMP.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
arxh

arxh

    Newbie

  • Members
  • PipPip
  • 24 posts
cant it be done without xampp or wamp.........

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It can, but things get trickier. XAMPP even lets you decide what pieces to install.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
NastyDevil

NastyDevil

    Learning Programmer

  • Members
  • PipPipPip
  • 90 posts
I might be completely wrong... But usually when I get that type of error on my website it is usually associated with file permissions. I'm not sure what you are working with, but you should either 1. link to the guide you foolowed 2. make sure everything you are installing is compatible with Win XP. 3. Check if the guide you followed has any comment or replies with similar issues.

#6
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
I agree with WingedPanther here, get xampp or wamp or something preconfigured. It just ain't worth the job to do it on your own. me myself run xampp.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#7
Guest_johnny.dacu_*

Guest_johnny.dacu_*
  • Guests
Indeed, wamp or other apache,php&mysql pack is preconfigured. But maybe your problem comes from incorect htaccess setup. Did you used a .htaccess file?

#8
arxh

arxh

    Newbie

  • Members
  • PipPip
  • 24 posts
okk... i installed xampp..
opened the xampp control panel.

now how do i know mysql user and pass.... how can i run phpmyadmin

#9
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts

arxh said:

okk... i installed xampp..
opened the xampp control panel.

now how do i know mysql user and pass.... how can i run phpmyadmin

Once your server is online, it's usually located in http://127.0.0.1/phpmyadmin by default with no root passwords. For MySQL access you can define the connection as follows:
$conn = mysql_connect("localhost", "root", "");

If you're wanting to add a root password, you will need to look in the phpMyAdmin config area, possibly located in:
(xampp folder)/phpmyadmin/config.inc.php

You would edit the following lines to anything you wish:
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';

Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#10
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
Even easier that editing files is to browse the web server from localhost and go to the security tab and change the password with the link there, and there you can also create a special user for phpmyadmin for it's access (pna) in just a few clicks.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#11
arxh

arxh

    Newbie

  • Members
  • PipPip
  • 24 posts
kkk...
got into. pma.
but it shows php extension: mysqli
how to change it to mysql

#12
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
mysqli is a better/newer version of the php library than the mysql-library, so just let it be. It won't do any harm
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall