Created
January 2, 2019 05:32
-
-
Save jonorsky/88cef681aba3312524ea228905930860 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. | |
Install Lamp | |
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04 | |
Install PhpMyAdmin | |
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-18-04 | |
2. | |
sudo -H gedit /etc/apache2/apache2.conf | |
Include /etc/phpmyadmin/apache.conf | |
/etc/init.d/apache2 restart | |
3. | |
Run this again after copy paste Source Folder to Server Directory | |
sudo chmod -R 777 var/www/html/ | |
4. | |
[For Ubuntu] | |
Allow the overriding of htaccess in Apache Configuration: | |
> sudo subl /etc/apache2/apache2.conf | |
edit the file and change var/www/ to | |
> AllowOverride All | |
Enabled apache mod rewrite by typing the following command on you Terminal: | |
> sudo a2enmod rewrite | |
Restart Apache | |
> sudo /etc/init.d/apache2 restart | |
5. Change path of DomPDF | |
./application/libraries/Pdf.php | |
On line 23 Change "require_once $_SERVER['DOCUMENT_ROOT'].'/cgc/assets/dompdf/autoload.inc.php';" | |
to the real path of the server | |
6. | |
Login oauth | |
1. Login the account Adnu CGC in Google | |
2. Go to 'https://developers.google.com/identity/sign-in/web/sign-in' | |
3. Click 'Configure a Project' | |
> Go back to Credentials tab and edit 'Oauth Client' | |
> Add Authorize 'Javascript Origins' and 'Authorize Redirect URI' | |
2. Go to "https://console.developers.google.com/?pli=1" | |
In left part thers, Dashboard, Library, Credentials | |
>In Credentials tab, click "Create" | |
>Create Project Name 'adnucgc' | |
3. click 'Create Credentials' choose 'OAuthClientID' | |
4. click 'Configure consent screen' | |
Other Errors: | |
FIX Dompdf error | |
Message: Call to undefined function Dompdf\mb_internal_encoding() | |
https://stackoverflow.com/questions/1216274/unable-to-call-the-built-in-mb-internal-encoding-method | |
> yum install php-mbstring | |
> service httpd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment