Tiny Core Extensions > TCE Talk
How do you set up a webserver?
vinnie:
I install, in order:
cherokee
python
php5
fcgi
I run cheroke admin, open localhost:9090 and insert admin e password (automatically generated), but I can't go beyond.
What should I do now?
combo3:
What specifically do you need help with?
If you are having problems with the admin interface, it's probably because the default config file is read-only. In order to make it writable, enter the following:
--- Code: ---cd /usr/local/etc/cherokee
sudo mv cherokee.conf cherokee.conf.bak
sudo cp cherokee.conf.bak cherokee.conf
--- End code ---
The default web page is /var/www/index.html -- replace it with your own.
For detailed help see Cherokee Documentation (or install cherokee-doc.tcz and open /local/share/doc/cherokee/index.html in your browser)
For detailed instructions on creating web pages see Web Tutorials
vinnie:
Ok, now work.
1 I installed the packages I said before
2 I changed the ownership of the file /usr/local/etc/cherokee/cherokee.conf in:
read, write and exec for user group and other; owner tc group staff
3 i run cherokee-admin and start the server.
Now, is ok but php don't work, I tried a version of dokuwiki and the install.php page instead start of asking me to download.
Ok, i follow this guide: http://www.cherokee-project.com/doc/cookbook_php.html
1 access to the top menu voice "vservers", in tab "behavior"
2 clic on button "rule management"
3 clic on upper button "new" --> "languages" --> "php" and "add"
This not resolve the situation.
If I reboot cherokee-admin configurations returned as they were before.
It seems that this web interface is not able to edit the file /usr/local/etc/cherokee/cherokee.conf, in fact, to change the "default WWW" I had to edit the configuration file by hand becausethrough the browser did not succeed.
But I'm not able to add support php in text mode.
What should I do?
combo3:
Did you remember to save your config files before restarting?
In any case, here are the exact steps I followed to successfully install Drupal
Install Drupal
1. Download the latest version of Drupal (currently 7.0)
- http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz
2. Create a web directory (Note: all examples use hda1. Change this to suit your situation)
--- Code: ---sudo mkdir /mnt/hda1/www
--- End code ---
3. Unpack the tarball
--- Code: ---sudo tar -xf drupal-7.0.tar.gz -C /mnt/hda1/www
--- End code ---
4. Change ownership of the Drupal directory
--- Code: ---cd /mnt/hda1/www
sudo chown tc.staff -R drupal-7.0
--- End code ---
5. Create /mnt/hda1/www/drupal-7.0/sites/default/settings.php
--- Code: ---cd drupal-7.0/sites/default
cp default.settings.php settings.php
--- End code ---
Get your lan IP address:
--- Code: ---ifconfig
--- End code ---
For the purposes of this example I'll assume it's 192.168.1.100
Configure Cherokee
1. Start the Cherokee admin interface
--- Code: ---sudo cherokee-admin
--- End code ---
2. Open a web browser and enter 127.0.0.1:9090 in the address bar
3. Log on using the credentials supplied in the terminal
4. Select: vServers
5. Select: [New] > CMS > Drupal > [Add] [Next]
6. Drupal Local directory: /mnt/hda1/www/drupal-7.0/ [Next]
7. New Host Name: www.cms.lan [Create]
8. Under Host Match
- Method: Server IP [Add New]
- New IP/Subnet: 127.0.0.1 [Add] [Add New]
- New IP/Subnet: 192.168.1.100 [Add] << Change this to your lan IP address
9. Select: Save [Graceful Restart]
Important Housekeeping
1. Add the Host Name to /etc/hosts
--- Code: ---echo 127.0.0.1 www.cms.lan cms.lan | sudo tee >> /etc/hosts
--- End code ---
2. Backup /etc/hosts and cherokee.config
--- Code: ---echo etc/hosts >> /opt/.filetool.lst
echo usr/local/etc/cherokee/cherokee.conf >> /opt/.filetool.lst
filetool.sh -b
--- End code ---
Set Up Drupal
1. In your browser address bar enter: www.cms.lan
2. Follow the on-screen instructions to complete the setup.
3. Start adding content.
{As an aside, these instructions took longer to write out than the actual installation ;D}
combo3:
After posting, I realized that my instructions didn't properly address your specific questions, so here are the steps to install DokuWiki on the Cherokee server:
Download and Install DokuWiki (per DokuWiki Installation Instructions)
1. Download the latest stable release of DokuWiki (currently 2010-11-07a)
2. Create a web directory (Note: all examples use hda1. Change this to suit your situation)
--- Code: ---sudo mkdir /mnt/hda1/www
--- End code ---
3. Unpack the tarball
--- Code: ---sudo tar -xf dokuwiki-2010-11-07a.tgz -C /mnt/hda1/www
--- End code ---
4. Change ownership of the DokuWiki directory
--- Code: ---sudo chown -R tc.staff /mnt/hda1/www/dokuwiki-2010-11-07a/
--- End code ---
Configure Cherokee
1. Create the Cherokee log files and set permissions
--- Code: ---cd /var/log
sudo touch cherokee.access cherokee.error
sudo chown tc.staff cherokee.*
--- End code ---
2. Start the Cherokee admin interface
--- Code: ---sudo cherokee-admin
--- End code ---
3. Open a web browser and enter 127.0.0.1:9090 in the address bar
4. Log on using the credentials supplied in the terminal
- If the server is running click on [Stop Server]
5. Select: General
a) Select: Network
IPv6 - Uncheck Enabled
b) Select: Permissions
User: tc
Group: staff
6. Select: vServers
a) Select: Basics
Document Root: /mnt/hda1/www/dokuwiki-2010-11-07a
Directory Indexes: index.html, index.php
b) Select: Behavior [Rule Management] [New]
Select: Languages > PHP [Add] [Create]
Click: [Non Final] in Extensions php box to change it to final
7. Select: Save [Ok]
8. Select: Home [Start Server]
Important Housekeeping
Add config files to /opt/.filetool.lst and run a backup
--- Code: ---echo usr/local/etc/cherokee/cherokee.conf >> /opt/.filetool.lst
echo var/log/cherokee.access >> /opt/.filetool.lst
echo var/log/cherokee.error >> /opt/.filetool.lst
filetool.sh -b
--- End code ---
Set Up DokuWiki
1. In your browser address bar enter: localhost/install.php
2. Follow the on-screen instructions to complete the setup.
Important: If you plan on running your wiki with public access over the internet, please note the warning box (lower right) stating that your data directory is NOT properly secured and follow the instructions given in the link.
Once setup is complete, you can access the wiki by entering localhost in the address bar.
If you want your server to start automagically on system boot, add the following stanza to /opt/bootlocal.sh
--- Code: ---echo /usr/local/etc/init.d/cherokee start >> /opt/bootlocal.sh
--- End code ---
{Edit: Amended to include missing instructions.}
Navigation
[0] Message Index
[#] Next page
Go to full version