Re: [phpslash-users] PHPSlash pages can't be interpreted
Brought to you by:
joestewart,
nhruby
From: Joe S. <jo...@cm...> - 2002-08-08 18:10:50
|
Look for these lines in apache's http.conf: AddType application/x-httpd-php .php3 .php DirectoryIndex index.html index.php index.php3 Don't forget to change the config.php3 file in phpslash also. There is a test.php3 file that shows the success status of phplib and phpslash too. On Thu, Aug 08, 2002 at 08:14:17PM +0200, Juan Manuel Enrique Mu?ido wrote: > Hello you lot. > > I am trying to create a weblog for my homepage, so I compiled php4 > sources (./configure --with-apxs2=/usr/local/apache2/bin/apxs > --with-mysql) and installed it to work with apache 2.0.39 webserver. It > appears to work good (I create a single page called phpinfo.php with the > only command <?phpinfo;?> and I can see the information tables about my > system and php4 installation). Moreover, I have installed, PHPlib > 7.4-pre1 and compiled mysql 3.23.51. > > I have started /usr/local/mysql/bin/safe_mysqld --user=mysql & > > I have modified /usr/local/php4/lib/php.ini with the lines: > > auto_prepend_file=/usr/local/phplib/php/prepend.php3 > include_path = ".:/usr/local/phplib/php" > > I created the databases with the command lines: > > mysqladmin -u root create phplib > mysql -u root phplib </usr/local/phplib/stuff/create_database.mysql > > I have modified /usr/local/phplib/php/local.inc with the lines: > > class DB_Example extends DB_Sql { > var $Host = "localhost"; > var $Database = "phplib"; > var $User = "root"; > var $Password = ""; > } > > Then, I decompressed phpslash-0.65.tar.gz in the directory > /home/juanma/www-data, and finally I did: > > mysql -u root phpslash > </home/juanma/www-data/phpslash/tables/0.65/slash-all.sql > > But, when I wrote in my browser > http://localhost/phpslash-0.65/public_html/index.php3 > > I only get shown the php source code (not interpreted); in fact, it > ocurs with all files ended in .php3, so I changed the extensions .php3 > by .php in all the files located in > /home/juanma/www-data/phpslash-0.65/public_html, but i get the following > error message in my browser: > > Fatal error: Failed opening required > '/home/nathan/webDevel/php-lib-stable/php/prepend.php3' > (include_path='.:/usr/local/phplib/php') in > /home/juanma/www-data/phpslash-0.65/public_html/config.php3 on line 30 > > and that is all. > > I would be happy if somebody could help me > -- > Juan Manuel Enrique Muñido - Badajoz - Spain. > http://www.terra.es/personal8/juanmaenrique/index.html > Registered Linux user #232064. > >From Spitfire #121044 powered by Debian GNU/Linux 3.0 "Woody" Kernel > 2.4.18. > |