Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content

LAMP

138 Topics 926 Posts
  • Connection Problems IWP

    Moved
    8
    1
    1 Votes
    8 Posts
    2k Views
    girishG
    @chriskloss said in Connection Problems IWP: These should be able to connect to each other if I use the FTP and MySQL data from the staging environment, right? Yes, for MySQL. As long as they are in the same instance, you can use the MySQL credentials from one app into another. For FTP, I guess you are asking if IWP can access files of another via FTP. This is possible, yes. Just use the SFTP credentials of the app - https://docs.cloudron.io/apps/#sftp-access
  • Config Apache with domain and subdomain

    4
    1 Votes
    4 Posts
    665 Views
    girishG
    Just creating multiple VirtualHost should work. Something like below works for me. ServerName %{HTTP_HOST} <VirtualHost *:80> ServerName main.smartserver.io DocumentRoot /app/data/public/main LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy CustomLog "|/bin/cat" proxy ErrorLog "|/bin/cat" <Directory /app/data/public/main> Options +FollowSymLinks AllowOverride All Require all granted </Directory> # Do not remove this include. It's required for your app to see the Real IP Include "/app/code/apache/rpaf.conf" </VirtualHost> <VirtualHost *:80> ServerName update.smartserver.io DocumentRoot /app/data/public/update LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy CustomLog "|/bin/cat" proxy ErrorLog "|/bin/cat" <Directory /app/data/public/update> Options +FollowSymLinks AllowOverride All Require all granted </Directory> # Do not remove this include. It's required for your app to see the Real IP Include "/app/code/apache/rpaf.conf" </VirtualHost>
  • How to get Mariadb installed for Lamp app

    Moved
    8
    1 Votes
    8 Posts
    1k Views
    S
    Considering Turnkey Linux has a container version of LAMP with MariaDB that works great for our software, it is too much to manually setup SSL and other things, this is why we want to use the LAMP in Cloudron to setup our software, but MariaDB is needed.
  • Best practice for setting up additional subdomain

    6
    1 Votes
    6 Posts
    1k Views
    marcusquinnM
    @CRBear Screenshot of your App Location Settings may help everyone to understand what you have so far, to then help with what you're doing within the LAMP app.
  • How To Increase Max_allowed_packet Setting?

    3
    0 Votes
    3 Posts
    567 Views
    girishG
    A workaround is to edit the config in the MySQL container: docker exec -ti mysql /bin/bash Then, edit /run/mysql/my.cnf In the container shell itself, supervisorctl restart mysql Note that changes are not persistent across updates (but persists across reboots).
  • LAMP app Integrates OWASP ModSecurity

    1
    1 Votes
    1 Posts
    140 Views
    No one has replied
  • Basic Auth in LAMP not working

    Moved Solved
    4
    1 Votes
    4 Posts
    693 Views
    matix131997M
    @shrey This is interesting. I hadn't noticed before that you had a complete different way of authorization. That's why I made an edit to the post and gave you the exact instruction, which is already implemented as standard.
  • Unable to install software (Webtrees.net) due to Php error

    Solved
    5
    0 Votes
    5 Posts
    883 Views
    S
    @girish Thanks, that helped!
  • Create cron in LAMP

    Solved crontab cron laravel artisan lamp
    5
    0 Votes
    5 Posts
    939 Views
    matix131997M
    Thanks, it works!
  • How to host a website on LAMP?

    Solved
    14
    0 Votes
    14 Posts
    3k Views
    S
    @timconsidine said in How to host a website on LAMP?: So Noodl does not require the MondoDB connection ? Noodl is primarily a frontend builder. It's just that it has first-class connectors for Parse (which is based on MongoDB), to add the data layer for your app. Anyway, you can bring any data source (accessible via REST/GRAPHQL/Static) to your app in Noodl.
  • Server utility paths

    5
    0 Votes
    5 Posts
    926 Views
    C
    Ah, thanks, good to know.
  • Node.js in LAMP server?

    9
    2 Votes
    9 Posts
    2k Views
    robiR
    @micmc Nice idea, maybe @girish can make it easily configurable with the FileManager (like PHP version) where LAMP/MERN/MEAN is selectable or any combination in between! That would be unique and slick!
  • Redirect domain root to "/site" subfolder

    Solved
    3
    0 Votes
    3 Posts
    475 Views
    girishG
    https://stackoverflow.com/questions/990392/how-can-i-use-htaccess-rewrite-to-redirect-root-url-to-subdirectory has other ideas as well. If you want /site to appear in the browser URL, you can also do RewriteRule ^$ /site [L] (no trailing slash!)
  • Try install OpnForm

    Solved
    15
    1 Votes
    15 Posts
    3k Views
    G
    Thank you so much all, for your suggestion, it solved my problem also.
  • Disable Strict Mode Mysql

    Moved Solved lamp sqlmode
    18
    0 Votes
    18 Posts
    7k Views
    osoboO
    @girish Thanks for your prompt reply. Ok I will try to contact them to inquire about this. Will keep you guys updated. Best wishes !
  • "Server connection: SSL is not being used " into phpmyadmin

    Moved Solved
    5
    1
    1 Votes
    5 Posts
    2k Views
    D
    Noted. thank you for your responsiveness @girish
  • problem with permissions installing Flask on a LAMP container

    Solved
    7
    1 Votes
    7 Posts
    1k Views
    M
    @robi this is interesting! I will have a look
  • git error into public directory

    Solved
    3
    1 Votes
    3 Posts
    545 Views
    R
    Thank you. Did solve my issue. Cheers
  • Unable to access file publicly

    Solved
    5
    0 Votes
    5 Posts
    765 Views
    S
    @girish said in Unable to access file publicly: @shrey said in Unable to access file publicly: PHP Fatal error: Uncaught Error: Class "Tqdev\PhpCrudApi\Config" not found in The above is the error. There is no such class. Indeed, there's some issue in the code of the api.php itself, which is the main cause. Thanks!
  • nginx.conf

    12
    1 Votes
    12 Posts
    2k Views
    scookeS
    No one in the universe understands how an nginx.conf file works in a LAMP environment - because it doesn't! The syntax in an nginx.conf file is very different from a LAMP - Apache.conf file. One will not work in the other. So, either you are working in a LEMP stack without realizing it, or it isn't an nginx.conf file. https://docs.playtubescript.com/#idocs_start gives some clues, perhaps, of what you are trying to do. Two things I saw in that list that I'm not sure are part of a Cloudron LAMP install is the nodejs config.json file/location, and the ffmpeg item. I don't think either come with the LAMP installation; but this isn't a Cloudron problem per se. No LAMP offering automatically comes with those two items pre-installed and functioning (but the way those two are shown in the image is confusing because it looks like they are IN the root directory of the web server???) It's important to understand that all the talk about Cloudron being so simple and easy is due to the context of Docker. If what you are trying to do has been using Docker, or requires Docker... then Cloudron is the absolute easiest and most powerful option available. If you are managing your web server on it's own server, by hand, then you are able to install whatever, wherever, and make the connections however (although there are typically strict conventions for most software), then Cloudron really isn't necessary. I in fact have a separate VPS on which I just run 3 LAMP php-based apps because there were complications and incompatibilities doing so in a Docker-based LAMP environment. The PHP app you are trying to install clearly assumes a non-Docker, native LAMP environment. On a second reading of the instructions in that link above, I actually suspect you probably followed ALL the steps in the instructions, but you ARE in a LAMP environment, and when you got to the NGINX.CONF section you still followed the instructions... except the webserver isn't using nginx, it is using Apache - so even though you placed the nginx.conf script correctly ("it works"), it isn't being used. And nginx also isn't even running, otherwise you'd get an error message that Apache can't start up because another app is using the required ports. So we are back at @robi's statement - "how is anyone on the forum supposed to know what you are trying to do in the OP?" Next time, include things like the various links I added. And be clearer. I hope you see by this point how unclear your request is! Look over the instructions again, then look carefully at the Cloudron LAMP folder structure - tell us in which folder you put what, for example. Two last things: this PHP app requires a calendar extension which I don't think the Cloudron LAMP app has (https://docs.cloudron.io/apps/lamp/); and finally, the fact it requires PHP 5.5+ suggests it won't even work on the Cloudron LAMP app because that uses, at a minimum, PHP 7.4. And whatever runs on on pre-7.x typically doesn't run on post-7.x. Good luck!