BFX
10-16-2005, 09:07 AM
distro : debian 3.1 (stable)
Allright, this is my last resort, i am puzzled and i can't find the answer anywhere else.
I have installed apache 2, php 5 and mysql 4 today on my computer, all from sourceball.
There's just one problem, php won't show at all. Allow me to explain it in detail.
(Apache)
I configured apache like this "./configure –prefix=/usr/local/apache2 –enable-mods-shared=most" following make, make install.
I edited httpd.conf, added "LoadModule php4_module modules/libphp4.so" and "AddType application/x-httpd-php .php" to it, and changed the DirectoryIndex line like this "DirectoryIndex index.html index.html.var index.php".
(MySQL)
I configured mysql like this "./configure –prefix=/usr/local/mysql –localstatedir=/usr/local/mysql/data –disable-maintainer-mode –with-mysqld-user=mysql –enable-large-files-without-debug" following make, make install.
I added a mysql usergroup with "/usr/sbin/groupadd mysql" and added a user with "/usr/sbin/useradd -g mysql mysql".
installed a database with "./scripts/mysql_install_db".
Made some ownership changes with "chown -R root:mysql /usr/local/mysql" and "chown -R mysql:mysql /usr/local/mysql/data".
I edited ld.so.conf, added "/usr/local/mysql/lib/mysql" and started mysql.
(php)
I configured php like this "./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql" following make, make install.
performed this command "cp php.ini-recommended /usr/local/php/lib/php.ini".
Edited php.ini, changed doc_root to "doc_root= “/usr/local/apache2/htdocs/” " and changed file_uploads to "file_uploads=Off".
(testing..)
Then i started apache using "/usr/local/apache2/bin/apachectl start".
Created test.php in htdocs, wich has as source code <?php phpinfo(); ?>.
But when i open the file in a webbrowser (firefox or mozilla), i get a blank screen and the source code is shown as "<html><body></body></html>" wich doens't make sence at all since i never put that in the file.
I was hoping somebody in here would know the answer to my problem, thanks in advance
p.s. i used This (http://www.hostlibrary.com/installing_apache_mysql_php_on_linux) as guideline during my install, following every step exactly.
Allright, this is my last resort, i am puzzled and i can't find the answer anywhere else.
I have installed apache 2, php 5 and mysql 4 today on my computer, all from sourceball.
There's just one problem, php won't show at all. Allow me to explain it in detail.
(Apache)
I configured apache like this "./configure –prefix=/usr/local/apache2 –enable-mods-shared=most" following make, make install.
I edited httpd.conf, added "LoadModule php4_module modules/libphp4.so" and "AddType application/x-httpd-php .php" to it, and changed the DirectoryIndex line like this "DirectoryIndex index.html index.html.var index.php".
(MySQL)
I configured mysql like this "./configure –prefix=/usr/local/mysql –localstatedir=/usr/local/mysql/data –disable-maintainer-mode –with-mysqld-user=mysql –enable-large-files-without-debug" following make, make install.
I added a mysql usergroup with "/usr/sbin/groupadd mysql" and added a user with "/usr/sbin/useradd -g mysql mysql".
installed a database with "./scripts/mysql_install_db".
Made some ownership changes with "chown -R root:mysql /usr/local/mysql" and "chown -R mysql:mysql /usr/local/mysql/data".
I edited ld.so.conf, added "/usr/local/mysql/lib/mysql" and started mysql.
(php)
I configured php like this "./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql" following make, make install.
performed this command "cp php.ini-recommended /usr/local/php/lib/php.ini".
Edited php.ini, changed doc_root to "doc_root= “/usr/local/apache2/htdocs/” " and changed file_uploads to "file_uploads=Off".
(testing..)
Then i started apache using "/usr/local/apache2/bin/apachectl start".
Created test.php in htdocs, wich has as source code <?php phpinfo(); ?>.
But when i open the file in a webbrowser (firefox or mozilla), i get a blank screen and the source code is shown as "<html><body></body></html>" wich doens't make sence at all since i never put that in the file.
I was hoping somebody in here would know the answer to my problem, thanks in advance
p.s. i used This (http://www.hostlibrary.com/installing_apache_mysql_php_on_linux) as guideline during my install, following every step exactly.