Saturday, May 22, 2010

Installing apache 2.2.4 and php on linux ubuntu?

How do I install/configure these on ubuntu? I keep following the commands however I keep getting the error: C compiler cannot create executables


any idea whats up?? Im new to linux so it might just be something REALLY simple!!

Installing apache 2.2.4 and php on linux ubuntu?
I wouldn't install from source code. Just:





apt-get install libapache2-mod-php5





And let the package management system sort it out. You'll get the latest versions that have been packaged up for Ubuntu, which are usually pretty recent. It is unlikely you need that exact version of apache.
Reply:Use the apt-get as stated above.. Before your do.. type su root and enter the root password.





That way your are running as root to allow the installation.
Reply:David is absolutely right. Stay clear of source. One of the great things about ubuntu is the package management stuff





You may also need a sudo in front of the apt-get since by default ubuntu doesn't encourage you to be root.





sudo apt-get install %26lt;your package names%26gt;





When it asks you for a password, enter you normal password





This will give the 'apt-get' command root privileges to do the installation.





The other thing about apt-get is that it will config apache and php (and if you install it mysql) for you so the servers start up automatically.
Reply:Like was stated by others you need to be root in order to install


I believe ubuntu doesn't by default allow you to 'su' it wants you to 'sudo' instead. a way to get around this is to 'sudo passwd'


then enter a root password and confirm it. Then you can 'su' like any other linux system. Also if you are new it might be easier to use the GUI front end to apt. it is called 'synaptic'. try typing


'sudo synaptic' if it is not installed then type


'sudo apt-get install synaptic' and it will install it, but I think it is included in the default install. Good Luck :)


No comments:

Post a Comment