1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install Joomla on the router

Discussion in 'Tomato Firmware' started by Almaz, Nov 30, 2013.

  1. Almaz

    Almaz Serious Server Member

    I'm just curious if anybody were able to setup Joomla? I just want to try Joomla 1.5.x for fun and see if I can get it to work on the router.

    So far I installed Nginx, PHP5-fastcgi, Spawn-fcgi and MySQL but can't get Joomla even to start from install.php. PHP seems to be working properly and in phpinfo shows sessions enabled. I added to nginx.conf the following lines


    Code:
    user  nobody;
    worker_processes  1;
    events {
        worker_connections  64;
    }
    http {
    
    server {
            listen 8081;
            server_name_in_redirect off;
    
    
            root /opt/share/nginx/html;
            index index.php index.html index.htm default.html default.htm;
            # Support Clean (aka Search Engine Friendly) URLs
            location / {
                    try_files $uri $uri/ /index.php?$args;
            }
    
            # deny running scripts inside writable directories
            location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
                    return 403;
                    error_page 403 /403_error.html;
            }
    
            location ~ \.php$ {
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index index.php;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    
            }
    
            # caching of files
            location ~* \.(ico|pdf|flv)$ {
                    expires 1y;
            }
    
            location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
                    expires 14d;
            }
    
    }
    }
    I'm getting the following error
    Code:
    Fatal error: Call to undefined function session_id() in /opt/share/nginx/html/libraries/joomla/session/session.php on line 96
    I installed PHP5-MOD-SESSION and a few other extensions and enabled in php.ini
    Code:
    extension=session.so
    What else am'I missing to make sessions in PHP to work and get Joomla to start?
     
    Last edited: Nov 30, 2013
  2. Victek

    Victek Network Guru Member

    Use Tomato RAF releases (if your router have enough Flash RAM to upgrade), includes NGINX and PHP, then you can run Joomla.

    But your question should be address to php-joomla forum, not into a router forum....
     
  3. Almaz

    Almaz Serious Server Member


    Thanks Victek but I'm using E3000 with 8MB Flash. It' s not enough flash to run Tomato RAF with all the options.
     
  4. Victek

    Victek Network Guru Member

    mmmm.. If you don't need Media Server I can build a version for you to test....
     
  5. Almaz

    Almaz Serious Server Member

    sure why not. If it would work then I can get all the proper settings from his build to get it to work with Entware/Optware. Thank you for your hard work.
     
  6. Almaz

    Almaz Serious Server Member

    Finally I got it to work but using PHP 5.4 with older Joomla causing a lot of problems. Need to find how to install PHP 5.2 in Entware where the package is not available from repository list.
     
  7. koitsu

    koitsu Network Guru Member

    I would strongly suggest not installing PHP 5.2. Go review the PHP ChangeLog -- particularly the security-oriented changes between 5.2.x and 5.4.x -- to see why my opinion is justified. Consider yourself warned. The Entware folks should be given kudos for keeping their packages up-to-date.
     
  8. Almaz

    Almaz Serious Server Member

    Thanks Koitsu.
    After playing with OptWare and EntWare for the first time, I would not choose OptWare at all.
    1. Some Packages in Optware don't work properly such as MC, MySQL
    2. Most of the packages outdated.

    I can say the project was success to create LAMP server using router E3000 with EntWare.
     

Share This Page