Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

abdullahghanem's avatar

install laravel 5.1 on digitalocean

icant install laravel on digitalocean i used more articles about instaltion but icant

0 likes
17 replies
abdullahghanem's avatar

after install lamp or lemp and clone my project nothing appear when visit my ip

White page :(

zachleigh's avatar

Some things you maybe didnt do:
-Make a .env file with database credentials on the server
-Install composer dependencies on the server with 'composer install'
-Set permissions on the public and storage directories

How did you put your site on the server? Git?

abdullahghanem's avatar

all things you talking about i do it yes i use git , clone repo from github

abdullahghanem's avatar

The problem that no error when visit IP XX.XxX.XX.xxx just White page

Snapey's avatar

have you created a .env file and generated a key?

abdullahghanem's avatar

public/.htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

zachleigh's avatar

Try this htacess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>
    Options +FollowSymLinks
    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
Snapey's avatar

whenever I have had a white screen it has been because the storage folder is not writeable

also, enable display of errors (for now)

1 like
abdullahghanem's avatar
Level 7

thanks @Snapey this error it's becouse i don't change permissions of the www folder.

It is required if your application will be uploading files and storing on server etc.

# Group Writable (Group, User Writable)
$ sudo chmod -R gu+w www

# World-writable (Group, User, Other Writable)
$ sudo chmod -R guo+w www
2 likes

Please or to participate in this conversation.