VectorLinux

The nuts and bolts => Networking & Security => Topic started by: StrayBit on August 24, 2015, 10:12:41 am

Title: Web page maker Canceled
Post by: StrayBit on August 24, 2015, 10:12:41 am
Does any one have any suggestions?  I'm on VL7.1 32 bit.
Title: Re: Web page maker
Post by: sledgehammer on August 24, 2015, 11:13:31 am
I use wordpress.  Its pretty good. Download and install from the cloud.

Title: Re: Web page maker
Post by: retired1af on August 24, 2015, 11:31:19 am
Open Office has an HTML editor build into Writer.
Title: Re: Web page maker
Post by: StrayBit on August 24, 2015, 01:21:40 pm
Thanks guys.
@sledgehammer:  Downloaded wordpress.  Unfortunately neither Seamonkey nor Firefox knew what to do with .php files.
@retired1af:  Open Office is not available in gslapt.  Installed Libre Office:  it can save writer and calc files as html files.
Title: Re: Web page maker
Post by: sledgehammer on August 26, 2015, 07:54:40 pm
Straybit,

What are you trying to do in wordpress that is not working for you?  It works fine for my purposes on my VL 7.1 machine.

John


Title: Re: Web page maker
Post by: StrayBit on August 27, 2015, 08:38:37 am
I want to set up a set of web pages as an indication of what our organization could do with one.

Since my last post, I have installed php but still not able to click on install.php to set it up.  It either opens in geany or, if I try to open in SeaMonkey or Firefox, they don't know what to do with them.  They keep asking what program to open the file with.
Title: Re: Web page maker
Post by: sledgehammer on August 27, 2015, 01:46:49 pm
Not sure I understand.  I am no web page or wordpress expert.  All I know is I used wordpress out of the box and VL 7.1 out of the box and both stock programs seemed to work together well.  There is a bit of a learning curve with wordpress.  We have a  wordpress users group here that meets for a couple of hours once a month.  If you can work up some kind of a specific question or two, I can ask those experts next meeting.  I think most lay people and a lot of experts are using wordpress now.
Title: Re: Web page maker
Post by: retired1af on August 27, 2015, 03:26:45 pm
I want to set up a set of web pages as an indication of what our organization could do with one.

Since my last post, I have installed php but still not able to click on install.php to set it up.  It either opens in geany or, if I try to open in SeaMonkey or Firefox, they don't know what to do with them.  They keep asking what program to open the file with.

If this is for a web application, normally you'd have to run the install.php on a server running Apache (with MySQL and PHP installed as well).
Title: Re: Web page maker
Post by: StrayBit on August 27, 2015, 04:35:20 pm
I did not find Apache on gslpat, although there are some with some suffixes.  Would one of these be the Apache Server?  Or do I need to get it some where else?
Title: Re: Web page maker
Post by: wigums on August 28, 2015, 09:04:43 am
httpd is apaches package name
we also have
lightttpd
nginx

we have mysql AND mariadb databases
Title: Re: Web page maker
Post by: StrayBit on August 28, 2015, 03:00:20 pm
Thanks, wigums.  Installing them now.
Title: Re: Web page maker
Post by: StrayBit on August 29, 2015, 08:26:57 am
Finally got httpd and php running (I hope!).  I believe that I still have to put it into rc.d or rc.n.
Attempting to install wordpress:
Code: [Select]
vector:/~/Downloads/wordpress/wp-admin
bruce:$ ./install.php
bash: ./install.php: Permission denied
vector:/~/Downloads/wordpress/wp-admin
bruce:$ su
Password:
You are working as root
vector://home/bruce/Downloads/wordpress/wp-admin
root:# apachectl restart
vector://home/bruce/Downloads/wordpress/wp-admin
root:# ./install.php                   
bash: ./install.php: Permission denied
Obviously, I'm still doing something wrong - but what?
Title: Re: Web page maker
Post by: retired1af on August 29, 2015, 08:35:51 am
The installer is normally run from a browser.

Generally, you copy the files to the public_html directory and then run the installer from the browser.
Title: Re: Web page maker
Post by: sledgehammer on August 29, 2015, 01:05:26 pm
Straybit,

I can't remember what I did to install wordpress but I think in went to wordpress.org in firefox and downloaded it, following instructions.  I do recall quite a few starts and stops before I got it working.
Title: Re: Web page maker
Post by: StrayBit on August 30, 2015, 06:36:57 am
SeaMonkey still doesn't know what to do with wordpress install.php
Title: Re: Web page maker
Post by: retired1af on August 30, 2015, 08:09:16 am
Generally, your files are going to go under /home/%username%/public_html
Title: Re: Web page maker
Post by: rbistolfi on August 30, 2015, 08:31:16 pm
StrayBit,

You are accessing the file through the filesystem, you need to go by the web server. The URL may look like this:

127.0.0.1/wordpress/wp-admin/install.php

If that fails, you need to configure your web server properly. This works like this:

* You configure a server like apache or nginx to handle .php urls to a php interpreter
* You access php files via that web server (using localhost or the ip of the machine running the server in the lan)
* The web server will run the php script and return the result to the client

Good luck!
Title: Re: Web page maker
Post by: SmartDuck on September 01, 2015, 10:35:00 am
WordPress is a complete ready framework to setup a blog or presence. You will need a full webserver with php and mysql installed on your pc or install it on a host from a hosting provider. For a webserver configuration with Vector Linux see http://forum.vectorlinux.com/index.php?topic=18685.0 . For WordPress you will need to install mysql instead of SQLite.

To create or script webpages (html) you will need an editor like Geany (installed), Bluefish (in the repos) or visual tool like Kompozer (http://kompozer.net).
Title: Re: Web page maker
Post by: sledgehammer on September 01, 2015, 11:39:06 am
Smart advice, SmartDuck, but I wonder about your statement that:

Quote
To create or script webpages (html) you will need an editor like Geany (installed), Bluefish (in the repos) or visual tool like Kompozer (http://kompozer.net).

Far as I know, I don't use any of that stuff as Wordpress makes creating webpages on the wordpress site very easy.

John
Title: Re: Web page maker
Post by: SmartDuck on September 01, 2015, 03:00:57 pm
You're right :) If you don't use WordPress you will have to create with those tools and upload the pages to a host (local machine or provider).
Title: Re: Web page maker
Post by: StrayBit on September 07, 2015, 01:19:23 pm
OK!  I have to manually start httpd
Quote
su
apachectl start
How do I get that to be automatic at logon?  etc/rc.d/rc.httpd is allowed to run as a program
Now if I direct my browser to 127.0.0.1 or 192.168.1.x
Quote
It works!
Finally able to open
Quote
127.0.01//wordpress/wp-admin/install.php
Wordpress is in /srv/htdocs.  But it says
Quote
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Mysql plus mariadb and sqlite are installed according to gslapt.  Now to figure out how to use/set it up
Title: Re: Web page maker
Post by: sledgehammer on September 07, 2015, 06:51:08 pm
Straybit,

At the risk of adding further confusion, I think my wordpress install uses the mysql that is on the site that hosts my wordpress page rather than the mysql on my machine.   I know nothing of mysql so take this with a grain of salt.
Title: Re: Web page maker
Post by: StrayBit on September 11, 2015, 11:12:14 am
Thanks, guys for your comments.  I'm doing all this on my local network as I don't (at this time) require or want access from the world.
OK!  I have insured that httpd 2.4.16-i586-1vl, mysql 5.6.25 and php 5.69 are installed.
I have copied wtc/httpd/mod_php.conf.example mod_php.conf
Per the php.net site, I have copied etc/httpd/php.ini-development /usr/lib/php.ini
and have edited httpd.conf:
  ServerName 192.168.1.143:80
  Include /etc/httpd/mod_php.conf
  <FileMatch \.php&>
    SetHandler application/x-httpd-php
  </FileMatch>
  LoadModule php5_module modules/libphp.so
(FileMatch and LoadModule php5 had to be typed in.)
Through SeaMonkey, typing 192.168.1.143 (or 127.0.0.1 on the server) it shows "It Works!"
http://127.0.0.1/wordpress/wp-admin/install.php:
Quote
Your PHP installation appears to be missing the MYSQL extension which is required by WordPress
I have found 7 db[m,d] modules in httpd.conf but I have no idea what they do or which (if any) I should uncomment.  The only reference I find on php.net refers to compiling.
Title: Re: Web page maker
Post by: StrayBit on September 13, 2015, 01:21:34 pm
I discovered that the line that I had added
Quote
  LoadModule php5_module modules/libphp.so
not only had an error: it should have been "lib/httpd/modules/libphp5.so" and then I get the following
Code: [Select]
root:# apachectl restart
[Sun Sep 13 13:44:45.891850 2015] [so:warn] [pid 2820:tid 3068958464] AH01574: module php5_module is already loaded, skipping
so I commented it out.
I tried uncommenting each of the db[d|m] lines one at a time.  All of them gave
Code: [Select]
Your PHP installation appears to be missing the MYSQL extension which is required by WordPressthe last one (my line 141):
Quote
LoadModule session_dbd_module lib/httpd/modules/mod_session_dbd.so
gave
Quote
root:# apachectl restart
httpd: Syntax error on line 141 of /etc/httpd/httpd.conf: Cannot load lib/httpd/modules/mod_session_dbd.so into server: /usr/lib/httpd/modules/mod_session_dbd.so: undefined symbol: ap_hook_session_save
Uncommented line 139
Quote
LoadModule session_module lib/httpd/modules/mod_session.so
and had no error or warning.  Still got the message about MYSQL being missing!
So! What can I try next?
Title: Re: Web page maker
Post by: retired1af on September 13, 2015, 01:44:07 pm
Generally, if Apache is complaining about a missing module, it usually means it wasn't compiled in or compiled properly with Apache.

http://httpd.apache.org/docs/2.2/install.html

Quote
Also at this point, you can specify which features you want included in Apache HTTPd by enabling and disabling modules. The Apache HTTP Server comes with a Base set of modules included by default. Other modules are enabled using the --enable-module option, where module is the name of the module with the mod_ string removed and with any underscore converted to a dash. You can also choose to compile modules as shared objects (DSOs) -- which can be loaded or unloaded at runtime -- by using the option --enable-module=shared. Similarly, you can disable Base modules with the --disable-module option. Be careful when using these options, since configure cannot warn you if the module you specify does not exist; it will simply ignore the option.

Title: Re: Web page maker
Post by: retired1af on September 13, 2015, 01:53:16 pm
Rather than doing things the hard way by installing each item individually, you may want to give this a shot instead.

https://www.apachefriends.org/index.html

It has all the necessary modules included that allows you to fire things up a lot quicker.
Title: Re: Web page maker
Post by: StrayBit on September 14, 2015, 11:43:25 am
Quote
Rather than doing things the hard way by installing each item individually, you may want to give this a shot instead.

https://www.apachefriends.org/index.html

It has all the necessary modules included that allows you to fire things up a lot quicker.
was a great idea.  Unfortunately, the Linux version is x64.  And the Windows version wouldn't start Apache,  (Now that I think about it, I was trying to start it wrong for Win7.
Title: Re: Web page maker
Post by: StrayBit on September 23, 2015, 10:45:37 am
I tried downloading and compiling and got thoroughly confused.  (You can't confuse me!  I'm already confused!  ::) )  Files were placed differently than gslapt.
Removed the new files, installed httpd from gslapt (and reinstalled php and mysql).  Edited /etc/httpd/httpd.conf to load mod-php.conf.  Renamed the latter from mid_php.conf.development.  Found that /etc/rc.d/rc.mysqld needed to be set as executable (which would have solved the original problem!)
Apache works!  Now, 'http://127.0.0.1/wordpress/wp-admin/install.php' yields
Quote
WordPress
Error: PHP is not running

WordPress requires that your web server is running PHP.  Your server does not have PHP installed, or PHP is turned off.
Obviously, there is something that I have (not?) done.  But, I can't find it.  I have double checked httpd.conf and have tried with /etc/rc.d/rc.php-fpm executable or not.  Anyone have a suggestion?
Title: Re: Web page maker
Post by: StrayBit on September 24, 2015, 10:12:02 am
Reinstalled httpd, mysql and php in gslapt.  edited httpd.conf
Quote
# Uncomment the following line to enable PHP:
#
Include /etc/httpd/mod_php.conf
# includes LoadModule php5_module lib/httpd/modules/libphp5.so

#Tell Apache to parse certain extensions as PHP.  Added per www.php.net
<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>
and still get
Quote
[b]WordPress
Error: PHP is not running[/b]

WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.
Will check WordPress site to see what they say.
Title: Re: Web page maker
Post by: wigums on September 24, 2015, 11:23:43 am
what version of wordpress are you using? the new wordpress needs php5 > 5.5
im currently in the process of setting up wordpress on one of my boxes (not vl)
and there is a bit of a learning curve but its alot of fun and very well documented by wordpress themselvs

https://www.google.com/search?q=linux+instakll+wordpress (https://www.google.com/search?q=linux+instakll+wordpress)

we're going pretty heavy into developing 7.2 so we are all rather busy but if you find something you need just ask us and we'll get it out there for you

edit:
sorry if thats been covered already. i did not read the entire thread
Title: Re: Web page maker
Post by: StrayBit on September 24, 2015, 03:01:03 pm
I'd like to hear about your experience with WordPress. 
No matter what I've done, it keeps telling me that PHP isn't running.
I downloaded InstantWP on Windows 7 but wasn't able to do much with it.
Title: Re: Web page maker
Post by: StrayBit on September 25, 2015, 07:30:12 am
My peers decided last night to go ahead and purchase a commercial product so this thread is canceled.  I had great hopes for it.
Title: Re: Web page maker Canceled
Post by: sledgehammer on September 25, 2015, 04:26:33 pm
Lets hope your peers know what they are doing.  Quite a few businesses use wordpress.  They might recognize some of them.  See

https://wordpress.com/notable-users/