WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Install Wordpress (apache2-mod-php5 problem?)  (Read 2683 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Install Wordpress (apache2-mod-php5 problem?)
« on: June 15, 2012, 01:50:22 AM »
I'm trying to install wordpress locally for the first time, so it is absolutely possible that I am wrong with the procedure:

1) install local server: tce-load -i apache2-mod-php5 mysql
2) Start and configure mysql as wiki say:
Code: [Select]
tc@box:~$ /etc/init.d/services/mysql start
tc@box:~$ mysqladmin -u root password pass         
tc@box:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
...
mysql> CREATE USER 'vinnie2'@'localhost' IDENTIFIED BY 'passuser';
Query OK, 0 rows affected (0.01 sec)

mysql> CREATE DATABASE wordpressblog2;                                                          Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON wordpressblog2.* TO 'vinnie2'@'localhost';
Query OK, 0 rows affected (0.00 sec)
3)Start apache: sudo apachectl -k start (It works!)
4)download wordpress from wordpress.org
5)untar it in /usr/local/apache2/htdocs
6)opening http://localhost/wordpress_inst/wp-admin/install.php or http://localhost/wordpress_inst/index.php in the browser display the text and not start the script! (i try with seamonkey and opera 9 )

suggestions?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Install Wordpress (apache2-mod-php5 problem?)
« Reply #1 on: June 15, 2012, 06:07:41 AM »
Your apache config is not set up to handle PHP as scripts.
The only barriers that can stop you are the ones you create yourself.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Install Wordpress (apache2-mod-php5 problem?)
« Reply #2 on: June 16, 2012, 06:24:37 PM »
looking in the forum I found a message saying that apache2-mod-php5 already configured by default to handle php.
So I tried again and it work (it must have somthing went wrong in the first installation).
ok, the admin panel start after configuring the database, but the index page of the blog does not appear, instead I see the list of files in the directory where is index.php.
Coincidentally after I restart xorg, and instead of the admin panel I saw a completely white page.

Now I'm using xamp.scm and it operates completely (even if I had to change the permissions on the wordpress directory to guarantee all the privileges, it is insicure), I guess the problem is in some configuration files.

Maybe I'll make a diff (which configuration files might be interested?)
« Last Edit: June 16, 2012, 08:26:33 PM by vinnie »