Saturday, November 21, 2009

Lump Where I Do Stools

ubuntu Ubuntu 8.04: php5 + apache 2 +


... well, just installed Slackware and would like an application to test locally use Apache, PHP and MySQL, but you realize that comes pre-configured by default. What to do?.
Well, first go with Apache.
Let's start by editing the file '/ etc / httpd / httpd.conf', find the line with something like this and descoméntanla: Include / etc / httpd / mod_php.conf
With that up there and PHP is enabled



, it is now recommended to add the possibility of a 'index.php' Directory index is considered, not just the 'index.html', so in the section that says: DirectoryIndex index.html index.php




Note: I added 'index.php' in that section.

Now you can restart Apache:
# / etc / rc.d / rc.httpd restart now only remains to set up MySQL (You may have noticed that the default installation, if you boot, it stops after a while giving a error).
First we will install the database engine used in MySQL. # mysql_install_db - user = mysql

Notes: a) Do not forget the little part '- user = mysql' so that the permissions are correctly assigned.
b) The mysql user already exists by default in our system with minimal privileges.
After we have installed the initial database, we can start ... ... Continue reading


http://blog.slackware-es.com/index.php/linux/2008/05/10/apache-http-server-php-mysql-html




0 comments:

Post a Comment