mysql

Asked by Patrick Rowlinson

Hi Guys and Gals

I have installed Apache2, MySQL, PHP5 on my PC. I am using a dual boot system with Windows XP. I managed to configure PHP5 with Apache2 on Windows after about 5 hours! but, I still cannot get PHP to work with Apache2 on LINUX.

I do get the Apache startup window in Firefox and I know that PHP is installed. Mysql is fine so far...

I am having major drama editing the apache2.conf file due to permissions. I have managed to access the files through Windows to make the required changes i.e.

LoadModule php5_module /usr/lib/apache2/modules/libphp5.so

and

AddType application/x-httpd-php .php .html

Also how the hell do you change to root in order to make these changes?
I type su then enter the password and get denied every time!
I am not familiar with LINUX, so far I love it but, I am finding trying to administer the system a pain.

I have also run out of coffee!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Ralph Janke
Solved:
Last query:
Last reply:
Revision history for this message
Best Ralph Janke (txwikinger) said :
#1

you need to have root privileges to access the configuration file. you can do that by using sudo before the command you use for the editor (i.e. "sudo gedit apache.conf" or "sudo vi apache.conf") from the commandline terminal. It will then ask you for your password. This is your user password, the same you use to login initially.

That should solve your problem, if you have any more question please do not hesitate to ask.

Revision history for this message
williamts99 (williamts99) said :
#2

You may also wish to refer to https://help.ubuntu.com/community/RootSudo for the hows and whys of the use of sudo.

Best Regards,
Williamts99

Revision history for this message
Patrick Rowlinson (patrick-goldenthread) said :
#3

Thanks Mate, that did work.

I did have to shutdown the system and reboot after I had made the changes.

It also helps to know to store the web&php5 files in the /var/www/ folder. There appears to be some confusion in which text book or web site you read.

Of course it is all in the readme file of Apache2 and in apache.conf file.

One day I hope to be a Guru just like you and help someone else out of a sticky situation.

Pat