--It is possible to use GUI only (no Shell Commands) for this?
--It will be better if answer is applicable to any linux
--Any ebooks on PHP,Apache,MySQL?
How to install and configure PHP, Apache and MySQL on Linux ? How to do their interconnectivity on any linux?
Use Linux with no shell commands: definitely not.
If you plan on running a web server on a linux box, your going to need to know shell commands. Even if you can somehow get around without using shell commands during the install. You -WILL- need them to configure, maintain, and do fine turning.
Try using this site: http://lamphowto.com/
Reply:lmao
what distro
u need to either
apt-get install apache mysql php
or
yum install apache mysql php
u will also need to install
mod_php or mod_mysql
they may come with the initial package
some distro's let u do
tasksel
and just choose lamp from the menu
after all is isntalled u'll need to make apache run as the proper user should be www-data or nobody
u need to set the ServerName to match whats in
/etc/hosts
if running locally u can leave at localhost
then u can comment out the extension mysql in php.ini
and u can use the LoadModule directive to load either php4 or 5 into apache.conf or httpd.conf
u'll need to configure the servers to start on boot
chkconfig apache on
chkconfig mysql on
mysql will complain about running as root so
do
mysqld %26amp;
then
mysql -u root
get into the client shell and do
grant all privileges on *.* to 'username'@'localhost' identified by 'password' with grant option;
that command will give u a username and password other than root to use on mysql,, now start the servers with the rc or init.d scripts in /etc/rc.d/* or /etc/init.d/* so
/etc/rc.d/mysqld start %26amp;%26amp; /etc/rc.d/httpd start
this can be in init.d as well
if u get errors check the log files
u prolly need to comment out unique ID's in apache to run on the localhost,, u should be able to drop a test php script in the apache document root and
chmod o+x test.php
and view it in a browser to see if the php is enabled
u can also run
php -i | grep 'configure'
to see how php was built
php -v shows the version running
the preferable way is to make and install the programs from source however i won't explain that as it is out the boundaries of yahoo answers. =)
aaron@jvnetworks.net
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment